200---254
2.系统vm的网络情况
Ssvm共有四个网卡
root@s-1-VM:~# ifconfig
#链接本地 IP 地址
eth0 Link
encap:Ethernet HWaddr 0e:00:a9:fe:02:f1
inet addr:169.254.2.241 Bcast:169.254.255.255
Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:237 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17805 (17.3 KiB) TX bytes:5416 (5.2 KiB)
#专用 IP 地址
eth1 Link
encap:Ethernet HWaddr 06:87:82:00:00:16
inet addr:192.168.153.121
Bcast:192.168.153.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:79802 errors:0 dropped:0 overruns:0 frame:0
TX packets:79503 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:970427343 (925.4 MiB) TX bytes:5881414 (5.6
MiB)
#公用 IP 地址
eth2 Link
encap:Ethernet HWaddr 06:29:98:00:00:6c
inet addr:192.168.153.152
Bcast:192.168.153.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:1045 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:99750 (97.4 KiB) TX bytes:0 (0.0 B)
#这个应该是存储的ip地址
eth3 Link
encap:Ethernet HWaddr 06:38:56:00:00:49
inet addr:192.168.153.222
Bcast:192.168.153.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:1058 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:106866 (104.3 KiB) TX bytes:0 (0.0 B)
Vvm 共有3个网卡
root@v-2-VM:~# ifconfig
#链接本地 IP 地址
eth0 Link
encap:Ethernet HWaddr 0e:00:a9:fe:01:16
inet addr:169.254.1.22 Bcast:169.254.255.255
Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:264 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19107 (18.6 KiB) TX bytes:5434 (5.3 KiB)
#专用 IP 地址
eth1 Link
encap:Ethernet HWaddr 06:3e:26:00:00:2d
inet addr:192.168.153.144
Bcast:192.168.153.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:333309 errors:0 dropped:0 overruns:0 frame:0
TX packets:355243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
txqueuelen:1000
RX bytes:3539835785 (3.2 GiB) TX bytes:49551290 (47.2
MiB)
#公用 IP 地址
eth2 Link
encap:Ethernet HWaddr 06:d3:88:00:00:6d
inet addr:192.168.153.153
Bcast:192.168.153.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:62132 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30114822 (28.7 MiB) TX bytes:1344 (1.3 KiB)
rvm 共有两个网卡
root@r-4-VM:~# ifconfig
#来宾 IP 地址
eth0 Link
encap:Ethernet HWaddr 06:3a:40:00:00:90
inet addr:192.168.153.188
Bcast:192.168.153.255 Mask:255.255.255.0
UP
BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:1455 errors:0 dropped:0 overruns:0 frame:0
TX packets:388 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:129659 (126.6 KiB) TX bytes:29887 (29.1
KiB)
#链接本地 IP 地址
eth1 Link
encap:Ethernet HWaddr 0e:00:a9:fe:02:ab
inet addr:169.254.2.171 Bcast:169.254.255.255
Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:5128 errors:0 dropped:0 overruns:0 frame:0
TX packets:4919 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1065953 (1.0 MiB) TX bytes:913038 (891.6
KiB)
3.创建实例的网络情况
实例1
1个网卡
cloud@ubuntu-server1:~$ ifconfig
eth0 Link
encap:Ethernet HWaddr 06:f6:a4:00:00:6a
inet addr:192.168.153.150
Bcast:192.168.153.255 Mask:255.255.255.0
inet6 addr: fe80::4f6:a4ff:fe00:6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:194 errors:0 dropped:0 overruns:0 frame:0
TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17792 (17.7 KB) TX bytes:21749 (21.7 KB)
实例2
1个网卡
cloud@ubuntu-server2:~$ ifconfig
eth0 Link
encap:Ethernet HWaddr 06:d5:f4:00:00:6f
inet addr:192.168.153.155
Bcast:192.168.153.255 Mask:255.255.255.0
inet6 addr: fe80::4d5:f4ff:fe00:6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:324 errors:0 dropped:0 overruns:0 frame:0
TX packets:369 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35817 (35.8 KB) TX bytes:31129 (31.1 KB)