Ask Your Question
0

Can't connect to internet. What to do?

asked 2016-03-07 11:06:45 -0600

lutu gravatar image

updated 2016-03-23 15:07:00 -0600

For reference I am adding a few nmcli output.

[sonu@localhost ~]$ nmcli device status 
DEVICE       TYPE      STATE       
enp0s26f2u2  ethernet  unavailable 
lo           loopback  unmanaged

[sonu@localhost ~]$ nmcli con show
NAME  UUID                                  TYPE            TIMESTAMP-REAL 
somu  4be97ce8-6caa-450d-ac91-6bce94bf4cab  802-3-ethernet  never

[sonu@localhost ~]$ nmcli con up somu ifname enp0s26f2u2
Error: Connection activation failed: Device not managed by NetworkManager or unavailable

[sonu@localhost ~]$ ip link
1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN 
mode DEFAULT group default
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
2: enp0s26f2u2: <no-carrier,broadcast,multicast,up> mtu 1500 qdisc 
pfifo_fast state DOWN mode DEFAULT group default qlen 1000 
    link/ether 00:e0:00:10:9e:e1 brd ff:ff:ff:ff:ff:ff

[sonu@localhost ~]$ sudo lspci | grep net
[sonu@localhost ~]$

[sonu@localhost ~]$ sudo tcpdump -i enp0s26f2u2 | tee ~/raw_packet_traffic
sudo: tcpdump: command not found

[sonu@localhost ~]$ sudo journalctl -f
-- Logs begin at Thu 2015-09-10 22:40:20 IST. --
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n
Mar 10 01:37:43 localhost.localdomain sudo[2857]: sonu : TTY=pts/0 ; PWD=/hom...
Mar 10 01:37:43 localhost.localdomain sudo[2857]: pam_unix(sudo:session): ses...
Mar 10 01:37:43 localhost.localdomain kernel: dm9601 5-2:1.0 enp0s26f2u2: li...n

[root@localhost sonu]# ifconfig 
enp0s26f2u2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
    inet 172.28.68.16  netmask 255.255.255.0  broadcast 172.28.68.255
    ether 00:e0:00:10:9e:e1  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
    inet 127.0.0.1  netmask 255.0.0.0
    inet6 ::1  prefixlen 128  scopeid 0x10<host>
    loop  txqueuelen 0  (Local Loopback)
    RX packets 1075  bytes 107058 (104.5 KiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 1075  bytes 107058 (104.5 KiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 [root@localhost sonu]# ifup mynet 
 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)

 [root@localhost sonu]# ip route
 default via 172.28.68.1 dev enp0s26f2u2  proto static  metric 1024 
 172.28.68.0/24 dev enp0s26f2u2  proto kernel  scope link  src 172.28.68.16

[root@localhost sonu]# nmcli dev status DEVICE ... (more)

edit retag flag offensive close merge delete

Comments

Can you add lspci network device output:

sudo lspci | grep net
aeperezt gravatar imageaeperezt ( 2016-03-07 11:16:38 -0600 )edit

Have a look if the file /etc/sysconfig/network-scripts/ifcfg-enp0s26f2u2 exists. It might be that for this device the NetworkManager is disabled. There is a variable NM_CONTROLLED which is set to yes/no to enable/disable NetworkManager for this device.
If you just want to use NetworkManager you also could set plugins=keyfile in /etc/NetworkManager/NetworkManager.conf

thomaswood gravatar imagethomaswood ( 2016-03-07 11:54:25 -0600 )edit

Actually I did nmcli con add type ethernet con-name somu ifname enp0s26f2u2 and ifcfg-somu is generated automatically. I edited after your comment setting NM_CONTROLLED=yes. But not working.

lutu gravatar imagelutu ( 2016-03-07 20:53:21 -0600 )edit

So we do not know if your kernel is detecting any device or what device you have please show us what I ask you before so we can help you better

aeperezt gravatar imageaeperezt ( 2016-03-07 21:05:05 -0600 )edit

I'd like to see ip link, mostly for link state. Make sure your cable is reseated on both ends, and has a link light on both ends. Next, configure a new profile for the interface, and poke around in nmcli con edit profile until you're sure it's configured for DHCP, and for starting automatically. Then, while running sudo tcpdump -i enp0s26f2u2 | tee ~/raw_packet_traffic and sudo journalctl -f in another, play around with bringing the interface up and down, unplugging the cable and plugging it back in, etc. You should find clues.

randomuser gravatar imagerandomuser ( 2016-03-07 22:39:31 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-03-10 14:17:02 -0600

fcomida gravatar image

It's a Davicom DM9601 USB to fast Ethernet device. Kernel module is dm9601 present in fedora stock kernel, try modprobe dm9601 and see if it works. We'll see later on how to make it works on boot.

edit flag offensive delete link more
0

answered 2016-03-23 12:07:46 -0600

Use An Older Kernel That Last Worked Well With Your Network Driver. I would also recommend using gui for setting network.

edit flag offensive delete link more

Comments

I tried with older kernel. no solution. Also I dont know how to use GUI.

lutu gravatar imagelutu ( 2016-03-23 15:10:45 -0600 )edit

Is it a server or net install you are running ?

wesleyotugo gravatar imagewesleyotugo ( 2016-03-24 02:27:52 -0600 )edit

Not sure because not acquainted with the terminologies. Kindly explain.

lutu gravatar imagelutu ( 2016-03-24 13:52:38 -0600 )edit

Question Tools

Stats

Asked: 2016-03-07 11:06:45 -0600

Seen: 387 times

Last updated: Mar 23 '16