Quick command references to set up GRE tunnel with OVS
/*Add a bridge br0*/
sudo ovs-vsctl add-br br0
/*Add a temp internal interface to connect to guest VM*/
sudo ovs-vsctl add-port br0 tep0 -- set interface tep0 type=internal
/*set new subnet IP for guest to reach other end of GRE tun*/
sudo ifconfig tep0 192.168.200.20 netmask 255.255.255.0
/*create a GRE(Genric Encapsulation) tunnel interface */
sudo ovs-vsctl add-port br2 gre0 -- set interface gre0 type=gre options:remote_ip=<GRE tunnel endpoint on other hypervisor>
#sudo ovs-vsctl show
3fb59768-6943-496f-8963-2cd2e2935075
Bridge "br0"
Port "br0"
Interface "br0"
type: internal
Port "tep0"
Interface "tep0"
type: internal
ovs_version: "2.0.2"
No comments:
Post a Comment