Bug 1870370 - ifconfig reports network status incorrectly
Summary: ifconfig reports network status incorrectly
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: net-tools
Version: 32
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michal Ruprich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-19 21:27 UTC by Todd
Modified: 2020-08-19 22:23 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-08-19 22:23:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Todd 2020-08-19 21:27:49 UTC
Dear Fedora,

"eno2 is my only connection to the Internet.  "ifconfig" reports that eno2 is "UP", when it is not.

$ rpm -qf $(which ifconfig)
net-tools-2.0-0.57.20160912git.fc32.x86_64

$ ping -c 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=12.5 ms

$ nmcli device | grep eno2
eno2        ethernet  connected    eno2   
    
$ ifconfig | grep eno2
eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

$ /usr/bin/nmcli connection down eno2
Connection 'eno2' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)

$ nmcli device | grep eno2
eno2        ethernet  disconnected  --         

$ ping -c 1 8.8.8.8
ping: connect: Network is unreachable

$ ifconfig | grep eno2
eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

"UP"?  On what planet?


$ cat /etc/sysconfig/network-scripts/ifcfg-eno2
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=eno2
UUID=a056777e-8a75-4da5-9585-6aacf150b862
DEVICE=eno2
ONBOOT=yes
PEERDNS=no
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
DNS1=127.0.0.1
USERCTL=yes
NM_CONTROLLED=yes

Please fix!

Many thanks,
-T

Comment 1 Todd 2020-08-19 22:23:58 UTC
I mistook the meaning of the word "UP".  In this instance it refers to the Ethernet cable being plugged in and a connection established.


Note You need to log in before you can comment on or make changes to this bug.