首页 > 学院 > 网络通信 > 正文

PE的OSPF设置

2019-11-04 11:14:15
字体:
来源:转载
供稿:网友

  Router1(config)# interface loopback 55
  
  Router1(config-if)# ip vrf forwarding v1
  
  Router1(config-if)# ip address 10.0.0.1 255.255.255.255
  
  !
  Router1(config)# router ospf 2 vrf v1
  
  Router1(config-if)# log-adjacency-changes
  
  Router1(config-if)# area 120 sham-link 10.0.0.1 10.44.0.1 cost 1
  
  Router1(config-if)# redistribute bgp 1 subnets
  
  Router1(config-if)# network 10.2.0.1 255.255.255.255 area 1
  
  Router1(config-if)# network 10.120.0.0 0.255.255.255 area 120
  
  Router1(config-if)# network 10.140.0.0 0.255.255.255 area 120
  
  !
  Router2(config)# interface loopback 44
  
  Router2(config-if)# ip vrf forwarding v1
  
  Router2(config-if)# ip address 44.0.0.1 255.255.255.255
  
  !
  Router2(config)# router ospf 2 vrf v1
  
  Router2(config-if)# log-adjacency-changes
  
  Router2(config-if)# area 120 sham-link 10.44.0.1 10.0.0.1 cost 1
  
  Router2(config-if)# redistribute bgp 1 subnets
  
  Router2(config-if)# network 10.2.0.1 255.255.255.255 area 1
  
  Router2(config-if)# network 10.120.0.0 0.255.255.255 area 120
  
  Router2(config-if)# network 10.140.0.0 0.255.255.255 area 120

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表