ODL创建vxlan后,bridge无法互通?


mininetA ip:10.90.144.172
通过mininet命令和ODL北向接口创建拓扑:h1-s1-s3
s3建立vtep
Bridge "s3"
Controller "tcp:10.74.166.94:6653"
is_connected: true
Port "vxlanport03"
Interface "vxlanport03"
type: vxlan
options: {key="100", remote_ip="10.90.144.173"}

mininetB ip:10.90.144.173
通过mininet命令和ODL北向接口创建拓扑:h2-s2-s4
s4建立vtep
Bridge "s4"
Port "vxlanport04"
Interface "vxlanport04"
type: vxlan
options: {key="100", remote_ip="10.90.144.172"}
Port "s4"

mininetA上的ip地址信息: h1:10.0.0.1
eth0 Link encap:Ethernet HWaddr 00:50:56:a1:8c:cb

inet addr:10.90.144.172 Bcast:10.90.144.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1

s1 Link encap:Ethernet HWaddr fa:84:b6:15:62:4e

inet addr:10.90.144.172 Bcast:10.90.144.255 Mask:255.255.255.0

s3 Link encap:Ethernet HWaddr be:a9:9c:03:70:43

UP BROADCAST RUNNING MTU:1500 Metric:1

s1-eth1 Link encap:Ethernet HWaddr 2a:43:d2:3d:97:17

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

路由信息:
mininet> sh route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.90.144.1 255.255.255.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 s1
10.0.0.0 10.90.144.1 255.0.0.0 UG 0 0 0 eth0
10.90.144.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.90.144.0 0.0.0.0 255.255.255.0 U 0 0 0 s3
10.90.145.0 10.90.144.1 255.255.255.0 UG 0 0 0 eth0

mininetB上的ip地址信息: h2:10.0.0.2
mininet> s2 ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:79:f6:54

inet addr:10.90.144.173 Bcast:10.90.144.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1

s2 Link encap:Ethernet HWaddr 8a:31:42:5d:40:49

UP BROADCAST RUNNING MTU:1500 Metric:1

s4 Link encap:Ethernet HWaddr 42:4c:96:ed:9d:48

UP BROADCAST RUNNING MTU:1500 Metric:1

s2-eth1 Link encap:Ethernet HWaddr f2:74:f9:0a:a8:ca

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

路由信息:
mininet> sh route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.90.144.1 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 10.90.144.1 255.0.0.0 UG 0 0 0 eth0
10.90.144.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.90.144.0 0.0.0.0 255.255.255.0 U 0 0 0 s4

分别在s3和s4建立vtep后,vxlan无法互通。现在应该如何配置s3和s4,使得vxlan能够互通呢?
参考http://blog.csdn.net/songqiu65 ... 95188,随便给s3和啥配置ip地址,也无法互通。
已邀请:

柿子 - Zebra Decoder 姿势社区欢乐多

赞同来自:


问题在于, 两个ovs实际没法互通, 10.90.144.172和173是两个ovs的宿主机的IP, 并不是ovs-port的IP地址,所以他们vxlan隧道没有建立.
可以参考http://www.sdnlab.com/5365.html

ovs-vsctl add-br br0

ovs-vsctl add-br br1

ovs-vsctl add-port br0 eth0

ifconfig eth0 0 up && ifconfig br0 192.168.146.136/24 up

route add default gw 192.168.146.2 br0

这部分配置

要回复问题请先登录注册