On Thu, Mar 14, 2013 at 4:14 AM, Fang <wchunx...@126.com> wrote: > Hello > I have some trouble when I test "internal port" > I have a vm on my host > br0:192.168.0.238 > I set: > ovs-vsctl add-port br0 vlan1 tag=1 -- set interface vlan1 type=internal > ifconfig vlan1 192.168.10.1 netmask 255.255.255.0 up > echo 1 > /proc/sys/net/ipv4/ip_forward > > on vm I set: > ifconfig eth0 192.168.10.10 netmask 255.255.255.0 > route add default gw 192.168.10.1 > > Everything works well ,on vm I can ping 192.168.10.1(vlan1) or > 192.168.0.238(br0) > if I set > vlan1 IP 192.168.0.11 > vm IP 192.168.0.33 ,gateway 192.168.0.11 > on vm1 I can't ping vlan1 or br0 > I can't set the internal port to the same segment with br0.Why?
Using the same subnet on two different L2 segments is not a very good idea because Linux pools all IP addresses together as belonging to the system rather than individual interfaces. It's likely responding on either a different interface or with a different address than what you expect. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss