Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth0 aliases
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
amar_
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2006
Posts: 118

PostPosted: Sat Jul 09, 2011 10:25 pm    Post subject: eth0 aliases Reply with quote

Hello

Sorry if this is something i missed googling/searching but I couldn't find right docs/howto on this.. So I have server with 2 or more static IP's I want to have them on eth0, eth0:1 .. etc. I can do this with ifconfig but how to do it permanently ?

Best, A.
_________________
My blog is here
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46326
Location: 56N 3W

PostPosted: Sat Jul 09, 2011 10:33 pm    Post subject: Reply with quote

amar_,

Look in /usr/share/doc/openrc-0.8.3-r1/ or whatever version of openrc you have
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Sat Jul 09, 2011 10:45 pm    Post subject: Reply with quote

Hi amar_,

did you try to modify your /etc/conf.d/net ?

I did not try this example myself, but I'm thinking about something like this :

- before, with only one interface; eth0 (10.10.10.10) :
Code:
config_eth0="10.10.10.10 netmask 255.255.255.0"
routes_eth0="default gw 10.10.10.254"


- after, with eth0 (10.10.10.10) and eth0:1 (10.10.20.20)
Code:
config_eth0="10.10.10.10 netmask 255.255.255.0
10.10.20.20 netmask 255.255.255.255 brd 10.10.20.20"
routes_eth0="default gw 10.10.10.254"


So, the extra adresses should give you the eth0:1, eth0:2, etc.


Good luck
_________________
Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64
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