[ovs-discuss] configure openvswitch in Amazon EC2
俊 赵
zhaojun12 at outlook.com
Tue Jul 7 13:04:01 UTC 2015
hi, all
i have installed openvswitch-2.3.2 in Amazon EC2, and want to use openvswitch to build a gre tunnel with other PC.
this is the ifconfig output
[root at ip-172-31-30-157 openvswitch]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9001
inet 172.31.30.157 netmask 255.255.240.0 broadcast 172.31.31.255
inet6 fe80::47b:d1ff:fe65:5a6d prefixlen 64 scopeid 0x20<link>
ether 06:7b:d1:65:5a:6d txqueuelen 1000 (Ethernet)
RX packets 573591 bytes 200865634 (191.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 496014 bytes 101375588 (96.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 3669 bytes 1032693 (1008.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3669 bytes 1032693 (1008.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
and route output
Kernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Ifacedefault ip-172-31-16-1. 0.0.0.0 UG 100 0 0 eth0172.31.16.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
172.31.16.0 0.0.0.0 255.255.240.0 U 100 0 0 eth0
and i use the following commands
ovs-vsctl add-br OVS-SWITCH && ovs-vsctl add-port OVS-SWITCH eth0 && ifconfig eth0 0 && ifconfig OVS-SWITCH 172.31.30.157 netmask 255.255.240.0 && route add default gw 172.31.16.1 dev OVS-SWITCH
but after i execute these commands, i lose the connection with my ec2.
does anyone have deployed openvswitch in amazon ec2, and could you please give me some suggestions.
Many thanks!
Zhao Jun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150707/9af4ab6a/attachment-0002.html>
More information about the discuss
mailing list