首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 互联网 >

路由重公布

2013-08-27 
路由重发布###########################单点单项、单点多项重发布 #############################?########

路由重发布

###########################
单点单项、单点多项重发布 ##
###########################

?

#####################
R1与R2之间运行RIPv2##
R2与R3之间运行ospf ##
重发布使其互通???? ##
#####################
R1

int s 0/0
address 192.168.12.1 255.255.255.0
no shutdown
int lo0
ip address 1.1.1.1 255.255.255.0
no shutdown
exit
router rip
version 2
network 192.168.12.1
network 1.1.1.1

###################################################
R2

int s 0/0
ip address 192.168.12.2 255.255.255.0
no shutdown
int lo0
ip address 2.2.2.2 255.255.255.0
no shutdown
exit
router rip
version 2
network 192.168.12.2

int s0/1
ip address 192.168.23.1 255.255.255.0
no shutdown
exit
router ospf 1
network 192.168.23.1 0.0.0.0 a 0
exit

####################################################
R3

conf ter
int s 0/0
ip address 192.168.23.3 255.255.255.0
no shutdown
int lo0
ip address 3.3.3.3 255.255.255.0
no shutdown
exit

router ospf 1
network 192.168.23.3 0.0.0.0 a 0
network 3.3.3.3 0.0.0.0 a 0
exit

int lo0
ip ospf network point-to-point
exit
?
#######################
注入路由从RIPv2到osfp##
注入路由从osfp到RIPv2##
#######################
R2

conf ter
router ospf 1
redistribute rip subnets

conf ter
router rip
version 2
redistribute ospf 1 metric 2

注意:如果R2上有静态路由会抢占rip路由
ip router 1.0.0.0 255.0.0.0 null 0

####################
重发布多个直连接口##
物理上是up??????? ##
协议上是up??????? ##
####################
R3

config ter
router ospf 1
no network 3.3.3.3 0.0.0.0 a 0
exit

router ospf 1
redistribute connected? subnets? metric 10? metric-type 1

#######################
静态路由???????????? ##
R1、R2的RIPv2协议干掉##
#######################
R1

conf ter
no router rip

?

##############################################################
R2

conf ter
no router rip

ip route 1.1.1.0 255.255.255.0 192.168.12.1
exit
router ospf 1
edistribute static subnets

?

###################
多点多项重发布?? ##
###################

?


?

热点排行