I have a SLES 11 SP3 appliance with multiple NICs. I have configured eth1 as DHCP and it receives an address and default gateway from the DHCP server. I then configure eth2 with a static IP address. When I run
# ifup eth2
the default gateway route for eth1 is removed and replaced with one for eth2. Very strange behavior. I need the default gateway route to remain unchanged when I bring any other interface up.
Here is it’s configuration for eth1 [FONT=Courier New]/etc/sysconfig/network/ifcfg-eth0:[/FONT]
BOOTPROTO='dhcp'
IPADDR=''
PREFIXLEN=''
STARTMODE='auto'
NAME='Ethernet Controller'
DHCLIENT_PRIMARY_DEVICE='yes'
PRIMARY_NIC='yes'
Note the [FONT=Courier New]DHCLIENT_PRIMARY_DEVICE[/FONT] which is supposed to protect the default route.
Here is the configuration for eth2
BOOTPROTO='static'
IPADDR='10.10.81.194'
PREFIXLEN='24'
STARTMODE='auto'
NAME='Ethernet Controller'
Thank you for any insight you can provide