[ovs-discuss] communication among VMs in multiple physical hosts

Nan codingcatovs at gmail.com
Fri Oct 18 23:10:01 UTC 2013


Hi, Alex, 

I'm sorry for the in accurate description

When I say host, I actually mean VMs

in the physical host where the VMs run, here is the ovs-vsctl output

zhunan at zhunan-PowerEdge-R210-II:~$ sudo ovs-vsctl show
[sudo] password for zhunan: 
01db97ba-8174-40f6-9648-f8f14a317e2b
    Bridge "br0"
        Port "eth0"
            Interface "eth0"
        Port "br0"
            Interface "br0"
                type: internal
        Port "eth1"
            Interface "eth1"


route:

zhunan at zhunan-PowerEdge-R210-II:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.55.1    0.0.0.0         UG    100    0        0 br0
link-local      *               255.255.0.0     U     1000   0        0 br0
192.168.2.0     *               255.255.255.0   U     1      0        0 eth1
192.168.3.0     *               255.255.255.0   U     1      0        0 eth2
192.168.4.0     *               255.255.255.0   U     1      0        0 eth3
192.168.5.0     *               255.255.255.0   U     1      0        0 eth4
192.168.55.0    *               255.255.255.0   U     0      0        0 br0



ifconfig

zhunan at zhunan-PowerEdge-R210-II:~$ ifconfig
br0       Link encap:Ethernet  HWaddr d4:ae:52:c7:cf:08  
          inet addr:192.168.55.142  Bcast:192.168.55.255  Mask:255.255.255.0
          inet6 addr: fe80::d6ae:52ff:fec7:cf08/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:406721 errors:0 dropped:0 overruns:0 frame:0
          TX packets:176838 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:24463921 (24.4 MB)  TX bytes:907800808 (907.8 MB)

eth0      Link encap:Ethernet  HWaddr d4:ae:52:c7:cf:08  
          inet6 addr: fe80::d6ae:52ff:fec7:cf08/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:412749 errors:0 dropped:0 overruns:0 frame:0
          TX packets:700699 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:32320511 (32.3 MB)  TX bytes:945171762 (945.1 MB)
          Interrupt:16 Memory:c0000000-c0012800 

eth1      Link encap:Ethernet  HWaddr d4:ae:52:c7:cf:09  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::d6ae:52ff:fec7:cf09/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2448 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1262 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:227749 (227.7 KB)  TX bytes:112990 (112.9 KB)
          Interrupt:17 Memory:c2000000-c2012800 

eth2      Link encap:Ethernet  HWaddr 90:e2:ba:29:62:08  
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::92e2:baff:fe29:6208/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:770 errors:0 dropped:0 overruns:0 frame:0
          TX packets:189 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:362292 (362.2 KB)  TX bytes:19946 (19.9 KB)
          Memory:c6820000-c6840000 

eth3      Link encap:Ethernet  HWaddr 90:e2:ba:29:62:09  
          inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::92e2:baff:fe29:6209/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2625 errors:0 dropped:0 overruns:0 frame:0
          TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:659987 (659.9 KB)  TX bytes:21081 (21.0 KB)
          Memory:c6800000-c6820000 

eth4      Link encap:Ethernet  HWaddr 90:e2:ba:29:62:0c  
          inet addr:192.168.5.1  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::92e2:baff:fe29:620c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:361 errors:4 dropped:0 overruns:0 frame:2
          TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:166862 (166.8 KB)  TX bytes:21628 (21.6 KB)
          Memory:c5c20000-c5c40000 

eth5      Link encap:Ethernet  HWaddr 90:e2:ba:29:62:0d  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Memory:c5c00000-c5c20000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:166704 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166704 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:212921229 (212.9 MB)  TX bytes:212921229 (212.9 MB)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:52:1c:bb  
          inet6 addr: fe80::fc54:ff:fe52:1cbb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38347 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:13620 (13.6 KB)  TX bytes:3431818 (3.4 MB)


Thank you for your patience 

Best,


-- 
Nan 


On Friday, 18 October, 2013 at 5:38 PM, Alex Wang wrote:

> Hey Nan,
> 
> Could you explain more the following points?
> 
> > But my problem is that I can add ports to br0 while keeping connection works, I cannot make bridge to forward the packet to the correct place
> > 
> > like in the bridge I have 4 ports, eth0 to 192.168.55.1, eth1 to 192.168.2.2 
> > 
> > eth3, eth4 are connecting to the hosts, 
> 
> 
> Which hosts are eth3,eth4 connected to? or you mean VMs?
> 
>  
> > hosts send packet to both of the segments, I created a bridge with eth0, but how can I make bridge forward packets to 192.168.2.* to eth1?
> > 
> > in my cluster, they are always forward to eth0 
> 
> Could you provide the following command output from host1?
> ovs-vsctl show,
> route,
> ifconfig,
> 
> So, I can have a better understanding of the whole setup. 
> 
> Thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20131018/66765557/attachment.html>


More information about the discuss mailing list