扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
CE1 Configuration
This is an example of the CE1 configuration.
hostname CE1
!
interface Ethernet0
ip address 172.16.1.1 255.255.255.0
no ip directed-broadcast
!
interface Serial0
no ip address
encapsulation frame-relay
service module t1 clock source line
!
interface Serial0.1 point-to-point
frame-relay interface-dlci 123
ip address 10.101.1.2 255.255.255.252
no ip directed-broadcast
!
router ospf 100
redistribute bgp 101
network 172.16.0.0 0.0.255.255 area 100
!
router bgp 101
redistribute ospf 100
no synchronization
network 172.16.0.0
neighbor 10.101.1.1 remote-as 100
!
CE2 Configuration
This is an example of the CE2 configuration.
hostname CE2
!
interface Ethernet0
ip address 172.16.1.2 255.255.255.0
no ip directed-broadcast
!
interface Serial0
no ip address
encapsulation frame-relay
service module t1 clock source line
!
interface Serial0.1 point-to-point
frame-relay interface-dlci 123
ip address 10.101.2.2 255.255.255.252
no ip directed-broadcast
!
router ospf 100
redistribute bgp 101
network 172.16.0.0 0.0.255.255 area 100
!
router bgp 101
redistribute ospf 100
no synchronization
network 172.16.0.0
neighbor 10.101.2.1 remote-as 100
!
CE3 Configuration
This is an example of the CE3 configuration.
hostname CE3
!
interface Ethernet0
ip address 172.16.3.1 255.255.255.0
no ip directed-broadcast
!
interface Serial0
no ip address
encapsulation frame-relay
service module t1 clock source line
!
interface Serial0.1 point-to-point
frame-relay interface-dlci 123
ip address 10.101.3.2 255.255.255.252
no ip directed-broadcast
!
router ospf 100
redistribute bgp 101
network 172.16.0.0 0.0.255.255 area 100
!
router bgp 101
no synchronization
redistribute ospf 100
network 172.16.0.0
neighbor 10.101.3.1 remote-as 100
!
PE1 Configuration
This is an example of the PE1 configuration.
hostname RPM1
!
ip vrf vpn1 ! Define a VRF for VPN 1
rd 100:1
route-target export 100:1
route-target import 100:1
!
ip cef
!
interface loopback0
ip address 10.1.1.1 255.255.255.255
!
interface Switch1
no ip address
!
interface Switch1.1 tag-switching
ip unnumbered Loopback0
atm pvc 50 50 0 aal5snap vbr-nrt 10000 10000 64000
tag-switching atm vp-tunnel 50
tag-switching ip
!
router ospf 1
network 10.1.0.0 0.0.255.255 area 0
interface Switch1.101
ip address 10.101.1.1 255.255.255.252
pvc 0/101
encap aal5snap
vbr-nrt 1500 1500 64000
ip vrf forwarding vpn1
!
interface Switch1.102
ip address 10.101.2.1 255.255.255.252
pvc 0/102
encap aal5snap
vbr-nrt 1500 1500 64000
ip vrf forwarding vpn1
!
router bgp 100
no synchronization
no bgp default ipv4-unicast
neighbor 212.212.212.2 remote-as 100 !define BGP connection to PE2 for IPv4
neighbor 212.212.212.2 update-source Loopback0
!
address-family vpnv4 !define BGP connection to PE2 for VPN routes
neighbor 212.212.212.2 activate
neighbor 212.212.212.2 send-community extended
exit-address-family
!
address-family ipv4 vrf vpn1 ! Define BGP PE-CE sessions for vpn1
neighbor 10.101.1.2 remote-as 101
neighbor 10.101.1.2 activate
neighbor 10.101.2.2 remote-as 101
neighbor 10.101.2.2 activate
no auto-summary
no synchronization
exit-address-family
!
rpmrscprtn par 100 100 1 100 10 4000 3800
addconn vpc switch 1/1.1 50 rslot 0 1 50 master local
addcon vcc Switch1.101 101 rslot 18 1 0 123 master local
addcon vcc Switch1.102 102 rslot 18 2 0 123 master local
!
PE2 Configuration
This is an example of the PE2 configuration.
hostname RPM1
!
ip vrf vpn1 ! Define a VRF for VPN 1
rd 100:1
route-target export 100:1
route-target import 100:1
!
ip cef
!
interface loopback0
ip address 10.1.1.1 255.255.255.255
!
interface Switch1
no ip address
!
interface Switch1.1 tag-switching
ip unnumbered Loopback0
atm pvc 50 50 0 aal5snap vbr-nrt 10000 10000 64000
tag-switching atm vp-tunnel 50
tag-switching ip
!
router ospf 1
network 10.1.0.0 0.0.255.255 area 0
interface Switch1.101
ip address 10.101.3.1 255.255.255.252
pvc 0/101
encap aal5snap
vbr-nrt 1500 1500 64000
ip vrf forwarding vpn1
!
router bgp 100
no synchronization
no bgp default ipv4-unicast
neighbor 212.212.212.1 remote-as 100 !define BGP connection to PE1 for IPv4
neighbor 212.212.212.1 update-source Loopback0
!
address-family vpnv4 !define BGP connection to PE1 for VPN routes
neighbor 212.212.212.1 activate
neighbor 212.212.212.1 send-community extended
exit-address-family
!
address-family ipv4 vrf vpn1 ! Define BGP PE-CE3 session for vpn1
neighbor 10.101.3.2 remote-as 101
neighbor 10.101.3.2 activate
no auto-summary
no synchronization
exit-address-family
!
rpmrscprtn par 100 100 1 100 10 4000 3800
addconn vpc switch 1/1.1 50 rslot 0 1 50 master local
addcon vcc Switch1.101 101 rslot 18 1 0 123 master local
!
Two PE-Three CE Configuration, RIP-connected CE Routers
This is similar to the previous examples except that RIP is used between CE and PE routers. The use of RIP is not recommended when there are "back-door" routes between customer sites, for example, links between CEs, except through the VPN network.
CE1 Configuration
This is an example of the CE1 configuration.
hostname CE1
!
interface Ethernet0
ip address 172.16.1.1 255.255.255.0
no ip directed-broadcast
!
interface Serial0
no ip address
encapsulation frame-relay
service module t1 clock source line
!
interface Serial0.1 point-to-point
frame-relay interface-dlci 123
ip address 10.101.1.2 255.255.255.252
no ip directed-broadcast
!
router rip
version 2
network 10.0.0.0
network 172.16.0.0
no auto-summary
!
CE2 Configuration
This is an example of the CE2 configuration.
hostname CE2
!
interface Ethernet0
ip address 172.16.2.1 255.255.255.0
no ip directed-broadcast
!
interface Serial0
no ip address
encapsulation frame-relay
service module t1 clock source line
!
interface Serial0.1 point-to-point
frame-relay interface-dlci 123
ip address 10.101.2.2 255.255.255.252
no ip directed-broadcast
!
router rip
version 2
濠电姷顣介埀顒€鍟块埀顒€缍婇幃妯诲緞閹邦剛鐣洪梺闈浥堥弲婊勬叏濠婂牊鍋ㄦい鏍ㄧ〒閹藉啴鏌熼悜鈺傛珚鐎规洘宀稿畷鍫曞煛閸屾粍娈搁梻浣筋嚃閸ㄤ即宕㈤弽顐ュС闁挎稑瀚崰鍡樸亜閵堝懎濮┑鈽嗗亝濠㈡ê螞濡ゅ懏鍋傛繛鍡樻尭鐎氬鏌嶈閸撶喎顕i渚婄矗濞撴埃鍋撻柣娑欐崌閺屾稑鈹戦崨顕呮▊缂備焦顨呴惌鍌炵嵁鎼淬劌鐒垫い鎺戝鐎氬銇勯弽銊ф噥缂佽妫濋弻鐔碱敇瑜嶉悘鑼磼鏉堛劎绠為柡灞芥喘閺佹劙宕熼鐘虫緰闂佽崵濮抽梽宥夊垂閽樺)锝夊礋椤栨稑娈滈梺纭呮硾椤洟鍩€椤掆偓閿曪妇妲愰弮鍫濈闁绘劕寮Δ鍛厸闁割偒鍋勯悘锕傛煕鐎n偆澧紒鍌涘笧閹瑰嫰鎼圭憴鍕靛晥闂備礁鎼€氱兘宕归柆宥呯;鐎广儱顦伴崕宥夋煕閺囥劌澧ù鐘趁湁闁挎繂妫楅埢鏇㈡煃瑜滈崜姘跺蓟閵娧勵偨闁绘劕顕埢鏇㈡倵閿濆倹娅囨い蹇涗憾閺屾洟宕遍鐔奉伓