opensuse 12.1 no network connection cannot ping gateway

Hello, need help

Have installed opensuse 12.1 on pc. Networkadapter is USB on eth1 with 192.168.178.10 static. Router ist Fritzbox with 192.168.178.1. (DHCP range is 10 to 200).

Fritzbox shows pc connected. Ifconfig returns device ok, i.e. data as seen in other posts. Ping to localhost is ok. Route -n returns appear to be ok, i.e shows proper gateway for 0.0.0.0 with UG flag. Ping to 192.168.178.1 returns host unreachable.

The issue seems to be with some permissions ethtool eth 1 returns amongst others “cannot get link status: operation not permitted”.

Any ideas? Thanks in anticipation

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Post the output to:

ip addr
ip route
ip -s link

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPBjR+AAoJEF+XTK08PnB5+RYP/3cx/yIuEWvr1F4w83u8OAd6
1snde7mUTyRIeHiUOnk9vKWJjF2uXxOyVfdV79DpCRxDEthQHlKOzI9w12YN0/sY
tw2KxonGI6VMTOp5ln3+sl8Y2Ey48MfV5Z1mn11MYFDvFrV6qoX1BI6NzgJto0T9
UfeNUEFreERM5cQ4479YOeLsWcwIZ4o+NHFtHOyWvutfiSRr4EEP3Ao6qVsqW6TF
/I1QhEJjtbRVcN6I1rBaIJFjrfeAyqu3oPDoMQw1u8+53DkqWvDu54AAHu/0n+fX
B5WOv71cl3kJnSAn8mwwglFQy1K3uK645doK6Sg3Wm8NjwZWN0FkikWe0ywoKLY3
mBSffpOAWFCC6r6nN2mgtrz7TGmMPd3ThjODgsVRyw4bAoNCdhvbQJf7APxxCaJB
hMD5KJFi9c9a7VlLqjYJf5X6ufIBqlRIq6LFQBt24dgY+1qeNglTouNf8JqpXayQ
6ZtOUTP+/E5nBwuPVyf7ogSJ1i+V7cAIzcyjz28+JeWSTNiHVSaXZQ6MdMib4EOz
p9Q2e7k+75mRdQHNFi0IV9Sv0BZHAkYftBZ0o+OByI/APIZLdeAtPEkCunQy9Vfe
aaTdQ2YhM9YuFGSTJJCFGMcC3ybElJYbk/nRalptOV7t6QZkGGSJWYF5lc8oqOXq
uAyO1E81bwb2M4BJ6S4S
=f/8A
-----END PGP SIGNATURE-----

Thanks a lot your immediate reply, took me some time to get this moved to my windoze (with usb stick), sorry.

Here is the output:-

user@host:~> ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:01:2e:3a:d5:b0 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e0:b9:a5:a4:a0:68 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:f6:a8:f5:3f brd ff:ff:ff:ff:ff:ff
inet 192.168.178.10/24 brd 192.168.178.255 scope global eth1
inet6 fe80::20c:f6ff:fea8:f53f/64 scope link
valid_lft forever preferred_lft forever

user@host:~> ip route
default via 192.168.178.1 dev eth1
127.0.0.0/8 dev lo scope link
169.254.0.0/16 dev eth1 scope link
192.168.178.0/24 via 192.168.178.1 dev eth1

user@host:~> ip -s link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
RX: bytes packets errors dropped overrun mcast
36616 412 0 0 0 0
TX: bytes packets errors dropped carrier collsns
36616 412 0 0 0 0
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:01:2e:3a:d5:b0 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e0:b9:a5:a4:a0:68 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:f6:a8:f5:3f brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
522 2 0 0 0 0
TX: bytes packets errors dropped carrier collsns
20876 356 0 0 0 0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, everything looks fairly okay so I only have a couple guesses.

First, it’s odd statically assigning something from the DHCP range, but
valid as long as you don’t get stepped on.

Second, your IP/route/etc. all look fine per what you claim your network
settings are, so that’s good. What’s more your NIC has sent AND
received packets, but who knows from where it received those two
packets. Knowing would be interesting.

Finally, if your netmask is really /24 (255.255.255.0) and if your
router’s IP is really ending in .1 (and on the same network as what your
system is configured to use) then you either have a bad cable, the wrong
cable, or other bad hardware (or something really low-level like that).
Even if you didn’t have any kind of default route defined your packets
should at least get to the router and back and since they’re not (but
since you are getting some data from somewhere, and since the link
status shows as ‘UP’) maybe you’re not putting in the right gateway IP
address after all (I know, you’re sure). If you have other machines on
the network do the same tests on them. If you have other cables, swap
them out, or compare the wiring pairs to make sure you’re not using a
crossover cable when you should be using one that is a straight through
cable. The netmask shouldn’t really matter for pinging the gateway on
the same network, and it’s probably correct based on your situation, but
it’s something to check.

The other tests you did do not really show much. That you can ping your
localhost is not valid for anything other than seeing the TCP/IP stack
is functioning (which it is, even if you remove your NIC completely).
The route command’s result is nice, but doesn’t mean anything other than
to confirm what you have set in Yast (even if that were complete and
utter garbage). The ethtool stuff may complain if you are not ‘root’ so
be sure you are when you use it:

sudo /sbin/ethtool eth1

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPBo1vAAoJEF+XTK08PnB5eH8QAMb594LNjyhkI0pxVpqrOEgY
8kPn9DGcL7gKI/RDoFP0k6DEETuj2JkpP3w3ytaaXsNUmdqXOwn3wIir5wl+Czv0
/4GVVffvZvNYR68K1fQf9AlwYA07Jlqtjjsd2QSKjAZ6lCursSJj/f4FCcpt9RAq
XeqJBuNgCm7zhzakd1+z6qJknMyI2gc3FVD33aQ1GVqh7H7oIXqZH4l6sBd91Oxg
raWFEeERocwQa7943z8cza5Oz4IkevXJsAU50hBeDYvo6anE8g9lCBB3rfKUjHt2
83QLpzmJQ4TX8VFiWfe0Z7wbDCn/6WYxyZBugegG0hTQ9/uwp6hY2q6+F5jTub/y
WBqfBB0odnG/WaGvgUxp/wiaDKUI6g/CPpQI+0DSwbtlPXfvZa4y/cPzCm4CquCX
pIEzLp65QP0Sk6XMGQZd2mx3RErkT7JGG0bJyCUI8WF97cZSuLv5FlApeBfS81o5
EkhA0TZPkf2N0YW6E0bMQfMfQfw26hOel+gfiXcamn4gYc3imZTlDrcDsmwk0ekZ
/OMvbrpDsxBl9pmNsbtVeJatAOcG2p4CeTbhuvqSRxyyOP0+rKJ7O6OPKfy0aUf2
E41ULn3aQPCrYNXnWhqcqRe60qVpPm28v8yoYpKfhIX6JSspy/Zmd8W7xSyvSMjS
YOCiMMVA/4UFCxqj03cv
=np2F
-----END PGP SIGNATURE-----

Dear ab,

thanks a lot your reply. First I changed IP of eth1 to .202 to be definitely out of DHCP range (yesterday was a typo the range is 20 to 200) and the eth1 was .10

I am switching the networkcable between my windoze and the linux pc anyway, therefore it can hardly be the cable. Tried as well eth0 with DHCP, which did not work either.

Double checked configuration from windoze ifconfig /all

Tried the following:

ethtool as sudo returned this time device linked

user@host:~> sudo /etc/init.d/network start -o debug
root’s password:

