You are here
Submitted by jewok on Fri, 2008/11/28 - 18:14
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
Forum:
Could this be a DHCP configuration problem?
By default the appliance is configured to setup the network connection using DHCP, which should be providing the default gateway.
I know vmware runs its own DHCP daemon on the virtual network interface. Could this be a problem with the configuration of VMware's DHCP daemon on your system? To find out we need a bit more information to go on
What happens when you run the udhcpc client manually?
What happens when you restart the network?
Static route problem
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.
Static route follow-up
You found a bug in the configuration console
Thank you so much for reporting this. You found a bug in the configuration console's static IP configuration code. I just went through it and confirmed that the default gateway isn't being set in /etc/network/interfaces. I filed a bug report on launchpad.
The next batch of releases will include a fix to this and a couple of other bugs that have been reported.
Fix commited
The fix has been commited to the turnkeylinux code repository and package archive.
Version: confconsole_0.9.1+2+g5e40435
Refer to the bug report for more info:
https://bugs.launchpad.net/turnkeylinux/+bug/303498
Add new comment