- 论坛徽章:
- 0
|
以下是insterfaces的内容
xjc@debianx:~$ sudo cat /etc/net
network/ networks netzone/
xjc@debianx:~$ sudo 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 wlan0
#iface wlan0 inet static
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.2.87
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.199
# wireless-* options are implemented by the wireless-tools package
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.2.199
dns-search cn
以下是ifconfig的显示内容
xjc@debianx:~$ sudo ifconfig
eth0 Link encap:Ethernet HWaddr 60:eb:69:f3:41:38
inet addr:192.168.2.87 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16
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:287 errors:0 dropped:0 overruns:0 frame:0
TX packets:287 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24695 (24.1 KiB) TX bytes:24695 (24.1 KiB)
wlan0 Link encap:Ethernet HWaddr 68:a3:c4:4f:f4:0d
inet addr:192.168.2.88 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::6aa3:c4ff:fe4f:f40d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25325 errors:0 dropped:0 overruns:0 frame:0
TX packets:27386 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22968682 (21.9 MiB) TX bytes:4208917 (4.0 MiB)
|
|