View previous topic :: View next topic |
Author |
Message |
AH n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Jun 2004 Posts: 32
|
Posted: Sat Mar 25, 2006 12:23 pm Post subject: dhcp and aliased devices |
|
|
My /etc/conf.d/net.example contains this comment and example:
Quote: |
# If you need more than one address, you can use something like this
# NOTE: ifconfig creates an aliased device for each extra IPv4 address
# (eth0:1, eth0:2, etc)
# iproute2 does not do this
#config_eth0=(
# "192.168.0.2/24"
# "192.168.0.3/24"
# "192.168.0.4/24"
#)
|
This makes sense and I do use ifconfig. My ISP provides me with several ip adresses over DHCP and if I run two physical devices it works good as long as I give one of them the nogateway option.
What I _would_ like is something similar to this:
Quote: |
config_eth0=( "dhcp" "dhcp" "dhcp" )
|
Is there some way to do this with aliased devices and dhcp for each of the adresses recieved? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
itsmegawtf Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Oct 2005 Posts: 150
|
Posted: Sat Mar 25, 2006 3:49 pm Post subject: |
|
|
your file (/etc/conf.d/net) needs to contain:
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
AH n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Jun 2004 Posts: 32
|
Posted: Mon Mar 27, 2006 8:19 am Post subject: |
|
|
The example file does not mention anything about iface at all, is it really the way it works in the most recent versions? If it is, where can I find more information about iface_*?
The only non-commented information I currently is:
Code: | config_eth0=( "dhcp" )
dhcpcd_eth0="-t 20"
dhcp_eth0="nontp nonis" |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
AH n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Jun 2004 Posts: 32
|
Posted: Mon Mar 27, 2006 10:35 am Post subject: |
|
|
Thanks for the reply. I guess the easiest way will be to put more physical interfaces into the box and add nogateway for all but one of them and use dhcp. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|