欢迎来到天天文库
浏览记录
ID:38173474
大小:110.42 KB
页数:7页
时间:2019-06-06
《BGP+VPN静态路由》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、一、拓扑:二.配置:AR1:ipvpn-instancechenipv4-familyroute-distinguisher100:200vpn-target200:100100:200export-extcommunityvpn-target200:100100:200import-extcommunity#mplslsr-id1.1.1.1mplslsp-triggerall#mplsldp#interfaceGigabitEthernet0/0/0ipaddress192.168.1.1255.255.255.0mplsmplsldp##interfaceG
2、igabitEthernet0/0/1.1974dot1qterminationvid1974ipbindingvpn-instancechenipaddress172.168.1.1255.255.255.0arpbroadcastenable#interfaceNULL0#interfaceLoopBack0ipaddress1.1.1.1255.255.255.0#bgp1peer3.3.3.3as-number1peer3.3.3.3connect-interfaceLoopBack0#ipv4-familyunicastundosynchronizati
3、onnetwork1.1.1.0255.255.255.0peer3.3.3.3enable#ipv4-familyvpnv4policyvpn-targetpeer3.3.3.3enable#ipv4-familyvpn-instancechenimport-routedirect#ospf1area0.0.0.0network0.0.0.0255.255.255.255AR2:mplslsr-id2.2.2.2mplslsp-triggerall#mplsldp#interfaceGigabitEthernet0/0/0ipaddress192.168.1.2
4、255.255.255.0mplsmplsldp#interfaceGigabitEthernet0/0/1ipaddress192.168.2.1255.255.255.0mplsmplsldp#interfaceLoopBack0ipaddress2.2.2.2255.255.255.0#ospf1area0.0.0.0network0.0.0.0255.255.255.255AR3:#ipvpn-instancechenipv4-familyroute-distinguisher100:200vpn-target100:200export-extcommun
5、ityvpn-target100:200import-extcommunity#mplslsr-id3.3.3.3mplslsp-triggerall#mplsldp#interfaceGigabitEthernet0/0/0ipaddress192.168.2.2255.255.255.0mplsmplsldp#interfaceGigabitEthernet0/0/1#interfaceGigabitEthernet0/0/1.100dot1qterminationvid100ipbindingvpn-instancechenipaddress172.168.
6、2.1255.255.255.0arpbroadcastenable#interfaceNULL0#interfaceLoopBack0ipaddress3.3.3.3255.255.255.0#bgp1peer1.1.1.1as-number1peer1.1.1.1connect-interfaceLoopBack0#ipv4-familyunicastundosynchronizationpeer1.1.1.1enable#ipv4-familyvpnv4policyvpn-targetpeer1.1.1.1enable#ipv4-familyvpn-inst
7、ancechenimport-routedirectimport-routestatic#ospf1area0.0.0.0network0.0.0.0255.255.255.255#iproute-staticvpn-instancechen192.168.20.0255.255.255.0172.168.2.2SW1:VLAN1974interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan2to4094#interfaceGigabitEthernet0/0/2portlink-
8、typea
此文档下载收益归作者所有