Консоль:
~# ifconfig
eth0 Link encap:Ethernet HWaddr 1c:6f:65:42:32:6d
inet addr:192.168.0.155 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 2002:3e44:9066:5:1e6f:65ff:fe42:326d/64 Scope:Global
inet6 addr: fec0::5:1e6f:65ff:fe42:326d/64 Scope:Site
inet6 addr: fe80::1e6f:65ff:fe42:326d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:177 errors:0 dropped:0 overruns:0 frame:0
TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33120 (32.3 KiB) TX bytes:22682 (22.1 KiB)
Interrupt:28 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:258 errors:0 dropped:0 overruns:0 frame:0
TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:46897 (45.7 KiB) TX bytes:46897 (45.7 KiB)
Консоль:
~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 1c:6f:65:42:32:6d
inet addr:192.168.0.155 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 2002:3e44:9066:5:1e6f:65ff:fe42:326d/64 Scope:Global
inet6 addr: fec0::5:1e6f:65ff:fe42:326d/64 Scope:Site
inet6 addr: fe80::1e6f:65ff:fe42:326d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:181 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33488 (32.7 KiB) TX bytes:24022 (23.4 KiB)
Interrupt:28 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:258 errors:0 dropped:0 overruns:0 frame:0
TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:46897 (45.7 KiB) TX bytes:46897 (45.7 KiB)
Консоль:
~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp