frame-reday

#####################
frame-reday底层配置##
R1为DR   主接口    ##
#####################

FRSWITCH

conf ter
fram sw
end

conf ter
interface Serial0/1
encapsulation frame-relay
frame-relay route 102 interface Serial0/2 201
frame-relay route 103 interface Serial0/3 301
frame-relay intf-type dce
clock rate 64000
no shut
end

conf ter
interface Serial0/2
encapsulation frame-relay
frame-relay route 201 interface Serial0/1 102
frame-relay intf-type dce
clock rate 64000
no shut
end

conf ter
interface Serial0/3
no ip address
encapsulation frame-relay
frame-relay route 301 interface Serial0/1 103
frame-relay intf-type dce
clock rate 64000
no shut
end

#############################################
R1

conf ter
interface Serial0/0
ip address 202.101.100.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 202.101.100.2 102
frame-relay map ip 202.101.100.3 103
no shut
end
#################
R2

conf ter
interface Serial0/0
ip address 202.101.100.2 255.255.255.0
encapsulation frame-relay
frame-relay map ip 202.101.100.1 201
no shut
end
#################
R3

conf ter
interface Serial0/0
ip address 202.101.100.3 255.255.255.0
encapsulation frame-relay
frame-relay map ip 202.101.100.1 301
no shut
end

 

#####################################
方法一:RIP                        ##
在R1 R2 R3配置loopback接口运行RIPv2##
#####################################
R1

conf ter
interface Loopback0
ip address 1.1.1.1 255.255.255.0
no shutdown
router rip
version 2
network 1.1.1.1
network 202.101.100.0
no auto-summary
###############
R2

conf ter
interface Loopback0
ip address 2.2.2.2 255.255.255.0
no shutdown
router rip
version 2
network 2.2.2.2
network 202.101.100.0
no auto-summary
##############
R3

conf ter
interface Loopback0
ip address 3.3.3.3 255.255.255.0
no shutdown
router rip
version 2
network 3.3.3.3
network 202.101.100.0
no auto-summary

############################################################################
没有理由表原因是frame-relay不支持广播的多路访问链路而RIPv2是基于组播的协议##
             修改frame-relay底层配置加broadcast使其支持广播               ##
              默认水平分割已关闭所以可以R2、R3可以互学路由                ##
############################################################################
R1

conf ter
interface Serial0/0
frame-relay map ip 202.101.100.2 102 broadcast
frame-relay map ip 202.101.100.3 103 broadcast
#################
R2

interface Serial0/0
frame-relay map ip 202.101.100.1 201 broadcast
#################
R3

interface Serial0/0
frame-relay map ip 202.101.100.1 301 broadcast

 

###############################################
方法二:ospf                                 ##
在R1 R2 R3配置loopback接口运行OSPF           ##
###############################################
R1

conf ter
interface Loopback0
ip address 1.1.1.1 255.255.255.0
no shutdown
router ospf 1
network 1.1.1.1 0.0.0.0 area 0
network 202.101.100.0 0.0.0.0 area 0

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

conf ter
interface Loopback0
ip address 2.2.2.2 255.255.255.0
no shutdown
router ospf 1
network 2.2.2.2 0.0.0.0 area 0
network 202.101.100.2 0.0.0.0 area 0

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

conf ter
interface Loopback0
ip address 3.3.3.3 255.255.255.0
no shutdown
router ospf 1
network 3.3.3.3 0.0.0.0 area 0
network 202.101.100.3 0.0.0.0 area 0

###############################################################################################################
没有收到邻居的hello包,ospf邻居关系没有建立,1.由于frame-relay不支持广播的多路访问链路 2.由于ospf基于网络类型##
###############################################################################################################
情况1.frame-relay主接口上 默认ospf为非广播
采用单播指定邻居及优先级(DR BDR BDRother) 可单向指定也可双向
R1

conf ter
int s 0/0
ip ospf priority 10
router ospf 1
neighbor 202.101.100.2 priority 1
neighbor 202.101.100.3 priority

情况2.frame-relay子接口上 子接口为点到点的 ospf是点到点的类型
修改frame-relay底层配置加broadcast使其支持广播
ospf默认是non-broadcast手动修改ospf的网络类型为broadcast
R1

conf ter
interface Serial0/0
ip ospf network broadcast
ip ospf priority 100
frame-relay map ip 202.101.100.2 102 broadcast
frame-relay map ip 202.101.100.3 103 broadcast

#################
R2
conf ter
interface Serial0/0
ip ospf network broadcast
frame-relay map ip 202.101.100.1 201 broadcast
#################
R3

conf ter
interface Serial0/0
ip ospf network broadcast
frame-relay map ip 202.101.100.1 301 broadcast

情况3.frame-relay子接口上 子接口为点到多点的 ospf是非广播
在情况二的基础上可以把网络类型broadcast修改为Point-to-multipoint这样就无需选举DR BDR BDRORTHER

 

 

 

#####################
frame-reday底层配置##
R1为DR   子接口    ##
#####################
FRSWITCH

conf ter
fram sw
end

conf ter
interface Serial0/1
encapsulation frame-relay
frame-relay route 102 interface Serial0/2 201
frame-relay route 103 interface Serial0/3 301
frame-relay intf-type dce
clock rate 64000
no shut
end

conf ter
interface Serial0/2
encapsulation frame-relay
frame-relay route 201 interface Serial0/1 102
frame-relay intf-type dce
clock rate 64000
no shut
end

conf ter
interface Serial0/3
no ip address
encapsulation frame-relay
frame-relay route 301 interface Serial0/1 103
frame-relay intf-type dce
clock rate 64000
no shut
end

 

#############################################
定义子接口网络类型 类型一致都为点到点
R1

conf ter
interface Serial0/0
encapsulation frame-relay
no shutdown
exit

interface serial 0/0.12 point-to-point
ip address 202.101.12.1 255.255.255.0
no shutdown
frame-relay interface-dlci 102

interface serial 0/0.13 point-to-point
ip address 202.101.13.1 255.255.255.0
no shutdown
frame-relay interface-dlci 103

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

conf ter
interface Serial0/0
ip address 202.101.12.2 255.255.255.0
encapsulation frame-relay
frame-relay map ip 202.101.12.1 201 broadcast
ip ospf network point-to-point
no shut
end
#################
R3

conf ter
interface Serial0/0
ip address 202.101.13.3 255.255.255.0
encapsulation frame-relay
frame-relay map ip 202.101.13.1 301 broadcast
ip ospf network point-to-point
no shut
end

 

 

###############################################
在R1 R2 R3配置loopback接口运行OSPF
R1

conf ter
interface Loopback0
ip address 1.1.1.1 255.255.255.0
no shutdown
exit
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 202.12.1.0 0.0.0.0 area 0

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

conf ter
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 202.101.12.2 0.0.0.0 area 0

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

conf ter
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 202.101.13.3 0.0.0.0 area 0

 

 

你可能感兴趣的:(frame)