bgp-control inbound traffic(第2部分)

http://tech.ddvip.com   2007年09月12日    社区交流 收藏本文

内容摘要:bgp-control inbound traffic

  bgp-control inbound traffic(第2部分)

  要求:对于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 2就是使用as-path prepend,对r2来说,如果他想从r3去1.1.2.0/24和1.1.3.0/24,那只要把这2条路由的as-path加长就可以了

  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

责编:豆豆技术应用

正在加载评论...