One of the hard ways here is debug each interface like: # sudo tcpdump -i veth0 You can check the packages the specific interface receives.
*Best Regards!* *Chao Yan--------------**My twitter:Andy Yan @yanchao727 <https://twitter.com/yanchao727>* *My Weibo:http://weibo.com/herewearenow <http://weibo.com/herewearenow>--------------* 2014-06-24 7:10 GMT+08:00 quamar niyaz <quamarniyaz.zh...@gmail.com>: > No I did not use any dhcp. > In an another different attempt, I created three machines one is > controller and the rest two act as switches. Each switch has two interfaces > with the one interface it is connected to the controller and another is > used for switch port. Following are my configuration: > 1. Controller IP 192.168.0.1/24 and pox controller is running inside it > with the misc.of_tutorial (hub) application > 2. Switch PC 1 eth0 IP: 192.168.0.2/24. I attached eth1 with the ovs > bridge using commands: > a. sudo ovs-vsctl add-br br0 > b. sudo ovs-vsctl add-port eth1 > c. sudo ifconfig eth1 0 > d. sudo ifconfig br0 10.10.1.2 netmask 255.255.255.0 > e. sudo ip tuntap add mode tap veth0 (Created this for connecting a VM1 > on switch PC1 with IP 10.10.1.21 with veth0 interface ) > f. sudo ip link set veth0 up > g. sudo ovs-vsctl add-port veth0 > h. sudo ip tuntap add mode tap veth1 (Created this for connecting a VM2 > with IP 10.10.1.22 with veth1 interface ) > i. sudo ip link set veth1 up > j. sudo ovs-vsctl add-port veth1 > h. sudo ovs-vsctl set-controller tcp:192.168.0.1:6633 (After this > command the controller PC shows a switch is connected) > 3. I performed the same steps in Switch PC 2 with eth0 IP 192.168.0.3/24 > and br0 IP 10.10.1.3/24 and VM3 IP is 10.10.1.31. > > However the issue is that I am not able to see any successful ping between > VM1 to VM3 which are on different Switch PCs. However VM1 and VM2 can ping > each other. The other thing I observed is there is no flow installed by the > controller on the Switch PCs bridge when I tried to ping from VM1 to VM2 or > VM1 to VM3. However Switch PCs are connected with the controller. Can you > shed light into it. > Thanks. > > > > > On Mon, Jun 23, 2014 at 6:43 PM, 严超 <yanchao...@gmail.com> wrote: > >> Then the question is why did eth0 IP address get reset ? Did you use dhcp >> to host ip ? >> >> *Best Regards!* >> >> >> *Chao Yan--------------**My twitter:Andy Yan @yanchao727 >> <https://twitter.com/yanchao727>* >> >> >> *My Weibo:http://weibo.com/herewearenow >> <http://weibo.com/herewearenow>--------------* >> >> >> 2014-06-23 11:54 GMT+08:00 quamar niyaz <quamarniyaz.zh...@gmail.com>: >> >>> Hello, >>> I am trying to deploy a testbed using the tutorial mentioned in >>> http://archive.openflow.org/wp/deploy-labsetup/. I have five PCs, among >>> them I want to use one PC as a controller, two PCs as switches and two PCs >>> as hosts. The two PCs which I want to use as switches have three ethernet >>> interfaces. One interface is used to connect with the controller and the >>> other two interfaces are used as switch ports according to the tutorial. I >>> installed openvswitch1.1.0pre2.tar.gz package on them. The two PCs for >>> switches and the controller PC are connected with a switch(hub). Following >>> are my configurations: >>> i) The controller PC has the IP 192.168.0.100/24 and started the POX >>> controller with L2 learning switch module using the command ./pox.py >>> log.level --DEBUG forwarding.l2_learning >>> ii) One of the PC used for switch has configured in the following manner: >>> a) IP of ethernet interface eth0: 192.168.0.1/24. I am able to ping >>> the controller PC. >>> b) Create a datapath using the command: sudo ./utilities/ovs-dpctl >>> add-dp dp0. >>> c) Then added the rest two interfaces using the command: sudo >>> ./utilities/ovs-dpctl add-if dp0 eth1 (one more time for adding eth2) >>> d) Then tried to connect the controller using the command: sudo >>> ./utilities/ovs-openflowd dp0 --datapath-id=00000023208BA290 >>> tcp:192.168.0.100 port 6633 --out-of-band >>> >>> However I could not get connect with the controller. The issue, I >>> figured out, is that the when I create a datapath dp0, the switch PC's >>> interface eth0 IP address gets reset. I checked it with ifconfig and it >>> shows no IP address for any interface and I am not able to ping the >>> controller after that. Here is the topology diagram. All of the these >>> machines are VMs created over ESXi host and connected through VM Networks. >>> >>> _______________ >>> | >>> | >>> | PC Controller >>> | >>> | eth0 >>> | >>> |_______________ | >>> | >>> | >>> >>> ____ |___ >>> ____________| >>> |_________ >>> | | VMNet2 | >>> | >>> ____|________ |________ | >>> ______|_______ >>> | eth0 | ________ >>> | eth0 | >>> |PC SW_1 eth1|____| >>> |_____| PC SW_2 | >>> | | |VMnet3 >>> | | eth1 | >>> | eth2 | >>> |________| | eth2 | >>> >>> |_____________| |_____________| >>> | >>> | >>> | >>> | >>> >>> | | >>> _|__ >>> __|__ >>> | >>> | | | >>> | VM | >>> | VM | >>> | >>> Net4| | Net5| >>> |____ | >>> |_____| >>> | >>> | >>> | >>> | >>> PC >>> H1 PC H2 >>> >>> >>> Can anyone help me to figured it out. I am trying to get it fixed, but >>> could not succeed. I really appreciate your help. >>> Thanks. >>> >>> >>> -- >>> With regards, >>> Quamar Niyaz >>> >>> >>> _______________________________________________ >>> discuss mailing list >>> discuss@openvswitch.org >>> http://openvswitch.org/mailman/listinfo/discuss >>> >>> >> > > > -- > With regards, > Quamar Niyaz > >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss