bgp-control inbound traffic(第3部分)

豆豆网   技术应用频道   2007年09月12日  【字号: 收藏本文

内容摘要:bgp-control inbound traffic

  bgp-control inbound traffic(第3部分)

  要求:对于as2内部的用户,去往1.1.0.0/24和1.1.2.0/24默认从r2走,去往1.1.2.0/24和1.1.3.0/24默认从r3走,并且保证r2或r3任意一台down掉,网络仍然那保持连通性。

  option 3就是使用MED,和ospf的cost没什么区别,只是叫法不同。

  R1

  hostname R1

  !

  interface Loopback0

  ip address 1.1.0.1 255.255.255.0

  !

  interface Loopback1

  ip address 1.1.1.1 255.255.255.0

  !

  interface Loopback2

  ip address 1.1.2.1 255.255.255.0

  !

  interface Loopback3

  ip address 1.1.3.1 255.255.255.0

  !

  interface FastEthernet0/0

  ip address 192.168.12.1 255.255.255.0

  speed 100

  full-duplex

  !

  interface FastEthernet0/1

  ip address 192.168.13.1 255.255.255.0

  speed 100

  full-duplex

  !

  router bgp 10

  no synchronization

  bgp router-id 1.1.1.1

  bgp log-neighbor-changes

  network 1.1.0.0 mask 255.255.255.0

  network 1.1.1.0 mask 255.255.255.0

  network 1.1.2.0 mask 255.255.255.0

  network 1.1.3.0 mask 255.255.255.0

  neighbor 192.168.12.2 remote-as 20

  neighbor 192.168.12.2 soft-reconfiguration inbound

  neighbor 192.168.12.2 route-map r2 out

  neighbor 192.168.13.3 remote-as 20

  neighbor 192.168.13.3 soft-reconfiguration inbound

责编:豆豆技术应用

正在加载评论...