bgp-control inbound traffic(第3部分)

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

内容摘要:bgp-control inbound traffic

  neighbor 192.168.13.3 route-map r3 out

  no auto-summary

  !

  ip prefix-list detail1 seq 5 permit 1.1.0.0/24

  ip prefix-list detail1 seq 10 permit 1.1.1.0/24

  !

  ip prefix-list detail2 seq 5 permit 1.1.2.0/24

  ip prefix-list detail2 seq 10 permit 1.1.3.0/24

  !

  route-map r2 permit 10

  match ip address prefix-list detail1

  set metric 50

  !

  route-map r2 permit 20

  match ip address prefix-list detail2

  set metric 100

  !

  route-map r2 permit 30

  !

  route-map r3 permit 10

  match ip address prefix-list detail2

  set metric 50

  !

  route-map r3 permit 20

  match ip address prefix-list detail1

  set metric 100

  !

  route-map r3 permit 30

  !

  end

  R2

  hostname R2

  !

  interface Loopback0

  ip address 2.2.2.2 255.255.255.255

  !

  interface FastEthernet0/0

  ip address 192.168.12.2 255.255.255.0

  speed 100

  full-duplex

  !

  interface FastEthernet0/1

  ip address 192.168.23.2 255.255.255.0

  speed 100

  full-duplex

  !

  router bgp 20

  no synchronization

  bgp router-id 2.2.2.2

  bgp log-neighbor-changes

  network 192.168.23.0

  neighbor 192.168.12.1 remote-as 10

  neighbor 192.168.12.1 soft-reconfiguration inbound

  neighbor 192.168.23.3 remote-as 20

责编:豆豆技术应用

正在加载评论...