Table of Contents

Ubuntu - Networking - Get Network Interfaces

Display the IP address assigned to all interfaces

ip -br -c addr show

returns

lo               UNKNOWN        127.0.0.1/8 ::1/128 
enp3s0           UP             
enp11s0f0        DOWN           
enp11s0f1        DOWN           
enp11s0f2        DOWN           
enp11s0f3        UP             
wlp6s0           DOWN           
vmbr0            UP             192.168.1.95/24 fe80::84f9:ecff:fe63:5155/64 
vmbr1            UP             fe80::a4d7:3ff:fe7a:d19c/64 
tap102i0         UNKNOWN        
fwbr102i0        UP             
fwpr102p0@fwln102i0 UP             
fwln102i0@fwpr102p0 UP             
tap100i0         UNKNOWN        
fwbr100i0        UP             
fwpr100p0@fwln100i0 UP             
fwln100i0@fwpr100p0 UP             
veth201i0@if2    UP             
fwbr201i0        UP             
fwpr201p0@fwln201i0 UP             
fwln201i0@fwpr201p0 UP             
veth105i0@if2    UP             
fwbr105i0        UP             
fwpr105p0@fwln105i0 UP             
fwln105i0@fwpr105p0 UP

Display the MAC address assigned to all interfaces

ip -br -c link show

returns

lo               UNKNOWN        00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> 
enp3s0           UP             a8:a1:59:2f:b8:a6 <BROADCAST,MULTICAST,UP,LOWER_UP> 
enp11s0f0        DOWN           80:61:5f:0a:d0:ba <NO-CARRIER,BROADCAST,MULTICAST,UP> 
enp11s0f1        DOWN           80:61:5f:0a:d0:bb <NO-CARRIER,BROADCAST,MULTICAST,UP> 
enp11s0f2        DOWN           80:61:5f:0a:d0:bc <NO-CARRIER,BROADCAST,MULTICAST,UP> 
enp11s0f3        UP             80:61:5f:0a:d0:bd <BROADCAST,MULTICAST,UP,LOWER_UP> 
wlp6s0           DOWN           ac:67:5d:48:46:03 <BROADCAST,MULTICAST> 
vmbr0            UP             86:f9:ec:63:51:55 <BROADCAST,MULTICAST,UP,LOWER_UP> 
vmbr1            UP             a6:d7:03:7a:d1:9c <BROADCAST,MULTICAST,UP,LOWER_UP> 
tap102i0         UNKNOWN        86:4e:8a:12:91:99 <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> 
fwbr102i0        UP             7e:6f:c5:5c:5c:84 <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwpr102p0@fwln102i0 UP             06:18:a3:5e:85:aa <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwln102i0@fwpr102p0 UP             7e:c8:04:9d:f4:40 <BROADCAST,MULTICAST,UP,LOWER_UP> 
tap100i0         UNKNOWN        3e:f5:8d:d7:4c:30 <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> 
fwbr100i0        UP             2e:02:05:1d:39:cf <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwpr100p0@fwln100i0 UP             e6:30:04:24:fd:44 <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwln100i0@fwpr100p0 UP             f6:ab:40:67:7c:50 <BROADCAST,MULTICAST,UP,LOWER_UP> 
veth201i0@if2    UP             fe:8a:78:b0:15:89 <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwbr201i0        UP             2a:65:d4:0b:f5:b3 <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwpr201p0@fwln201i0 UP             7a:f6:e4:61:78:96 <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwln201i0@fwpr201p0 UP             46:7f:81:48:3a:e2 <BROADCAST,MULTICAST,UP,LOWER_UP> 
veth105i0@if2    UP             fe:5b:19:fb:46:59 <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwbr105i0        UP             46:23:83:b0:42:7f <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwpr105p0@fwln105i0 UP             56:bc:24:49:32:fb <BROADCAST,MULTICAST,UP,LOWER_UP> 
fwln105i0@fwpr105p0 UP             2a:df:dd:9c:92:b3 <BROADCAST,MULTICAST,UP,LOWER_UP>