Where can i find these status's explanation

in operation mode, exec command: show interfaces ethernet ethx returns

BROADCAST
MULTICAST
UP
LOWER_UP
NO-CARRIER

Where can i find these status words’ optional values?

thx

vyos@vyos:/tmp$ sudo ifconfig eth2 down
vyos@vyos:/tmp$ 
vyos@vyos:/tmp$ show interfaces ethernet eth2
eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc mq master br0 state DOWN group default qlen 1000
    link/ether 40:62:31:12:8c:3a brd ff:ff:ff:ff:ff:ff

    RX:  bytes  packets  errors  dropped  overrun       mcast
             0        0       0        0        0           0
    TX:  bytes  packets  errors  dropped  carrier  collisions
             0        0       0        0        0           0
vyos@vyos:/tmp$ 
vyos@vyos:/tmp$ 
vyos@vyos:/tmp$ sudo ifconfig eth2 up
vyos@vyos:/tmp$ 
vyos@vyos:/tmp$ show interfaces ethernet eth2
eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master br0 state DOWN group default qlen 1000
    link/ether 40:62:31:12:8c:3a brd ff:ff:ff:ff:ff:ff

    RX:  bytes  packets  errors  dropped  overrun       mcast
             0        0       0        0        0           0
    TX:  bytes  packets  errors  dropped  carrier  collisions
             0        0       0        0        0           0
vyos@vyos:/tmp$ 
vyos@vyos:/tmp$ 
vyos@vyos:/tmp$ show interfaces ethernet eth1
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000
    link/ether 40:62:31:12:8c:39 brd ff:ff:ff:ff:ff:ff

    RX:      bytes  packets  errors  dropped  overrun       mcast
          57238359   457645       0        0        0       68499
    TX:      bytes  packets  errors  dropped  carrier  collisions
         531094903   539824       0        0        0           0
vyos@vyos:/tmp$ 

Hi!

As you can see in the log messages below, netplugd detects the status of the interfaces which then sets the flags that you asked. These are standard networking flags that are set by the kernel that determine the interface’s behavior. You can find the other flag values in the man page of netdevice.

vyos@vyos:~$ sudo ifconfig eth2 down
vyos@vyos:~$ journalctl | grep eth2 
Apr 23 14:28:37 vyos sudo[1868]:     vyos : TTY=ttyS0 ; PWD=/home/vyos ; USER=root ; COMMAND=/usr/sbin/ifconfig eth2 up
Apr 23 14:28:37 vyos netplugd[866]: eth2: state DOWN flags 0x00001002 BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000
Apr 23 14:28:37 vyos netplugd[1870]: /etc/netplug/netplug eth2 in -> pid 1870
Apr 23 14:28:37 vyos netplugd[866]: eth2: state INNING pid 1870 exited status 0
Apr 23 14:28:44 vyos sudo[1873]:     vyos : TTY=ttyS0 ; PWD=/home/vyos ; USER=root ; COMMAND=/usr/sbin/ifconfig eth2 down
Apr 23 14:28:44 vyos netplugd[866]: eth2: state ACTIVE flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001002 BROADCAST,MULTICAST
Apr 23 14:28:44 vyos netplugd[1875]: /etc/netplug/netplug eth2 probe -> pid 1875
Apr 23 14:28:44 vyos netplugd[866]: eth2: state PROBING pid 1875 exited status 256
Apr 23 14:28:44 vyos netplugd[866]: Could not bring eth2 back up
vyos@vyos:~$ sudo ifconfig eth2 up  
vyos@vyos:~$ journalctl | grep eth2 
Apr 23 14:28:37 vyos sudo[1868]:     vyos : TTY=ttyS0 ; PWD=/home/vyos ; USER=root ; COMMAND=/usr/sbin/ifconfig eth2 up
Apr 23 14:28:37 vyos netplugd[866]: eth2: state DOWN flags 0x00001002 BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000
Apr 23 14:28:37 vyos netplugd[1870]: /etc/netplug/netplug eth2 in -> pid 1870
Apr 23 14:28:37 vyos netplugd[866]: eth2: state INNING pid 1870 exited status 0
Apr 23 14:28:44 vyos sudo[1873]:     vyos : TTY=ttyS0 ; PWD=/home/vyos ; USER=root ; COMMAND=/usr/sbin/ifconfig eth2 down
Apr 23 14:28:44 vyos netplugd[866]: eth2: state ACTIVE flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001002 BROADCAST,MULTICAST
Apr 23 14:28:44 vyos netplugd[1875]: /etc/netplug/netplug eth2 probe -> pid 1875
Apr 23 14:28:44 vyos netplugd[866]: eth2: state PROBING pid 1875 exited status 256
Apr 23 14:28:44 vyos netplugd[866]: Could not bring eth2 back up
Apr 23 14:29:21 vyos sudo[1878]:     vyos : TTY=ttyS0 ; PWD=/home/vyos ; USER=root ; COMMAND=/usr/sbin/ifconfig eth2 up
Apr 23 14:29:22 vyos netplugd[866]: eth2: state DOWN flags 0x00001002 BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000
Apr 23 14:29:22 vyos netplugd[1880]: /etc/netplug/netplug eth2 in -> pid 1880
Apr 23 14:29:22 vyos netplugd[866]: eth2: state INNING pid 1880 exited status 0
vyos@vyos:~$ 

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.