I can't connect to network via an ethernet cable, but the wireless connection works fine. This only happens on this laptop - the pc network cable connection is fine.
ifconfig
eth0 Link encap:Ethernet HWaddr my mac address
inet6 addr: my inet6 address Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1296 (1.2 KB) TX bytes:5733 (5.7 KB)
Interrupt:16
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:1584 errors:0 dropped:0 overruns:0 frame:0
TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:49690 (49.6 KB) TX bytes:49690 (49.6 KB)
wlan0 Link encap:Ethernet HWaddr d0:df:9a:be:b7:0a
inet addr:46.237.123.248 Bcast:46.237.123.255 Mask:255.255.255.0
inet6 addr: 2a02:6800:0:125:d2df:9aff:febe:b70a/64 Scope:Global
inet6 addr: fe80::d2df:9aff:febe:b70a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58300 errors:0 dropped:0 overruns:0 frame:0
TX packets:1857 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5518132 (5.5 MB) TX bytes:380517 (380.5 KB)
As far as I can see in your ifconfig output, your eth0 interface is working (transmitting and receiving) but can't get an IP from your ISP. Does your ISP allow multiple connections (and gives multiple IP)? You can try to disconnect the wi-fi interface and see if cable connects.
UPDATE: you can try to put in
/etc/network/interfaces
:and restart networking with
sudo /etc/init.d/networking restart
(or reboot)