[[email protected] ~]# ifconfig
brq39513fa0-54 Link encap:Ethernet HWaddr 00:0C:29:3B:15:9F
inet addr:192.168.33.11 Bcast:192.168.33.255 Mask:255.255.255.0
inet6 addr: fe80::48c3:d8ff:fe32:61b4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1086 (1.0 KiB) TX bytes:510 (510.0 b)
eth0 Link encap:Ethernet HWaddr 00:0C:29:3B:15:9F
inet6 addr: fe80::20c:29ff:fe3b:159f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1134 errors:0 dropped:0 overruns:0 frame:0
TX packets:794 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:155254 (151.6 KiB) TX bytes:89524 (87.4 KiB)
eth1 Link encap:Ethernet HWaddr 00:0C:29:3B:15:A9
inet addr:192.168.224.130 Bcast:192.168.224.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3b:15a9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5789 (5.6 KiB) TX bytes:3454 (3.3 KiB)
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:20855 errors:0 dropped:0 overruns:0 frame:0
TX packets:20855 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5930267 (5.6 MiB) TX bytes:5930267 (5.6 MiB)
ns-646b17aa-ca Link encap:Ethernet HWaddr FA:16:3E:5C:64:A9
inet addr:192.168.33.103 Bcast:192.168.33.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:fe5c:64a9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:184 errors:0 dropped:0 overruns:0 frame:0
TX packets:392 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33486 (32.7 KiB) TX bytes:30289 (29.5 KiB)
tap646b17aa-ca Link encap:Ethernet HWaddr C2:63:47:F7:43:53
inet6 addr: fe80::c063:47ff:fef7:4353/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:392 errors:0 dropped:0 overruns:0 frame:0
TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30289 (29.5 KiB) TX bytes:33486 (32.7 KiB)
[[email protected] ~]# brctl show
bridge name bridge id STP enabled interfaces
brq39513fa0-54 8000.000c293b159f no eth0
tap646b17aa-ca
虚拟机开始获取的ip地址是VMware Workstation的DHCP给分配的,所以我们得给它手动配置一个IP
最好把VMware Workstation的DHCP关闭掉。