Hint: you may set mandatory devices in /etc/sysconfig/network/config
CONFIG =
INTERFACE =
AVAILABLE_IFACES = eth0 eth1 wlan0
PHYSICAL_IFACES = eth0 eth1 wlan0
BONDING_IFACES =
VLAN_IFACES =
DIALUP_IFACES =
TUNNEL_IFACES =
BRIDGE_IFACES =
SLAVE_IFACES =
MANDATORY_DEVICES =
VIRTUAL_IFACES =
SKIP =
start order : eth0 eth1 wlan0 ; ;
Setting up network interfaces:
eth0 device: Realtek Semiconductor Co., Ltd. RTL8111/8168B
No configuration found for eth0
eth0 returned 9 unused
eth1 name: AX88x72A
Error while executing: -s eth1 usb
ethtool: bad command line argument(s)
For more information run ethtool -h
eth1 IP address: 192.168.178.202/24
eth1 returned 7 failed
wlan0 device: Ralink corp. RT2860
No configuration found for wlan0
wlan0 returned 9 unused
… still waiting for hotplug devices:
SUCCESS_IFACES=
MANDATORY_DEVICES=
… final
SUCCESS_IFACES=
MANDATORY_DEVICES=
FAILED=0
TTWAIT=1
… still waiting for virtual devices:
SUCCESS_IFACES=
VIRTUAL_IFACES=
Setting up service network . . . . . . . . . . done
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 …
SuSEfirewall2: using default zone ‘ext’ for interface eth0
SuSEfirewall2: using default zone ‘ext’ for interface wlan0
SuSEfirewall2: Firewall rules successfully set

tried again without option “usb”

Hint: you may set mandatory devices in /etc/sysconfig/network/config
CONFIG =
INTERFACE =
AVAILABLE_IFACES = eth0 eth1 wlan0
PHYSICAL_IFACES = eth0 eth1 wlan0
BONDING_IFACES =
VLAN_IFACES =
DIALUP_IFACES =
TUNNEL_IFACES =
BRIDGE_IFACES =
SLAVE_IFACES =
MANDATORY_DEVICES =
VIRTUAL_IFACES =
SKIP =
start order : eth0 eth1 wlan0 ; ;
Setting up network interfaces:
eth0 device: Realtek Semiconductor Co., Ltd. RTL8111/8168B
No configuration found for eth0
eth0 returned 9 unused
eth1 name: AX88x72A
eth1 IP address: 192.168.178.202/24
eth1 returned 7 failed
wlan0 device: Ralink corp. RT2860
No configuration found for wlan0
wlan0 returned 9 unused
… still waiting for hotplug devices:
SUCCESS_IFACES=
MANDATORY_DEVICES=
… final
SUCCESS_IFACES=
MANDATORY_DEVICES=
FAILED=0
TTWAIT=2
… still waiting for virtual devices:
SUCCESS_IFACES=
VIRTUAL_IFACES=
Setting up service network . . . . . . . . . . done
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 …
SuSEfirewall2: using default zone ‘ext’ for interface eth0
SuSEfirewall2: using default zone ‘ext’ for interface wlan0
SuSEfirewall2: Firewall rules successfully set

Did the tool collectNWData.sh, which did not tell me anything, you have not told me already

Did tcpdump

user@host:~> sudo /usr/sbin/tcpdump -ieth1 -c5
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
-v

23:32:35.240707 ARP, Request who-has 192.168.178.1 tell host, length 28
23:32:36.242705 ARP, Request who-has 192.168.178.1 tell host, length 28
23:32:37.244687 ARP, Request who-has 192.168.178.1 tell host, length 28
23:32:39.926704 ARP, Request who-has 192.168.178.1 tell host, length 28
23:32:40.928704 ARP, Request who-has 192.168.178.1 tell host, length 28
5 packets captured
21 packets received by filter
0 packets dropped by kernel

Does this tell you anything? Should I try networkmanager instead of ifup?

Thanks in anticipation

Dear ab,

believe I solved the issue, which was manifold:

  1. Cable between patch panel and router (fritz.box) was apparently crossover type, which the windoze could handle, but Linux respectively the usb network adapter could not.

  2. For some reason, which I could not resolve yet, ifup shows the usb network card connected, which actually was incorrect, only after unplugging, replugging it does work. This does apply no matter, whether the connect option is at “boot” or “if hot plugged”. So each time after boot the usb adapter is to be unplugged and replugged (Sitecom with Asix driver) in order to make the connection work.

Once again thanks a lot