Two NICs and No Internet Connection

I am using openSUSE 12.2 with two NICs (one wired and one wireless). The wired NIC is connected to a small internal network with no internet access. The wireless NIC is attached to a larger network with internet access. Both cards have static IP addresses on different subnets (192.168.10.x - wired and 192.168.5.x - wireless). Only the wireless network has a DNS Server entry in its configuration.

Accessing resources on the wired network is not a problem. However when I try to access the internet there is no access. When I run an ifconfig -a command I get the following and can see both NICs are running:

*eth0 Link encap:Ethernet HWaddr 00:14:C2:06:B4:EB *

  •      inet addr:192.168.10.7  Bcast:192.168.10.255  Mask:255.255.255.0*
    
  •      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1*
    
  •      RX packets:8130 errors:0 dropped:0 overruns:0 frame:0*
    
  •      TX packets:7663 errors:0 dropped:0 overruns:0 carrier:0*
    
  •      collisions:0 txqueuelen:1000 *
    
  •      RX bytes:663505 (647.9 Kb)  TX bytes:602170 (588.0 Kb)*
    
  •      Interrupt:17 *
    

*lo Link encap:Local Loopback *

  •      inet addr:127.0.0.1  Mask:255.0.0.0*
    
  •      UP LOOPBACK RUNNING  MTU:16436  Metric:1*
    
  •      RX packets:213 errors:0 dropped:0 overruns:0 frame:0*
    
  •      TX packets:213 errors:0 dropped:0 overruns:0 carrier:0*
    
  •      collisions:0 txqueuelen:0 *
    
  •      RX bytes:12863 (12.5 Kb)  TX bytes:12863 (12.5 Kb)*
    

*wlan0 Link encap:Ethernet HWaddr 00:18:E7:D7:09:0D *

  •      inet addr:192.168.5.92  Bcast:192.168.5.255  Mask:255.255.255.0*
    
  •      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1*
    
  •      RX packets:1199 errors:0 dropped:0 overruns:0 frame:0*
    
  •      TX packets:135 errors:0 dropped:0 overruns:0 carrier:0*
    
  •      collisions:0 txqueuelen:1000 *
    
  •      RX bytes:139870 (136.5 Kb)  TX bytes:15156 (14.8 Kb)*
    

When I try to PING google.com I can see that DNS is routing to the wired network instead of the wireless network.

  •      PING [Google](http://www.google.com) (74.125.134.106) 56(84) bytes of data.*
    
  •      From 192.168.10.1 icmp_seq=1 Destination Net Unreachable*
    
  •      From 192.168.10.1 icmp_seq=2 Destination Net Unreachable*
    
  •      From 192.168.10.1 icmp_seq=3 Destination Net Unreachable*
    
  •      From 192.168.10.1 icmp_seq=4 Destination Net Unreachable*
    
  •      From 192.168.10.1 icmp_seq=5 Destination Net Unreachable*
    

A netstat -rn returns the following:

  •      Kernel IP routing table*
    
  •      Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface*
    
  •      0.0.0.0         192.168.10.1    0.0.0.0         UG        0 0          0 eth0*
    
  •      192.168.5.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0*
    
  •      192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0*
    

The resolve.conf file looks like this:

  •      nameserver 192.168.5.1*
    

The /etc/sysconfig/network/config file looks like this:

  •      DEFAULT_BROADCAST="+"*
    
  •      GLOBAL_POST_UP_EXEC="yes"*
    
  •      GLOBAL_PRE_DOWN_EXEC="yes"*
    
  •      CHECK_DUPLICATE_IP="no"*
    
  •      SEND_GRATUITOUS_ARP="no"*
    
  •      DEBUG="no"*
    
  •      USE_SYSLOG="yes"*
    
  •      # Handling of network connections*
    
  •      # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
    
  •      CONNECTION_SHOW_WHEN_IFSTATUS="no"*
    
  •      CONNECTION_CHECK_BEFORE_IFDOWN="no"*
    
  •      CONNECTION_CLOSE_BEFORE_IFDOWN="no"*
    
  •      CONNECTION_UMOUNT_NFS_BEFORE_IFDOWN="no"*
    
  •      CONNECTION_SEND_KILL_SIGNAL="no"*
    
  •      MANDATORY_DEVICES=""*
    
  •      WAIT_FOR_INTERFACES="30"*
    
  •      LINK_READY_WAIT="0"*
    
  •      IPV6_DAD_WAIT=""*
    
  •      FIREWALL="yes"*
    
  •      LINKLOCAL_INTERFACES="eth*[0-9]|tr*[0-9]|wlan[0-9]|ath[0-9]"*
    
  •      IFPLUGD_OPTIONS="-f -I -b"*
    
  •      NETWORKMANAGER="yes"*
    
  •      NM_ONLINE_TIMEOUT="0"*
    
  •      NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime"*
    
  •      NETCONFIG_DNS_POLICY="auto"*
    
  •      NETCONFIG_DNS_FORWARDER="resolver"*
    
  •      NETCONFIG_DNS_FORWARDER_FALLBACK="yes"*
    
  •      NETCONFIG_DNS_STATIC_SEARCHLIST=""*
    
  •      NETCONFIG_DNS_STATIC_SERVERS=""*
    
  •      NETCONFIG_DNS_RANKING="auto"*
    
  •      NETCONFIG_NTP_POLICY="auto"*
    
  •      NETCONFIG_NTP_STATIC_SERVERS=""*
    
  •      NETCONFIG_NIS_POLICY="auto"*
    
  •      NETCONFIG_NIS_SETDOMAINNAME="yes"*
    
  •      NETCONFIG_NIS_STATIC_DOMAIN=""*
    
  •      NETCONFIG_NIS_STATIC_SERVERS=""*
    
  •      WIRELESS_REGULATORY_DOMAIN=''*
    
  •      FORCE_PERSISTENT_NAMES=""*
    

I’m not really sure where to go next. Any help will be greatly appreciated.

I note that you’re using Network Manager. You need to make sure that you do not have a gateway assigned to your wired ethernet interface, (and it shouldn’t be required anyway if everything is on the same subnet). Only your wireless gateway is then explicitly assigned. I frequently need to connect in this manner, when configuring network hardware, but needing to maintain my wireless internet connectivity.

A short request concerning forum techniques. Can you please use CODE tags instead of I (italic) tags around your copied/pasted computer texts. It is the # button in the tool bar.

besides verifying a DG exists for your wireless, you may also need to clear your DNS cache. The following stops/restarts your name server cache daemon which clears existing entries.

nscd -K && nscd

Not sure why clearing the cache may affect routing, but it seems to work for me.
Besides physical NICs, this has worked for me transitioning between using and not using a VPN service(which also effectively changes routing).

TSU