View previous topic :: View next topic |
Author |
Message |
mani74 n00b
Joined: 26 Aug 2004 Posts: 49
|
Posted: Tue Oct 05, 2004 8:59 am Post subject: Multiple configurations for eth0? |
|
|
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 |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
|
Back to top |
|
|
RioFL Guru
Joined: 31 Oct 2002 Posts: 407
|
Posted: Tue Oct 12, 2004 10:58 pm Post subject: |
|
|
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 |
|
|
|