ip a
blah blah network blah to get a message length
PS what image are you using?
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enP4p65s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:e0:4c:68:00:b3 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.25/24 brd 192.168.1.255 scope global dynamic noprefixroute enP4p65s0
valid_lft 81324sec preferred_lft 81324sec
inet6 fdd4:40f0:f40b:b400:1491:2840:9237:af50/64 scope global temporary dynamic
valid_lft 6796sec preferred_lft 3196sec
inet6 fdd4:40f0:f40b:b400:b9ae:9eda:9149:4777/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 6796sec preferred_lft 3196sec
inet6 fe80::c85d:e428:d7cb:d6e1/64 scope link noprefixroute
valid_lft forever preferred_lft forever
rock@rock-5b:~$ ifconfig
enP4p65s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.25 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fdd4:40f0:f40b:b400:b9ae:9eda:9149:4777 prefixlen 64 scopeid 0x0<global>
inet6 fe80::c85d:e428:d7cb:d6e1 prefixlen 64 scopeid 0x20<link>
inet6 fdd4:40f0:f40b:b400:1491:2840:9237:af50 prefixlen 64 scopeid 0x0<global>
ether 00:e0:4c:68:00:b3 txqueuelen 1000 (Ethernet)
RX packets 7620 bytes 5516042 (5.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3024 bytes 250630 (250.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 134
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 1000 (Local Loopback)
RX packets 285 bytes 22607 (22.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 285 bytes 22607 (22.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0