Can get interface to come up but not routing

It’s starting to look like all my troubles using ifup wasn’t that I couldn’t get the interface up, but the routing wasn’t working. Check out my routing table:

Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 10.0.0.0        *               255.255.255.0   U     0      0        0 wlan0 link-local      *               255.255.0.0     U     0      0        0 wlan0 loopback        *               255.0.0.0       U     0      0        0 lo  

Why no gateway? And my /etc/sysconfig/network/ifcfg-wlan0:

BOOTPROTO='dhcp' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='' MTU='' NAME='RT2600 802.11 MIMO' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='auto' USERCONTROL='no' WIRELESS_AP='' WIRELESS_AP_SCANMODE='1' WIRELESS_AUTH_MODE='psk' WIRELESS_BITRATE='auto' WIRELESS_CA_CERT='' WIRELESS_CHANNEL='' WIRELESS_CLIENT_CERT='' WIRELESS_CLIENT_KEY='' WIRELESS_CLIENT_KEY_PASSWORD='' WIRELESS_DEFAULT_KEY='0' WIRELESS_EAP_AUTH='' WIRELESS_EAP_MODE='' WIRELESS_ESSID='Eggie_OGeggie' WIRELESS_FREQUENCY='' WIRELESS_KEY='' WIRELESS_KEY_0='' WIRELESS_KEY_1='' WIRELESS_KEY_2='' WIRELESS_KEY_3='' WIRELESS_KEY_LENGTH='128' WIRELESS_MODE='Managed' WIRELESS_NICK='' WIRELESS_NWID='' WIRELESS_PEAP_VERSION='' WIRELESS_POWER='yes' WIRELESS_WPA_ANONID='' WIRELESS_WPA_IDENTITY='' WIRELESS_WPA_PASSWORD='' WIRELESS_WPA_PSK='swordfish (yeah, right)' BRIDGE='no' 

On 07/16/2012 06:26 PM, PenguinLust wrote:

Please post computer output inside

 .. 

tags. The way your stuff
wrapped is nearly impossible to read.

For a temporary fix, you will need to use the command


sudo /sbin/route add default gw 10.0.0.X

where X is the IP number of your router. Why it was not set up correctly is
probably the setting for your wired network in
/etc/sysconfig/network/ifcfg-eth0. It probably has “STARTMODE=‘auto’”, but it
should be “STARTMODE=‘ifplugd’”

You should copy/paste fropm your terminal/console directly between the CODE tags. It is no use to add code tags to text that is allready borked.

And when you configured your ifup setup using YaST, then look behind all Tabs there. The routing is one of them.

I did use CODE tags like I was told to. I don’t know why it went mental like that.

Going to ifplugd didn’t help. I did explicitly add the gateway in YaST (including the interface) (I thought DHCP was supposed to take care of that) but for some reason, every time I restart my system, it disappears and I have to add it again.

Did you realy copy/paste directly from your terminal emulator (konsole or other) into the composer area of the post? It is realy not difficult:

henk@boven:~> /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.0.138      0.0.0.0         UG    0      0        0 eth0
henk@boven:~> 

You see the prompt (you do not have hat), the command (you do not have that, but instead you told in a story what it probably was) and the complete output generated (by showing up to including the new prompt).

DHCP will only take care of anything if you use it. But you did not explain if you (try to) use it or not.

Please try to make a complete story of what you try to achive:
. wich interface (I guess wlan0 from your mangled ooutput in post #1);
. apperently ifup method and not Network manager;
. DHCP usage or fixed IP address;
and how you used YaST to achieve what you want, what did you fill in where.

To see what you have now (and what will be used e.g. during a a boot), you can post:

cat /etc/sysconfig/network/ifcfg-wlan0
cat /etc/sysconfig/network/routes