科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网网络频道Two PE-Three CE Configuration BGP-connected CE

Two PE-Three CE Configuration BGP-connected CE

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

作者:中国IT实验室 2007年9月17日

关键字: 路由协议 EIGRP igrp SNMP CISCO 网络协议

  • 评论
  • 分享微博
  • 分享邮件

  

  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

 

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章