Here are trial and error logs when installing openvswitch.
During the following operation, you will lose internet connectivity.
# tail -1 /etc/lsb-release ;uname -ri
DISTRIB_DESCRIPTION="Ubuntu 13.10"
3.11.0-15-generic x86_64
|
install openvswitch via apt-get
# apt-get install openvswitch-switch
|
/etc/network/interfaces
:# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet manual
iface eth0 inet dhcp
|
reboot the OS.
after booting the OS, you can not access to the internet.
type the following command.
2001 ovs-vsctl add-br br0
2003 ovs-vsctl add-port br0 eth0
2004 ifconfig eth0 0.0.0.0
2006 ifconfig br0 192.168.11.100
2010 route add default gw 192.168.11.1
|
I can not figure out how to write the last three commands(ifconfig eth0, ifconfig br0, route add..) in /etc/network/interfaces files correctly..
So I type “ifconfig eth0, ifconfig br0, route add ..” commands every time when booting the OS…
In my environments, when booting the OS, eth0 gets an IP from DHCP, and then I login to the OS and type “ifconfig eth0 0.0.0.0, ifconfig br0 …, route add..“ via shell prompt.
[ use KVM with openvswith ]
edit VM config
virsh edit <vm name>
<interface type='bridge'>
<mac address='mac address'/>
<source bridge='br0'/>
<virtualport type='openvswitch'>
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.