2084-S6800—----(ospf4)S12500X-AF(ospf3)-------2064-S6800
测试设备版本:S12504X-AF-2713 HB板卡
S12500X-AF设备上有两个vpn实例,通过ospf 4 vpn-instance 4和“2084-S6800”建立ospf邻居,通过ospf 3 vpn-instance 3和“2064-S6800”建立ospf邻居,当前客户有个新需求,希望将这两个ospf vpn-instance路由打通。
举例:2084-S6800有个loopback接口地址为4.4.4.4/32,2064-S6800有个loopback接口地址为3.3.3.3/32。
1、S12500X-AF关键配置如下,2084-S6800和2064-S6800上为基础OSPF配置,此处不举例:
#
ip vpn-instance 3
route-distinguisher 3:3
#
address-family ipv4
route-replicate from vpn-instance 4 protocol ospf 4 advertise //复制其他vpn的ospf路由,advertise代表可以发布出去;
#
ip vpn-instance 4
route-distinguisher 4:4
#
address-family ipv4
route-replicate from vpn-instance 3 protocol ospf 3 advertise
#
ospf 3 vpn-instance 3
import-route ospf 4
area 0.0.0.0
network 33.1.1.0 0.0.0.255
#
ospf 4 vpn-instance 4
import-route ospf 3
area 0.0.0.0
network 44.1.1.0 0.0.0.255
#
1、S12500X-AF上查看结果:
[2015-S125X-AF]display ospf peer
OSPF Process 3 with Router ID 30.1.1.15
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
111.111.111.64 33.1.1.1 1 39 Full/DR Vlan33
OSPF Process 4 with Router ID 40.1.1.12
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
192.168.89.84 44.1.1.1 1 33 Full/BDR Vlan44
[2015-S125X-AF]display ospf lsdb
OSPF Process 3 with Router ID 30.1.1.15
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 111.111.111.64 111.111.111.64 952 60 800000BA 0
Router 30.1.1.15 30.1.1.15 25 36 80000015 0
Network 33.1.1.1 111.111.111.64 948 32 8000000E 0
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 4.4.4.4 30.1.1.15 76 36 80000001 1
OSPF Process 4 with Router ID 40.1.1.12
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 40.1.1.12 40.1.1.12 253 36 80000019 0
Router 192.168.89.84 192.168.89.84 829 48 800001BA 0
Network 44.1.1.100 40.1.1.12 820 32 80000002 0
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 3.3.3.3 40.1.1.12 92 36 80000001 1
External 111.111.111.64 40.1.1.12 92 36 80000001 1
[2015-S125X-AF]display ospf lsdb ase 4.4.4.4
OSPF Process 3 with Router ID 30.1.1.15
Link State Database
Type : External
LS ID : 4.4.4.4
Adv Rtr : 30.1.1.15
LS age : 86
Len : 36
Options : O E
Seq# : 80000001
Checksum : 0x5266
Net mask : 255.255.255.255
MTID 0 Metric : 1
E Type : 2
Forwarding Address: 0.0.0.0
Tag : 3489661128
OSPF Process 4 with Router ID 40.1.1.12
Link State Database
[2015-S125X-AF]display ospf lsdb ase 3.3.3.3
OSPF Process 3 with Router ID 30.1.1.15
Link State Database
OSPF Process 4 with Router ID 40.1.1.12
Link State Database
Type : External
LS ID : 3.3.3.3
Adv Rtr : 40.1.1.12
LS age : 110
Len : 36
Options : O E
Seq# : 80000001
Checksum : 0x387d
Net mask : 255.255.255.255
MTID 0 Metric : 1
E Type : 2
Forwarding Address: 0.0.0.0
Tag : 3489661128
2、2084-S6800上查看结果:
[2084-S6800]display ip routing-table
Destinations : 33 Routes : 33
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
3.3.3.3/32 O_ASE2 150 1 44.1.1.100 Vlan44
4.4.4.4/32 Direct 0 0 127.0.0.1 InLoop0
10.0.0.0/8 Static 60 0 0.0.0.0 NULL0
10.46.0.0/16 Static 60 0 0.0.0.0 NULL0
10.202.91.0/24 Direct 0 0 10.202.91.4 Vlan800
10.202.91.0/28 Static 60 0 10.202.91.14 Vlan800
10.202.91.0/32 Direct 0 0 10.202.91.4 Vlan800
10.202.91.4/32 Direct 0 0 127.0.0.1 InLoop0
10.202.91.255/32 Direct 0 0 10.202.91.4 Vlan800
40.1.1.0/24 Direct 0 0 40.1.1.84 Vlan40
40.1.1.0/32 Direct 0 0 40.1.1.84 Vlan40
40.1.1.84/32 Direct 0 0 127.0.0.1 InLoop0
40.1.1.255/32 Direct 0 0 40.1.1.84 Vlan40
44.1.1.0/24 Direct 0 0 44.1.1.1 Vlan44
44.1.1.0/32 Direct 0 0 44.1.1.1 Vlan44
44.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
44.1.1.255/32 Direct 0 0 44.1.1.1 Vlan44
101.1.1.0/24 Static 60 0 10.1.1.2 NULL0
111.111.111.64/32 O_ASE2 150 1 44.1.1.100 Vlan44
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
172.16.0.0/12 Static 60 0 0.0.0.0 NULL0
192.168.0.0/16 Static 60 0 0.0.0.0 NULL0
192.168.89.0/24 Direct 0 0 192.168.89.84 MGE0/0/0
192.168.89.0/32 Direct 0 0 192.168.89.84 MGE0/0/0
192.168.89.84/32 Direct 0 0 127.0.0.1 InLoop0
192.168.89.255/32 Direct 0 0 192.168.89.84 MGE0/0/0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
[2084-S6800]
3、2064-S6800上查看结果:
[2064-S6800]display ip routing-table
Destinations : 30 Routes : 30
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
3.3.3.3/32 Direct 0 0 127.0.0.1 InLoop0
4.4.4.4/32 O_ASE2 150 1 33.1.1.100 Vlan33
10.1.1.0/24 Direct 0 0 10.1.1.64 Vlan10
10.1.1.0/32 Direct 0 0 10.1.1.64 Vlan10
10.1.1.64/32 Direct 0 0 127.0.0.1 InLoop0
10.1.1.255/32 Direct 0 0 10.1.1.64 Vlan10
33.1.1.0/24 Direct 0 0 33.1.1.1 Vlan33
33.1.1.0/32 Direct 0 0 33.1.1.1 Vlan33
33.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
33.1.1.255/32 Direct 0 0 33.1.1.1 Vlan33
66.1.1.0/24 Direct 0 0 66.1.1.254 Vlan1
66.1.1.0/32 Direct 0 0 66.1.1.254 Vlan1
66.1.1.254/32 Direct 0 0 127.0.0.1 InLoop0
66.1.1.255/32 Direct 0 0 66.1.1.254 Vlan1
111.111.111.0/24 Direct 0 0 111.111.111.64 Loop0
111.111.111.0/32 Direct 0 0 111.111.111.64 Loop0
111.111.111.64/32 Direct 0 0 127.0.0.1 InLoop0
111.111.111.255/32 Direct 0 0 111.111.111.64 Loop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.89.0/24 Direct 0 0 192.168.89.64 MGE0/0/0
192.168.89.0/32 Direct 0 0 192.168.89.64 MGE0/0/0
192.168.89.64/32 Direct 0 0 127.0.0.1 InLoop0
192.168.89.255/32 Direct 0 0 192.168.89.64 MGE0/0/0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
[2064-S6800]
正常情况,ospf vpn-instance只能引入当前vpn-instance中ip路由表active的路由;
可以通过在vpn实例下先复制其他vpn的路由,之后在ospf进程下进行引入对应的ospf进程来实现不同vpn-instance的ospf路由互通。该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作