This is my first time posting to this website. I'm hoping someone can help me. Each morning some of my servers are losing their gateway address/statment from /etc/sysconfig/network. I'm not sure what's happening. I have to manually add it again and reboot and everything is fine. I am using the eth1 card. I have 2 nic cards installed. I have the following configuration set for each card in /etc/sysconfig/network-scripts/:
eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=no
eth1
DEVICE=eth1
IPADDR=172.30.49.15
NETMASK=255.255.255.0
GATEWAY=172.30.49.1
ONBOOT=yes
The /etc/sysconfig/network file shows:
NETWORKING=yes
HOSTNAME=server1
GATEWAY=172.30.49.1
- When I do an ifconfig it shows the correct ip address but only the gateway statement is missing from /etc/sysconfig/network. Is this caused by leaving the BOOTPROTO=dhcp on eth0? Should I add BOOTPROTO=static for eth1?
Thanks so much!