Re: What is wrong with my `nmcli device status`?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux