Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Binding and Alias on eth0 [RESOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bebo718
n00b
n00b


Joined: 06 Sep 2003
Posts: 25
Location: Pennsylvania

PostPosted: Thu Oct 06, 2005 12:56 pm    Post subject: Binding and Alias on eth0 [RESOLVED] Reply with quote

I am familar with how to bind and alias using BSD but I am trying to modify the /etc/conf.d/net script and adding an alias IP to a single NIC.

I currently am using the /etc/conf.d/net to give an ip via the config_eth0=( "IP SNM" ) and this works fine but if I add another line like:
config_eth0:1=( "IP SNM" ) I get a syntax error on line xx when the machine starts up.

I can use (manually) after the machine starts up: ifconfig eth0:1 IP_Address SubnetMask and it will assign the alias address to the single NIC with the static it binds during the initialization of the machine from the /etc/conf.d/net script.

I have searched Google and the forums and cannot fine the proper way to do this. I also cannot find it anywhere in the Gentoo Handbook.

Any help from someone that knows how to do this would be appreciated.

Thanks


Last edited by bebo718 on Thu Oct 06, 2005 1:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Oct 06, 2005 1:11 pm    Post subject: Reply with quote

Code:
config_eth0=(
   "192.168.0.1/24"
   "192.168.0.2/24"
)


http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
bebo718
n00b
n00b


Joined: 06 Sep 2003
Posts: 25
Location: Pennsylvania

PostPosted: Thu Oct 06, 2005 1:21 pm    Post subject: Reply with quote

UberLord -

Thanks (obviously) works perfectly. I must have somehow missed that section ;-) thanks for correcting my oversight.
Back to top
View user's profile Send private message
bebo718
n00b
n00b


Joined: 06 Sep 2003
Posts: 25
Location: Pennsylvania

PostPosted: Thu Oct 06, 2005 1:23 pm    Post subject: Binding and Alias on eth0 [SOLVED] Reply with quote

Issue resolved:

From UberLord:

Code:
config_eth0=(
"192.168.0.1/24"
"192.168.0.2/24"
)


http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum