路由重分布

2021-08-15 14:20:47 字數 1360 閱讀 5710

1.配置好ip,fa0/1和fa0/2不用配

switch0:

!劃分vlan

conf t

vlan 2

exit

vlan 3

exit

int fa0/1

switchport access vlan 2

no shutdown

int fa0/2

switchport access vlan 3

no shutdown

!vlan分ip

int vlan 2

ip address 192.168.1.1 255.255.255.0

no shutdown

int vlan 3

ip address 192.168.2.1 255.255.255.0

no shutdown

exit

!宣布網路

router rip

network 192.168.1.0

network 192.168.2.0

version2

r1:

!不同協議宣布網路

conf t

router rip

version 2

network 192.168.2.0

exit

router ospf 1

network 192.168.3.0 0.0.0.255 area 0

!路由重分布,在最後配置

router rip

redistribution ospf 1(程序) metric 1

router ospf 1

redistribution rip subnets

r2:

conf t

router ospf 1

network 192.168.3.0 0.0.0.255 area 0

network 192.168.4.0 0.0.0.255 area 0

完整實驗:

不足之處還請指教

思科路由重分布

邊界路由器的配置 router eigrp 1 只要其它路由協議往eigrp匯入都給五引數 redistribute rip metric 1000 0 100 100 100 redistribute ospf 1 metric 1000 100 100 100 1000 redistribute...

路由協議重分布

rip 1 把其他路由協議注入到rip需要手工改metirc值 redistributs ospf 100 metric 5 2 把靜態路由注入到rip不需要手工改metric redistribute static 3 把預設路由注入到rip redistribute static 4 把直連路由...

路由策略和路由重分布

session 1 路由策略 1 acl 訪問控制列表,針對於資料報,預設deny any 匹配odd奇數網路 172.16.1 3 5 7 9.172.16.1.0 0.0.254.0 反掩碼中1bit位代表隨意,0bit位代表完全匹配,正好與掩碼相反 匹配even偶數網路 172.16.0 2 ...