我正在尝试连接到互联网。我里面有 Virtual Box 和 Debian。
我做不到。
当我尝试 ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
...
想到了 /etc/network/interface
auto lo
iface lo inet loopface
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.1.18
netmask 255.255.255.0
到 etc/init.d/networking 重新启动
siocsifaddr no such device
eth1: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: no such device
eth1: ERROR while getting interface flags: No such device
ifconfig -s 打印
iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR FLG
lo 16436 0 696 0 0 0 696 0 0 0 L
有人能帮我吗?提前谢谢