On 2020-08-19 14:54, Ed Greshko wrote:
On 2020-08-20 05:28, ToddAndMargo via users wrote:

oh and it gets even screwier:

$ 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?

I just created:

ifconfig reports network status incorrectly
https://bugzilla.redhat.com/show_bug.cgi?id=1870370


NOTABUG

ifconfig, as well as "ip link", are showing the status at the OSI Link Layer.

If you were to pull the cable you'd see.

[egreshko@meimei ~]$ ip link show enp2s0
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state 
DOWN mode DEFAULT group default qlen 1000

Hi Ed,

Indeed!  I mistook the meaning of "UP".  Thank you!
I just cancelled the bug report.

# ifconfig eno2 down

# ip link show eno2
2: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN

# nmcli device | grep eno2
eno2        ethernet  unavailable  --

# ifconfig eno2 up

# nmcli device | grep eno2
eno2        ethernet  connected    eno2



You would not happen to know if there is a command like
    ifconfig eno2 down
that does not require root privileges?

-T

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to