Just installed opensuse 11 and noticed network connection does not work, on the same machine i can boot to windows and network does work with it.
Machine does have 2 network cards one to connect samba server wich is not my firewall machine it’s just another computer and it does have static ip and that samba connection works, another network card that does connect to internet wich is the one that doesen’t work.
Ifconfig eth1 shows that it does have lan ip and netmask wich seem to right 192.168.1.30/255.255.255.0
I connect to internet through centos 5.2 firewall machine like this: dsl modem -> centos box -> opensuse/windows machine.
Centos machine does have dhcp server running and connection is made through iptables configuration.
I can’t ping or make ssh connection to this centos firewall computer with opensuse.
So far i have tryed to google the prob, various network settings like static ip and service network restart gives all green done messages so no errors there.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
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
cat /etc/resolv.conf
### BEGIN INFO
#
# Modified_by: dhcpcd
# Backup: /etc/resolv.conf.saved.by.dhcpcd.eth1
# Process: dhcpcd
# Process_id: 2686
# Script: /sbin/modify_resolvconf
# Saveto:
# Info: This is a temporary resolv.conf created by service dhcpcd.
# The previous file has been saved and will be restored later.
#
# If you don't like your resolv.conf to be changed, you
# can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
# variables are placed in /etc/sysconfig/network/config.
#
# You can also configure service dhcpcd not to modify it.
#
# If you don't like dhcpcd to change your nameserver
# settings
# then either set DHCLIENT_MODIFY_RESOLV_CONF=no
# in /etc/sysconfig/network/dhcp, or
# set MODIFY_RESOLV_CONF_DYNAMICALLY=no in
# /etc/sysconfig/network/config or (manually) use dhcpcd
# with -R. If you only want to keep your searchlist, set
# DHCLIENT_KEEP_SEARCHLIST=yes in /etc/sysconfig/network/dhcp or
# (manually) use the -K option.
#
### END INFO
domain site
nameserver 217.112.252.215
nameserver 82.118.211.204
ifconfig eth1
eth1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:866 (866.0 b) TX bytes:4753 (4.6 Kb)
Interrupt:22 Base address:0x4000
yep, seems the default route is missing.
I’ve seen this happen sometimes when switching from DHCP to static ip back to DHCP. Clearing out the nic configuration and reconfiguring usually sorts this…