路由策略

######################
passive-interface   ##
只接收不发送路由更新##
######################

passive-interface default
no passive-interface int-type int-mun

#############
配置RIP单播##
#############

router rip
passive-interface int-type int-num
neighbor 192.168.123.3

################
管理距离AD配置##
################

protocol               |   AD
———————————————————————|——————————
直连接口               |    0
关联出接口的静态路由   |    1
关联下一跳的静态路由   |    1
eigrp汇总路由          |    5
外部bgp                |    20
内部bgp                |    90
igrp                   |    100
ospf                   |    110
RIPv1/RIPv2            |    120
外部eigrp              |    170
内部bgp                |    200
————————————————————————————————————
ospf

router ospf 1
distance AD ip-src wildmask acls
distance ospf external ad1 inter-area ad2 intra-area ad3

########################################
eigrp

router eigrp 100
distance AD ip-src wildmask acls
distance eigrp internal-distance external-distance

######################################## 
实现分流

access-list 11 per 11.11.11.0

router eigrp 100
distance 130 10.1.12.1 0.0.0.0 11

#################################
解决双点双向重发布的一下问题   ##
次优路径和路由重发布失败问题   ##
RIP和ospf                      ##
达到可控和负载均衡             ##
#################################
R3

access-list 1 per 4.4.4.0

router rip
distance 100 10.1.34.4 0.0.0.0 1

router ospf 1
redistribute rip subnets
#####################################
R2

ccess-list 1 per 4.4.4.0

router rip
distance 100 10.1.24.4 0.0.0.0 1

router ospf 1
redistribute rip subnets


###########################
route map热备负载均衡分流##
从发布时                 ##:
指定注入的metic值不同    ##
###########################
格式

route-map test permit/deny 10
match X1
match X2 X3
set Y

route-map test permit/deny 20
match X4
match X5 X6
set Y
#####################################
引入时分别设置metic值

access-list 1 permit 192.168.1.0
access-list 1 permit 192.168.2.0
access-list 2 permit 192.168.3.0
route-map test permit/deny 10
match ip address 1
set metric 2
route-map test permit/deny 20
match ip address 2
set metric 3
router rip
redistribute ospf 1 route-map test
###################################
只引入一个

access-list 1 permit 1.1.1.0
route-map test permit/deny 10
match ip address 1
set metric 3
router rip
redistribute connected route-map test
###################################
只隔离一个

access-list 1 permit 111.111.111.0
route-map test deny 10
match ip address 1
route-map test permit 20

router rip
redistribute connected route-map test
#######################################
避免反馈路由

access-list 1 permit 192.168.1.1 0.0.0.255

route-map OSPF_into_RIP deny 10
match ip address 1
route-map OSPF_into_RIP permit 20

router rip
redistribute ospf route-map OSPF_into_RIP

router ospf 10
redistribute rip subnet

#########################
distribute-list奋发列表##
#########################

你可能感兴趣的:(路由策略)