FC9 and default GW



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=

--
Jørn Dahl-Stamnes
http://www.dahl-stamnes.net/dahls/
.



Relevant Pages

  • Re: FC9 and default GW
    ... LAN with IP 192.168.2.30 and GW 192.168.2.1. ... I have to do a 'route add default gw 192.168.2.1' after boot. ... Try disabling NetworkManager. ...
    (comp.os.linux.networking)
  • 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)