ip

Показать список доступных IP адресов

$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:8d:c0:4d brd ff:ff:ff:ff:ff:ff inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fe8d:c04d/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:6c:87:01 brd ff:ff:ff:ff:ff:ff inet 192.168.83.137/24 brd 192.168.83.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fe6c:8701/64 scope link valid_lft forever preferred_lft forever
$ ip a|grep inet inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0 inet6 fe80::a00:27ff:fe8d:c04d/64 scope link inet 192.168.83.137/24 brd 192.168.83.255 scope global eth1 inet6 fe80::a00:27ff:fe6c:8701/64 scope link