No, it's not available. This is my virtual network.
Bridge "br0"
Port "br0"
Interface "br0"
type: internal
Port "eth0"
Interface "eth0"
Port "tap1"
tag: 1
Interface "tap1"
Port "tap0"
Interface "tap0"
I used command: "kvm -m 512 -net nic,macaddr=00:11:22:33:cc:dd -net
tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -cdrom
/home/khai/Downloads/ubuntu-10.10-desktop-i386.iso" to start my first VM
with port 'tap0'. This VM pings successfully to the bridge and the Internet.
I used another command: "kvm -m 512 -net nic,macaddr=00:11:dd:ff:cc:dd -net
tap,script=/etc/ovs-ifup1,downscript=/etc/ovs-ifdown -cdrom
/home/khai/Downloads/ubuntu-10.10-desktop-i386.iso" to start my second
guest with port 'tap1'. In this command I used the script 'ovs-ifup1':
#!/bin/sh
switch='br0'
/sbin/ifconfig $1 0.0.0.0 up
ovs-vsctl add-port ${switch} $1 tag=1
So port 'tap1' would automatically add to bridge br0 with vlan tag=1.
However when the 2nd VM start, its network is disconnected. It's eth0
doesn't have an IP address. I tried 'sudo dhcp eth0' but errors
'DHCPDISCOVER on eth0 to 255.255.255.0 port 67 interval 3...' came up.
Then I tried 'sudo ifconfig 192.168.1.23 netmask 255.255.255.0', it looks
good. But when I ping to the bridge, it shows " Destination host
unreachable' error.
I'm really stuck in this trouble. Do you have any suggestions on this
problem?
Thanks in advance.
On 29 August 2012 21:20, Ben Pfaff <[email protected]> wrote:
> On Wed, Aug 29, 2012 at 02:21:55PM +0700, Đình Khải Nguyễn wrote:
> > However, the problem occurs when I try to add a VM to a VLAN using
> command
> > like: 'ovs-vsctl add-port br0 tap0 tag=1'. The guest VM will immediately
> > lose the wired connection, so I cannot ping to another VM nor to the
> > internet.
>
> Is the Internet available on your network on VLAN 1?
>
--
Best regards,
// =================================================
// Nguyễn Đình Khải
// K53CA, Faculty of Computer Science
// University of Engineering and Technology, VNU, Hanoi
// Mobile: 01696972265
// =================================================
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss