全球路由表应用举例

文章出处:Linux 宝库 作者:linux宝库 发布时间:2007-03-12

  
  
  CE 1
  version 12.2
  !
  hostname CE-1
  !
  ip subnet-zero
  !
  interface Loopback0
  ip address 10.1.1.1 255.255.255.255
  !
  interface Loopback2
  ip address 11.11.11.1 255.255.255.0
  !
  interface Serial8/0
  ip address 192.168.10.1 255.255.255.252
  
  !--- The interface is connected to PE 1.
  
  !
  ip classless
  ip route 0.0.0.0 0.0.0.0 192.168.10.2
  
  !--- This is the default route to route all packets to PE 1.
  
  !
  
  PE 1
  version 12.2
  !
  hostname PE-1
  !
  ip subnet-zero
  !
  ip vrf customer1
  
  !--- This configured VRF customer1.
  
  rd 100:1
  
  !--- This config