目前在此定義檔中, 所宣告的虛擬網路設備, 是由 FloppyFW 及 Vyatta 來執行, 這二套系統在第一次啟動, 會根據 CloudNetwork.xml 的定義自動執行網路設定
CloudNetwork.xml
<?xml version='1.0' encoding ="utf-8"?> <network> <hub> <name>hub100</name> <ifname>net100</ifname> <nid>172.30.100.0</nid> <netmask>255.255.255.0</netmask> <dhcp> <start>172.30.100.128</start> <end>172.30.100.250</end> </dhcp> </hub> <hub> <name>hub99</name> <ifname>net99</ifname> <nid>172.30.99.0</nid> <netmask>255.255.255.0</netmask> </hub> <nat> <name>n1</name> <memory>393216</memory> <system>floppyfw</system> <out> <hub>default</hub> <ip>dhcp</ip> </out> <in> <hub>hub100</hub> <ip>172.30.100.254</ip> <mac>52:54:00:84:4a:ae</mac> </in> </nat> <router> <name>r1</name> <memory>393216</memory> <system>floppyfw</system> <out> <hub>hub100</hub> <ip>172.30.100.10</ip> <mac>52:54:00:84:4a:10</mac> </out> <in> <hub>hub99</hub> <ip>172.30.99.254</ip> <mac>52:54:00:84:4a:ff</mac> </in> <routingTable> 192.168.99.0:255.255.255.0:140.137.217.9:eth0 192.168.88.0:255.255.255.0:140.137.217.8:eth0 </routingTable> </router> </network>
沒有留言:
張貼留言