|
发表于 2009-11-26 18:10:21
|
显示全部楼层
我的经验是设置两块网卡,一个 host only 用于内部通讯,一个 nat 用于使用 internet
这样宿主不必做额外设置. 反正虚拟网卡不花钱
VB 设置如图
虚拟机 ip addr 如下:
- root [ ~ ]0# ip addr
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
- 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
- link/ether 08:00:27:2a:af:56 brd ff:ff:ff:ff:ff:ff
- inet 192.168.56.101/24 brd 192.168.56.255 scope global eth0
- inet6 fe80::a00:27ff:fe2a:af56/64 scope link
- valid_lft forever preferred_lft forever
- 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
- link/ether 08:00:27:fe:7e:f2 brd ff:ff:ff:ff:ff:ff
- inet 10.0.2.15/24 brd 10.0.2.255 scope global eth1
- inet6 fe80::a00:27ff:fefe:7ef2/64 scope link
- valid_lft forever preferred_lft forever
- root [ ~ ]0#
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|