Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multiple configurations for 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
mani74
n00b
n00b


Joined: 26 Aug 2004
Posts: 49

PostPosted: Tue Oct 05, 2004 8:59 am    Post subject: Multiple configurations for eth0? Reply with quote

Hi all

I have one NIC in my notebook but I'm working in many different networks where as some of them don't support dhcp for my tasks. Until now, I have several configurations in my /etc/conf.d/net and depending on the network I am, I uncomment the appropriate config lines and do an /etc/init.d/net.eth0 restart.

Is there a more elegant way like having multiple /etc/conf.d/net.xyz and then tell /etc/init.d/net.eth0 which config to run? Or is there another elegant (system conform) approach so that I don't have to always edit the conf file?

Thanks
Marco
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Oct 05, 2004 9:46 am    Post subject: Reply with quote

Try quickswitch, just discussed in a recent GWN
http://www.gentoo.org/news/en/gwn/20040927-newsletter.xml#doc_chap7
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Tue Oct 12, 2004 10:58 pm    Post subject: Reply with quote

My problem is slightly different. I must configure eth0 with about 40 ip addresses spanning 3 or more different /24 networks. I have no choice in the matter. The current net configuration file leaves no room for this and aliases in different networks using the net confnig file do not work and cause unpredictable results. To get this to work since it is a production server, I had to resort to placing ifconfig statements in local.start.

There must be a way to enter these different ip addresses, maybe 10 or more in different networks using the existing configuration system, but I could not get it to work. I cannot believe the engineers would not think this scenario would never happen.

there is room to list the ip addys in alias, even netmasks in a like array, but nowhere for extra gateways for the different networks.

An additional nic is an impossibility it must all live on eth0.

How can this be done besides individual ifconfig statements in local.start? by doing it this way, I lose the control of the init.d/net.eth0 script.

Any ideas?
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