Bug 1870370

Summary: ifconfig reports network status incorrectly
Product: [Fedora] Fedora Reporter: Todd <ToddAndMargo>
Component: net-toolsAssignee: Michal Ruprich <mruprich>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 32CC: mruprich, rvokal, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-19 22:23:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.