Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 ip adress on 1 interface
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
btower
n00b
n00b


Joined: 31 Jul 2003
Posts: 70
Location: Poland

PostPosted: Thu Jul 31, 2003 6:17 pm    Post subject: 2 ip adress on 1 interface Reply with quote

Hello.
How add second ip adres (without gateway) to one interface in /etc/conf.d/net ?

Now I add it in one of script start:

ifconfig eth0:0 x.x.x.x netmask x.x.x.x broadcast x.x.x.x

and it works but I want do this smartly (elegantly ?? sorry I only little speak English).
Back to top
View user's profile Send private message
lazarusrat
Guru
Guru


Joined: 17 Jul 2002
Posts: 305
Location: Lafayette, IN

PostPosted: Thu Jul 31, 2003 6:18 pm    Post subject: Reply with quote

There's a sample line in /etc/conf.d/net for setting aliases. Uncomment it and change the IP to whatever you want eth0:0 aliased as.
_________________
obpiper: pipe menu generator for openbox
obtheme: pipe menu to switch openbox themes
Back to top
View user's profile Send private message
btower
n00b
n00b


Joined: 31 Jul 2003
Posts: 70
Location: Poland

PostPosted: Thu Jul 31, 2003 6:43 pm    Post subject: Reply with quote

lazarusrat wrote:
There's a sample line in /etc/conf.d/net for setting aliases. Uncomment it and change the IP to whatever you want eth0:0 aliased as.


Thanks.

Hyhy.
it's was easy

Search of forum don't works?
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