On 11/14/2016 10:18 AM, jd1008 wrote:
On 11/14/2016 11:11 AM, Rick Stevens wrote:
> On 11/14/2016 07:19 AM, Gary Stainburn wrote:
>> >although ifconfig doesn't show anything
> "ifconfig" will only show interfaces that are up. "ifconfig -a"
will
> show you all of them, up or down.
>
On my system, ifconfig without any args:
$ ifconfig
em1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 5c:26:0a:41:aa:70 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf6900000-f6920000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 306 bytes 22656 (22.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 306 bytes 22656 (22.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast
192.168.122.255
ether 52:54:00:47:9a:79 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0b1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 177.33.82.201 netmask 255.255.254.0 broadcast 177.33.82.0
inet6 fe80::8a9f:faff:fe69:7e prefixlen 64 scopeid 0x20<link>
ether 88:9f:fa:69:00:7e txqueuelen 1000 (Ethernet)
RX packets 4616660 bytes 6247573613 (5.8 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2339113 bytes 1108975616 (1.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Note that all of those are up (look in the "flags" area). Again,
"ifconfig" shows interfaces that are up. "ifconfig -a" shows all
known interfaces, up or down. Example, from my laptop (note the
tagged line in the second command):
[root@golem4 ~]# ifconfig | grep flags
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
p4p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
[root@golem4 ~]# ifconfig -a | grep flags
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
p4p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
virbr0-nic: flags=4098<BROADCAST,MULTICAST> mtu 1500
<<<<<<----------
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- Grabel's Law: 2 is not equal to 3--not even for large values of 2. -
----------------------------------------------------------------------