MPLSVPN 命令集

时间:2023-03-09 16:19:18
MPLSVPN 命令集

 

载请标明出处:http://blog.****.net/sk719887916,作者:skay

读懂下面配置命令需要有一定的TCP/IP,路由协议基础,现在直接上关键VPN命令。

router bgp 65000

 nosynchronization

 bgplog-neighbor-changes

 neighbor4.4.4.4 remote-as 65000

 neighbor4.4.4.4 update-source Loopback0

 neighbor4.4.4.4 next-hop-self

 no auto-summary

 !

 address-familyvpnv4

 neighbor4.4.4.4 activate

 neighbor4.4.4.4 send-community extended

 exit-address-family 
          //MP-BGP

 !

 address-family ipv4 vrf vpn17

 no auto-summary

 no synchronization

 exit-address-family

 !

 address-family ipv4 vrf vpn16

 no auto-summary

 no synchronization

 exit-address-family

router rip

 version 2

 timers basic 1030 30 40

 no auto-summary

 address-family ipv4 vrf vpn16

 network172.16.0.0

 no auto-summary

 exit-address-family      // RIP在VRF中的配置

 

 

 

ip route vrf vpn177.7.7.7 255.255.255.255 s0/2

ip route vrf vpn17
172.17.7.0255.255.255.0 s0/2

//静态路由在VRF中的配置

 

 

 //  OSPF 在VRF中的配置

router ospf 100 vrf vpn16 

 router-id172.16.5.1

 log-adjacency-changes

 network172.16.5.0 0.0.0.255 area 0

 network172.16.58.0 0.0.0.3 area 0





 // BGP在VRF中的配置

address-family ipv4 vrf vpn17     

 neighbor172.17.59.2 remote-as 65001

 neighbor172.17.59.2 activate

 no auto-summary

 nosynchronization

 exit-address-family

 

 //  查看私网标签库

sh ip bgp vpnv4 all labels