MPLS VPN 的基本配置(三)
配置
本例中的5 台路由器配置如下: Pescara
Current configuration: 本文出自 51CTO.COM技术博客! version 12.2 ! hostname Pescara ! ip cef ! !--- Customer_A 的配置. ip vrf Customer_A !---启用Customer_A 的VPN 路由和转发表 (VRF). rd 100:110 !--- Route distinguisher creates routing and forwarding
!--- tables for a VRF. route-target export 100:1000 !--- Creates lists of import and export route-target extended !--- communities for the specified VRF. route-target import 100:1000 ! !--- Customer_B 配置. ip vrf Customer_B rd 100:120 route-target export 100:2000 route-target import 100:2000 ! interface Loopback0 ip address 10.10.10.4 255.255.255.255 ip router isis !--- Customer_A 的配置. interface Loopback101 ip vrf forwarding Customer_A !---将一个接口或者自接口和一个VRF 实例关联起来. ip address 200.0.4.1 255.255.255.0 !--- Loopback101 和 102 使用相同的IP 地址 200.0.4.1.这是准许的,因为它们属于2 个不用 客户的VRF no ip directed-broadcast ! !--- Customer_B 的配置. interface Loopback102 ip vrf forwarding Customer_B ip address 200.0.4.1 255.255.255.0 !--- Loopback101 和 102 使用相同的IP 地址 200.0.4.1.这是准许的,因为它们属于2 个不用 客户的VRF no ip directed-broadcast ! interface Serial2/0 no ip address no ip directed-broadcast encapsulation frame-relay
no fair-queue ! interface Serial2/0.1 point-to-point description link to Pauillac bandwidth 512 ip address 10.1.1.14 255.255.255.252 no ip directed-broadcast ip router isis tag-switching ip frame-relay interface-dlci 401 ! router isis net 49.0001.0000.0000.0004.00 is-type level-1 ! router bgp 100 bgp log-neighbor-changes !--- 启用BGP 邻居关系中断的记录. neighbor 10.10.10.6 remote-as 100 neighbor 10.10.10.6 update-source Loopback0 !--- 配置BGP 邻居. ! !--- Customer A and B commands. address-family vpnv4 !--- 进入address-family vpnv4 配置模式,配置和PE/P 路由器间的MP-BGP 路由会话。 neighbor 10.10.10.6 activate neighbor 10.10.10.6 send-community both !--- Sends the community attribute to a BGP neighbor. exit-address-family ! !--- Customer B commands. address-family ipv4 vrf Customer_B !--- 进入address-family ipv4 的配置模式下,配置和CE 间的路由会话, redistribute connected no auto-summary no synchronization exit-address-family ! !--- Customer A commands. address-family ipv4 vrf Customer_A redistribute connected no auto-summary no synchronization exit-address-family ! ip classless ! end |


aristotle
博客统计信息
热门文章
最新评论
友情链接