Re: What/where is default route set?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Craig White wrote:
On Fri, 2008-02-29 at 22:46 +0000, Chris G wrote:
  
Another minor hiccough after my move from F7 to F8, I don't get a
network default route set when I reboot the system.

I.e. I have to do:-

    route add default gw 192.168.1.1

after booting to get everything to work.

Whereabouts in the initialisation scripts should this be set and/or is
there a GUI for setting it up?
    
----
system-config-network

Craig

  
Or you can edit by hand.  In the example below, my primary interface is eth1.  See the setting for 'GATEWAY'?  Not shown in my example is that you can add additional routes (similar to Solaris /etc/gateways) in /etc/.sysconfig/static-routes.  Look at /etc/init.d/network if you want to peep under the hood...

Steve

---
[root@imladris MyTV]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet
DEVICE=eth1
> HWADDR=00:18:4d:f0:0e:b7
BROADCAST=192.168.1.255
IPADDR=192.168.1.20
NETMASK=255.255.255.0
NETWORK=192.168.1.0
GATEWAY=192.168.1.1
TYPE=Ethernet
[root@imladris MyTV]#


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux