Re: FC9 and default GW



On Thu, 27 Nov 2008 15:01:33 +0100, Jørn Dahl-Stamnes wrote:

Hi,

just finnished installing Fedora Core 9. The machine is connected to a
LAN with IP 192.168.2.30 and GW 192.168.2.1. But after boot the machine
has no default GW.

a 'route -n' say:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0


I have to do a 'route add default gw 192.168.2.1' after boot.

I have some other machines with FC4 and I have never had any problems
with default gateway.

How can I tell this machine which default gw to use at boot without
having to add a script with the route add command?

/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=obi-wan.mydomain.net
GATEWAY=192.168.2.1
IPV6_DEFAULTGW=

and /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.2.255
HWADDR=00:1f:c6:be:4b:c3
IPADDR=192.168.2.30
IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
DNS1=192.168.2.22
SEARCH="mydomain.net"
NM_CONTROLLED=

Try disabling NetworkManager. Early on in F9 NetworkManger was screwing
up when you used static IPs, I would have thought that it would be fixed
by now but maybe it hasn't been. I disabled it on all of my systems so I
don't know if the bug has been fixed or not.
.



Relevant Pages

  • Re: No route for localhost
    ... Do the manually run 'ifconfig' and 'route add' commands return any error? ... but I'd look at the network boot scripts. ... as well as the controlling script /etc/sysconfig/network. ... >adding localhost in the routing table, ...
    (comp.os.linux.misc)
  • Re: Permanent static route in AIX 4.3
    ... below is the setup using SMIT TCPIP. ... For a static route that survives reboot, /etc/rc.net is the file that you ... reasonably accomplish the same thing. ... and boot and mount-related failures. ...
    (comp.unix.aix)
  • Re: And the Rock Cried Out, No Hiding Place: my review
    ... the water that "route" does not rhyme with ... Actually, "boot" is better. ...
    (rec.arts.sf.tv.babylon5.moderated)
  • Re: Problem with routes disappearing.
    ... I don't know how you are setting up the extra routes at boot but on ... >> get added at boot. ... If you're running a single static route to the rest ... A Galileo could no more be elected president of the United States than ...
    (comp.unix.sco.misc)
  • Re: Firewall & Routing - help!
    ... Do not set a default route somewhere else. ... > If I remove the static route, no internet again. ... > When I boot, ... > if I do a network restart it limits down to this.... ...
    (Fedora)