Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
adding another alias to eth0
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
wizy
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2002
Posts: 133

PostPosted: Mon Jun 17, 2002 11:33 pm    Post subject: adding another alias to eth0 Reply with quote

I want to add another alias to my eth0 (another static ip to alias_eth0= in /etc/conf.d/net). I want to bring that alias up without rebooting, or restarting the networking (14 people connected right now), how do i do this?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jun 17, 2002 11:37 pm    Post subject: Reply with quote

Code:
ifconfig eth0:1 <IP> netmask <netmask> broadcast <bcast>
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jun 17, 2002 11:41 pm    Post subject: Reply with quote

Explanation: adds an alias to eth0 without harming eth0 or your configuration. It's entirely temporal; once eth0 is torn down by the init scripts, eth0:1 gets torn down too and (I think) loses your configuration. You (eventually) want to put this in /etc/conf.d/net, but this will work without taking down your interface in the meantime.
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