在 Mac OSX 上,我运行的是带有 centos 6.3 客户机的 virtualbox 4.2.16。在 centos 客户机上,当我发出ifdown eth0
或ifup eth0
收到以下信息时:
usage: ifdown <device name>
eth1 也是一样。我这里做错了什么?
网络正常 - 我可以访问网站 - 但我想将其反弹。 ifconfig 显示:
eth0 Link encap:Ethernet HWaddr 08:00:27:9A:3D:5F
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe9a:3d5f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11479 errors:0 dropped:0 overruns:0 frame:0
TX packets:10264 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2734159 (2.6 MiB) TX bytes:824710 (805.3 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:2C:14:E3
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe2c:14e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59800 errors:0 dropped:0 overruns:0 frame:0
TX packets:60410 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8133761 (7.7 MiB) TX bytes:12307987 (11.7 MiB)
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:99713 errors:0 dropped:0 overruns:0 frame:0
TX packets:99713 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11816688 (11.2 MiB) TX bytes:11816688 (11.2 MiB)
谢谢!