首页 理论教育路由重分布配置实现技巧

路由重分布配置实现技巧

【摘要】:重分布的命令格式如下:Router# redistribute protocol [protocol-id] { level-1 |level-2 | level-1-2 } {metric metric-value} {metric-type type-value} {match } {tag Tag-value} {route-map map-tag} {weight weight } {subnets}使用distance命令改变可信路由 :distance weight [address mask [access-list-number | name] ] [ip]使用default-metric命令修改缺省度量值 :default-metric number使用distribute-list命令过滤被重分布的路由 :格式1:distribute-list {access-list-number | name} in [type number]格式2:distribute-list {access-list-number | name} out [interface-name |routing - process | autonomous-system-number]

重分布的命令格式如下:

Router(config-router)# redistribute protocol [protocol-id] { level-1 |level-2 | level-1-2 } {metric metric-value} {metric-type type-value} {match( internal | external 1 | external 2 ) } {tag Tag-value} {route-map map-tag} {weight weight } {subnets}

使用distance命令改变可信路由

distance weight [address mask [access-list-number | name] ] [ip]

使用default-metric命令修改缺省度量值 :(www.chuimin.cn)

default-metric number

使用distribute-list命令过滤被重分布的路由 :

格式1:distribute-list {access-list-number | name} in [type number]

格式2:distribute-list {access-list-number | name} out [interface-name |routing - process | autonomous-system-number]