Hi,

My setup:

          VM1 <-internalnetwork1-> VM2 <-internalnetwork2-> VM3

VM1 ubuntu 12.10
    eth0 --> NAT
    eth1 --> intnet1 (static ip 192.168.1.10 /24)
VM3 ubuntu 12.10
    eth0 --> NAT
    eth1 --> intnet2 (static ip 192.168.1.20 /24)
VM2 ubuntu 12.04 with openvswitch installed
    eth0 --> NAT
    eth1 --> intnet1 (internalnetwork 1)
    eth2 --> intnet2 (internalnetwork 2)


I am trying to bridge the internal networks
             intnet1 (connecting VM1 & VM2)
          & intnet2 (connecting VM2 & VM3)
 at --> VM2 (intermediate system)

Purpose -> I want to ping from VM1 to VM3 via the ovs-bridge at VM2
                 I want to be able to reach VM1 & VM3 from VM2.
      Basically trying to expand the ethernet LAN's broadcast domain across
both the intnet1 & intnet2.
      Assumption both the networks are with same IP subnet.

Approach setup similar to openvswitch.org/FAQ with VMs
     at VM2
     1.1) modified /etc/network/interfaces as follows
               **********BEGIN******************
               auto lo
               iface lo inet loopback

               auto eth0
               iface eth0 inet dhcp

               auto eth1
               iface eth1 inet manual
                    up ifconfig $IFACE 0.0.0.0 promisc up
                    down ifconfig $IFACE down

               auto eth2
               iface eth2 inet manual
                    up ifconfig $IFACE 0.0.0.0 promisc up
                    down ifconfig $IFACE down

               auto br0
               iface br0 inet static
                      address 192.168.1.15
                      netmask 255.255.255.0
                      broadcast 192.168.1.255
               **********END******************
     1.2) add the ovs bridge
                 ovs-vsctl add-br br0
                 ovs-vsctl set bridge br0 stp_enable=true
                 ovs-vsctl add-port br0 eth1
                 ovs-vsctl add-port br0 eth2
                 *** ovs-vsctl show output is as follows ****
                 Bridge "br0"
                     Port "br0"
                           Interface "br0"
                                 type: internal
                     Port "eth1"
                           Interface "eth1"
                     Port "eth2"
                           Interface "eth2"
                   ovs_version: "1.4.0+build0"
                 *** end ****
     1.3) reboot
     1.4) from VM2 ping 192.168.1.10 or ping 192.168.1.20
            RESULT: either it pings VM1 or VM3 only, not both.
                  PING for VM1 says 192.168.1.10
                                   from 192.168.1.15 : icmp_seq=...
Destination not reachable

More logs:
VM1 --> arp -n
   --> shows mac address for 192.168.1.15
   however, not able to ping 192.168.1.15

VM2 --> arp -n
    --> shows mac address for 192.168.1.20 only
    --> able to ping 192.168.1.20
    --> not able to ping 192.168.1.10 (IP address from VM1)

VM3 --> arp -n
   --> shows mac address for 192.168.1.15
   --> able to ping 192.168.1.15


I am unable to understand what is wrong in above steps. What could be the
issue here?

Thanks,
Mahesh Babu
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to