[ydl-gen] default gateway on 6.1 - how?

Florin Andrei florin at andrei.myip.org
Thu Feb 5 23:34:14 MST 2009


I installed 6.1 on a PS3. It has a static address. I configured the 
network settings using the provided GUI tools. The IP address and the 
DNS settings were configured just fine this way.

However, the default gateway is a problem. I can't seem to be able to 
configure it using the GUI network config application. Even if I do 
indicate a default gateway, the system still doesn't have a default route.

I tried to configure it manually, using Red Hat / CentOS 5 as a model. I 
put this in /etc/sysconfig/network-scripts/ifcfg-eth0:

GATEWAY=192.168.XXX.1

(real address censored)

No luck. I even rebooted the system (excessive, I know, but I wanted to 
remove all doubt) and still nothing.

Then I moved the same GATEWAY line to /etc/sysconfig/network
Still no luck.

I know I could just do a "route add -net default ..." in rc.local and 
thus patch it up, but I want to know what is the "official" way to 
define the default gateway on YDL 6.1, if it's different from the RH way.

#######################################
[root at ps3-linux ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.XXX.255
HWADDR=XXXXXXXXXXXXXX
IPADDR=192.168.XXX.16
NETMASK=255.255.255.0
NETWORK=192.168.XXX.0
ONBOOT=yes
#GATEWAY=192.168.XXX.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=no
[root at ps3-linux ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ps3-linux.XXXXXXXX
GATEWAY=192.168.XXX.1
[root at ps3-linux ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr XXXXXXXXXXXXXXXX
           inet addr:192.168.XXX.16  Bcast:192.168.XXX.255 
Mask:255.255.255.0
           inet6 addr: XXXXXXXXXXXXXXXXXXX/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:843 errors:0 dropped:0 overruns:0 frame:0
           TX packets:844 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:58248 (56.8 KiB)  TX bytes:74105 (72.3 KiB)
           Interrupt:52

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:1579 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1579 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:4665000 (4.4 MiB)  TX bytes:4665000 (4.4 MiB)

wlan0     Link encap:Ethernet  HWaddr XXXXXXXXXXXXXXXX
           inet6 addr: XXXXXXXXXXXXXXXXX/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 b)  TX bytes:492 (492.0 b)

[root at ps3-linux ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.XXX.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
#######################################

-- 
Florin Andrei

http://florin.myip.org/


More information about the yellowdog-general mailing list