bgp-control inbound traffic(第1部分)

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

内容摘要:bgp-control inbound traffic

  bgp-control inbound traffic(第1部分)

  要求:对于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 1就是使用最长匹配的原则。r1往r3宣告一条关于1.1.0.0/24和1.1.1.0/24的汇总1.1.0.0/23,那么as 2内的用户去往1.1.0.0/24和1.1.1.0/24默认就会走r2了。

  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

  aggregate-address 1.1.0.0 255.255.254.0

  aggregate-address 1.1.2.0 255.255.254.0

  neighbor 192.168.12.2 remote-as 20

责编:豆豆技术应用

正在加载评论...