天下网吧 >> 网吧方案 >> 网络方案 >> 正文

全局路由表应用

  !--- This is the address-family VPNV4 configuration mode for
  !--- configuring BGP sessions.
  
  neighbor 10.1.1.4 activate
  neighbor 10.1.1.4 send-community extended
  no auto-summary
  exit-address-family
  !
  ip classless
  ip route 11.11.11.0 255.255.255.0 Serial8/0 192.168.10.1
  
  !--- The static route in the global routing table is pointing to
  !--- the interface connected to CE 1.
  
  ip route vrf customer1 0.0.0.0 0.0.0.0 192.168.67.1 global
  
  !--- The static default route under customer1 VRF, routing packets
  !--- outside of VPN to the Internet gateway.
  
  ! routes
  ip route vrf customer1 11.11.11.0 255.255.255.0 192.168.10.1
  
  !--- The static route for network 11.11.11.0/24 (CE-1 Network) under
  !---customer1 VRF ensures the reachability of CE 1 network from the
  !--- other VPN sites
  
  P
  version 12.2
  !
  hostname P
  !
  ip subnet-zero
  !
  ip cef
  
  !--- CEF switching is enabled.
  
  !
  interface Loopback0
  ip address 10.1.1.3 255.255.255.255
  !
  interface Ethernet0/0
  
  !--- This is connected to PE 1.
  
  ip address 10.10.23.3 255.255.255.0
  tag-switching ip
  
  !--- MPLS switching is enabled.
  
  !
  interface Ethernet1/0
  
  !--- This is connected to PE 2.
  
  ip address 10.10.34.3 255.255.255.0
  tag-switching ip
  !
  interface Ethernet2/0
  
  !--- This is connected to the Internet gateway.
  
  ip address 10.10.36.3 255.255.255.0
  tag-switching ip
  !
  router ospf 1
  log-adjacency-changes
  network 0.0.0.0 255.255.255.255 area 0
  IGW
  version 12.2
  !
  hostname IGW
  !
  ip subnet-zero
  !
  ip cef
  
  !--- This enabled CEF switching.
  
  !
  interface Loopback0
  ip address 10.1.1.6 255.255.255.255
  !
  interface Ethernet2/0
  
  !--- This is connected to P router.
  
  ip address 10.10.36.6 255.255.255.0
  tag-switching ip
  !
  interface Serial8/0
  
  !--- This is connected to Internet R7.
  
  ip address 192.168.67.1 255.255.255.252
  !
  router ospf 1
  log-adjacency-changes
  network 0.0.0.0 255.255.255.255 area 0
  !
  router bgp 100
  no synchronization
  bgp log-neighbor-changes
  network 11

本文来源:天下网吧 作者:网吧方案

相关文章
声明
声明:本站所发表的文章、评论及图片仅代表作者本人观点,与本站立场无关。若文章侵犯了您的相关权益,请及时与我们联系,我们会及时处理,感谢您对本站的支持!联系Email:support@txwb.com,系统开号,技术支持,服务联系QQ:1175525021本站所有有注明来源为天下网吧或天下网吧论坛的原创作品,各位转载时请注明来源链接!
天下网吧·网吧天下