December 2018
Beginner
826 pages
22h 54m
English
On older systems, or those managed by stick-in-the-mud admins, you might also use ifconfig to find the IP and subnet.
Simply running ifconfig will print all relevant information:
$ ifconfigeth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::5054:ff:fec9:c704 prefixlen 64 scopeid 0x20<link> ether 52:54:00:c9:c7:04 txqueuelen 1000 (Ethernet) RX packets 14404 bytes 12885029 (12.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 5672 bytes 409079 (399.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.33.10 netmask 255.255.255.0 broadcast 192.168.33.255 ...