Forum archive
bug: confconsole not saving the default route when configuring a static IP
After installing the latest Turnkey MediaWiki on a virtual machine in VMware, I found that new system could not reach any other network. The routing table had a single entry for the host network (10.10.90.0 for example) but there was no default route. Adding a route for 0.0.0.0 corrected the problem and allowed the host to retreive updates.
I guess I'm not sure if the sparse routing table is there by design of if something is missing in the instal.
Jim
After the system boots, I selected the advanced settings from the TurnKey Linux Configuration Console and selected the StaticIP Configuration. The fields are set to:
IP Address 10.10.10.71
NetMask 255.255.255.0
Default Gateway 10.10.10.5
Name Server 10.10.10.6
This configuration works until the host is restarted. After the restart, the host is reachable on it home network and unreachable from any other network. The routing table looks like this:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
If I add a default route (below), the host becomes reachable from other networks. Below that is the resulting routing table.
route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.10.10.5 dev eth0
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
default 10.10.10.5 0.0.0.0 UG 0 0 0 eth0
After a subsequent reboot, the default route is missing. When I go back into the TurnKey Linux Configuration Console, the Static IP Config shows correct settings for IP, netmask, and name server. However, the Default Gateway field is empty. If I add the default gateway, 10.10.10.5 and select , the host is now reachable from other networks.
It appears that the issue is that the default route is not being preserved when a static IP is used. I can add a static default route in the /etc/network/interfaces file to correct the issue. I was wondering if that is something that the configuration console should do.