This is what I use for example: sudo ovs-vsctl add-port sw1 gre201 -- set interface gre201 type=gre options:remote_ip=10.0.139.144 sudo ovs-vsctl add-port sw1 gre201 -- set interface gre201 type=gre options:remote_ip=10.0.139.234
And from "sudo ovs-vsctl show" I set the MTU to 1420 on one end of the tunnel so that ssh sessions can run over the tunnel. I attach LXC containers to the ovs switch sw1 and use the GRE tunnel for ssh between containers on the two hosts. orabuntu@ip-10-0-139-144:/etc/network/openvswitch$ ifconfig sw1 sw1 Link encap:Ethernet HWaddr e6:92:cc:99:93:49 inet addr:10.209.53.201 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::e492:ccff:fe99:9349/64 Scope:Link UP BROADCAST RUNNING MULTICAST *MTU:1420* Metric:1 RX packets:5445 errors:0 dropped:0 overruns:0 frame:0 TX packets:358 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:356641 (356.6 KB) TX bytes:70319 (70.3 KB) ubuntu@ip-10-0-139-234:~$ ifconfig sw1 sw1 Link encap:Ethernet HWaddr d2:d9:c4:bf:8b:43 inet addr:10.209.53.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::d0d9:c4ff:febf:8b43/64 Scope:Link UP BROADCAST RUNNING MULTICAST *MTU:1500* Metric:1 RX packets:273222 errors:0 dropped:0 overruns:0 frame:0 TX packets:230878 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:15256132 (15.2 MB) TX bytes:16409194 (16.4 MB) HTH On Wed, Oct 2, 2019 at 2:22 PM SAMRAT PRAVIN PATEL <samrat.pa...@utah.edu> wrote: > Hi , > > > I am trying to connect two openvswitch on GENI. So for GRE tunnel we need > to add the remote IP of the physical interfaces of the openvswitch ? Please > guide me . Hoping for your response. > > > *sudo **ovs-vsctl add-port br0 gre0 *-- set interface gre0 type=gre > options:remote_ip=10.10.1.3 ( These are the ip address of the host pcs) > > > *sudo **ovs-vsctl add-port br0 gre0 -- set interface gre0 type=gre > options:remote_ip=**10.10.1.* > > *4 ( These remote are the ip address of the host pcs) * > > > > Regards > > Samrat Pravin Patel > _______________________________________________ > discuss mailing list > disc...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > -- Gilbert Standen Creator Orabuntu-LXC 914-261-4594 gilb...@orabuntu-lxc.com
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss