1

X と Y の 2 つの Ubuntu 仮想マシンがあります。x には Open vSwitch と Floodlight が実行されており、Y vm はホストとして機能します。X vm に接続されたホストオンリー アダプターと NAT アダプターがあります。Y vm にはホストオンリー アダプターしかありません。

X および Y vm のホスト オンリー アダプターは同じサブネット内にあります。

ここで、X vm で実行されている OVS を介して、Y vm をインターネットに接続したいと考えています。出来ますか?はいの場合、どのように?

4

2 に答える 2

2

Open vSwitch のみを介してホスト マシンへのインターネット接続を取得するには、

DHCP の使用

1: add the interface connected to internet(say eth0) on the OVS machine to the OVS bridge.
2: change the ip address of eth0 interface to 0 and get a dhcp ip to the bridge interface using dhclient
3: add the interfaces that are connected to the hosts to the OVS bridge
4: get dhcp ip's to the hosts by using dhclient on the host machines

カスタム IP アドレスの使用

1: add the interfaces connected to the hosts and the interface connected to the internet to the OVS bridge
2: make the internet interface ip as 0 
3: set the bridge ip address to the ip address that was previously assigned to the internet interface
4: make sure you have the host ip addresses in the same network address range as the bridge IP address.
于 2014-05-13T03:20:13.363 に答える