|
每次重新启动以后ifconfig查看,得到如下结果:
james@debianJ:~$ sudo ifconfig
lo Link encap ocal 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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
需要dpkg-reconfigure etherconf以后,才可以使用网络,不知道是怎么一回事?
我的/etc/network/interfaces如下:
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo
iface lo inet loopback
iface eth0 inet static
address 10.1.246.123
netmask 255.255.255.0
broadcast 10.1.246.255
gateway 10.1.246.2
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED. |
|