after reboot my routing scheme breaks:
becomes:
centos-6-x86_64-minimal was the template and I enabled venet during creation.
After first boot I added veth for external network access, then created a routing file route-venet0:0 with 172.16.0.110 via 172.16.0.109,
and modified /etc/sysconfig/network to define the default gateway device as follows:
After a reboot, the file looks like this:
Why is this file being re-written during reboot?
Code:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.110 172.16.0.109 255.255.255.255 UGH 0 0 0 venet0
10.24.106.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0
becomes:
Code:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.110 172.16.0.109 255.255.255.255 UGH 0 0 0 venet0
10.24.106.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 [B][COLOR=#b22222]venet0[/COLOR][/B]
centos-6-x86_64-minimal was the template and I enabled venet during creation.
After first boot I added veth for external network access, then created a routing file route-venet0:0 with 172.16.0.110 via 172.16.0.109,
and modified /etc/sysconfig/network to define the default gateway device as follows:
Code:
NETWORKING="yes"
GATEWAYDEV="eth0"
NETWORKING_IPV6="yes"
IPV6_DEFAULTDEV="eth0"
HOSTNAME="xxxxxxxx.xxx.xxx.xxx"
NOZEROCONF=yes
After a reboot, the file looks like this:
Code:
NETWORKING="yes"
GATEWAYDEV="[B][COLOR=#b22222]venet0[/COLOR][/B]"
NETWORKING_IPV6="yes"
IPV6_DEFAULTDEV="eth0"
HOSTNAME="xxxxxxxx.xxx.xxx.xxx"
NOZEROCONF=yes
Why is this file being re-written during reboot?