路由器BGP协议配置命令

http://tech.ddvip.com   2006年04月02日    社区交流 收藏本文

本文详细介绍路由器BGP协议配置命令

  [ no ] match as-path list-number

  【参数说明】

  list-number 为AS正则表达式的序号

  【缺省情况】

  Routemap中缺省不匹配AS正则表达式。

  【命令模式】

  Routemap配置模式

  【举例】

  Quidway(config)#ip as-path access-list 2 permit 200,300

  Quidway(config)#route-map test permit 10

  Quidway(config-routemap)#match as-path 2

  4.10.7 match interface
指定Routemap中匹配的接口类型。

  [ no ] match interface [ interface-type interface-number ]

  【参数说明】

  interface-type 为接口类型

  interface-number 为接口编号

  【缺省情况】

  Routemap中缺省不匹配接口类型。

  【命令模式】

  Routemap配置模式

  【举例】

  Quidway(config)#route-map test permit 10

  Quidway(config-routemap)#match interface ethernet 0

  4.10.8 match ip address
指定Routemap中匹配的IP地址范围。

  [ no ] match ip address list-number

  【参数说明】

  list-number 为已配置的IP访问列表号。

  【缺省情况】

  Routemap中缺省不匹配IP地址范围。

  【命令模式】

  Routemap配置模式

  【举例】

  Quidway(config)#route-map test permit 10

  Quidway(config-routemap)#match ip address 3

  4.10.9 match metric
指定Routemap中匹配的metric。

  [ no ] match metric metric

  【参数说明】

  metric 的范围是1~4294967295。

  【缺省情况】

  Routemap中缺省不匹配metric。

  【命令模式】

  Routemap配置模式

  【举例】

  Quidway(config)#route-map test permit 10

  Quidway(config-rouemap)#match metric 5

  4.10.10 neighbor group-name advertisement-interval
配置同伴组的发送路由时间间隔。

  [ no ] neighbor group-name advertisement-interval seconds

  【参数说明】

  group-name 为已配置的同伴组名称。

  seconds 为发送UPDATE消息的最小时间间隔,范围为1~1000。

  【缺省情况】

  缺省的发送时间间隔为5秒。

  【命令模式】

  BGP协议配置模式

  【举例】

  Quidway(config-router-bgp)#neighbor test remote 100

  Quidway(config-router-bgp)#neighbor test advertisement-interval 10

  4.10.11 neighbor group-name default-originate
设置同伴组引入默认路由。

  [ no ] neighbor group-name default-originate [ route-map routemap-name ]

  【参数说明】

  group-name 为已配置的同伴组名称。

  routemap-name为可选参数,指定默认路由经过的Routemap。

  【缺省情况】

  同伴组缺省不引入默认路由。

  【命令模式】

  BGP协议配置模式

  【举例】

  Quidway(config-router-bgp)#neighbor test remote-as 100

  Quidway(config-router-bgp)#neighbor test default-originate

责编:豆豆技术应用

正在加载评论...