Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo way to declare a virtual 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
guzu
n00b
n00b


Joined: 29 Oct 2003
Posts: 12
Location: France

PostPosted: Mon Jan 08, 2007 2:24 pm    Post subject: Gentoo way to declare a virtual interface Reply with quote

Hi,

I'm wondering if there's a way to setup a virtual interface in Gentoo.
I see a least two scenarios :
1) Add *_eth0:1=(...) entries in /etc/conf.d/net
2) Edit postup() function in /etc/conf.d/net and add
ifconfig eth0:1 aa.bb.cc.dd
route blah blah blah
...

Any suggestion ?
Thanks
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Jan 08, 2007 2:35 pm    Post subject: Reply with quote

1999 called - they want their aliases back!

This is 2007, you don't need a virtual interface to add extra addresses or routes.

config_eth0=( "192.168.0.2/24" "192.168.0.3/24")

See?
_________________
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
guzu
n00b
n00b


Joined: 29 Oct 2003
Posts: 12
Location: France

PostPosted: Mon Jan 08, 2007 2:40 pm    Post subject: Reply with quote

Great !

Thanks a lot.
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