ospf下帧中继网络配置

简介:

 一直想写篇文章关于帧中继这方面的,一来这东西是个难点二来网上这东西配置的都不咋完全,那小弟就献丑了。废话不说 看图

 

我们用r2模拟帧中继交换机

frame-relay s

 

enable

conf t

no ip domain-lookup

ip classless

ip subnet-zero

hostname r2

line cons 0

exec-timeout 0 0

logg sy

exit

 

int s0/0

no sh

en fr 

frame-relay lmi-type cisco   ||: lmi 类型

frame-relay intf-type dce               :设为dce

frame-relay route 103 interface s0/1 301     :静态路由映射

frame-relay route 104 interface s0/2 401

clock rate 64000

 
int s0/1 
no sh
en fr
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface s0/0 103
int s0/2
en fr
no sh
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 401 interface s0/0 104
r1配置
no ip domain-lookup
ip classless
ip subnet-zero
hostname r1
line cons 0
exec-timeout 0 0
logg sy
exit
int s0/0
ip add 192.168.1.1 255.255.255.0
en fr
no sh
r2配置
int s0/1
ip add 192.168.1.3 255.255.255.0
en fr
no sh
r4配置
ip add 192.168.1.4 255.255.255.0
en fr 
no sh
这样我们我们就完成了r1 2 3 4 基本配置  
在r2  r4#show frame-relay r
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial0/0       103             Serial0/1       301             inactive
Serial0/0       104             Serial0/2       401             inactive
Serial0/1       301             Serial0/0       103             inactive
Serial0/2       401             Serial0/0       104             inactive
我们再在r1上配置ospf
int loo 0
ip add 1.1.1.1 255.255.255.0 
ip ospf netw point to point
int s0/0
ip add 192.168.1.1 255.255.255.0
en fr
ip ospf netw b
ip ospf pri 10
frame-re map ip 192.168.1.3 103 b                 :对端ip   自己的dlci     广播类型
frame-re map ip 192.168.1.4 103 b
frame-re map ip 192.168.1.1 103     可以 ping 通自己
no frame-re inv
no sh
router ospf 1
router-id 1.1.1.1
netw 192168.1.0 0.0.0.255 area 0
netw  1.1.1.0 0.0.0.255 area 0
r3配置
int loo 0
ip add 3.3.3.3 255.255.255.0
ip ospf netw point to point
int s0/1
ip add 192.168.1.3 255.255.255.0
en fr
ip ospf pri 
no frame-re inv
ip ospf netw b
frame-relay map ip 192.168.1.1 301 b
frame-relay map ip 192.168.1.4 301 b
frame-relay map ip 192.168.1.3 301
router ospf 1
netw 3.3.3.0 0.0.0.255 area 0
netw 192.168.1.0 0.0.0.255 area 0
router-id 3.3.3.3
r4配置
int loop 0
ip add 4.4.4.4 255.255.255.0 
ip ospf netw b
int s0/2
no frame-re inv
ip add 192.168.1.4 255.255.255.0 
en fr
ip ospf pri 
ip ospf netw b
frame-relay map ip 192.168.1.1 401 b
frame-relay map ip 192.168.1.3 401 b
frame-relay map ip 192.168.1.4 401
no sh
router ospf 1
netw 192.168.1.0 0.0.0.255 area 0
netw 4.4.4.0 0.0.0.255 area
router-id 4.4.4.4
我们测试下r4路由表
r4#show ip route 
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
     1.0.0.0/24 is subnetted, 1 subnets
O       1.1.1.0 [110/65] via 192.168.1.1, 00:28:02, Serial0/2
     3.0.0.0/24 is subnetted, 1 subnets
O       3.3.3.0 [110/65] via 192.168.1.3, 00:28:02, Serial0/2
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Loopback0
C    192.168.1.0/24 is directly connected, Serial0/2
ping 1.1.1.1
r4#ping 1.1.1.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
实验完成!
 
 
点到点子接口的配置
 
 
 
 FR
 
 
interface Serial2/0
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 no fair-queue
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 103 interface Serial2/3 301
 frame-relay route 104 interface Serial2/1 401
 frame-relay route 105 interface Serial2/2 501
interface Serial2/1
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 401 interface Serial2/0 104
interface Serial2/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 501 interface Serial2/0 105
interface Serial2/3
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 301 interface Serial2/0 103
R1
interface Serial1/0
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 no fair-queue
inerface Serial1/0.3 point-to-point
 ip address 172.16.2.1 255.255.255.0
 frame-relay interface-dlci 103   
interface Serial1/0.4 point-to-point
 ip address 172.16.2.10 255.255.255.0
 frame-relay interface-dlci 104   
interface Serial1/0.5 point-to-point
 ip address 172.16.2.11 255.255.255.0
 frame-relay interface-dlci 105
R3
 
 interface Serial0/3
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
interface Serial0/3.1 point-to-point
 ip address 172.16.2.3 255.255.255.0
 frame-relay interface-dlci 301   
router ospf 10
 log-adjacency-changes
 network 172.16.2.0 0.0.0.255 area 0
 
 R4
 
  
interface Serial0/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
interface Serial0/2.1 point-to-point
 ip address 172.16.2.4 255.255.255.0
 frame-relay interface-dlci 401   
router ospf 10
 log-adjacency-changes
 network 172.16.2.0 0.0.0.255 area 0
R5
nterface Serial0/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
interface Serial0/2.1 point-to-point
 ip address 172.16.2.5 255.255.255.0
 frame-relay interface-dlci 501   
router ospf 10
 log-adjacency-changes
 network 172.16.2.0 0.0.0.255 area 0

 

 本文转自q狼的诱惑 51CTO博客,原文链接:http://blog.51cto.com/liangrui/408451,如需转载请自行联系原作者

相关文章
|
7月前
|
网络虚拟化 网络架构
交换机与路由器技术-09-虚拟局域网VLAN
交换机与路由器技术-09-虚拟局域网VLAN
47 0
|
3月前
|
网络虚拟化
华为eNSP网络配置综合练习一(vlan +MSTP+VLANif+VRRP+ 静态路由+单臂路由+STP+BFD)
华为eNSP网络配置综合练习一(vlan +MSTP+VLANif+VRRP+ 静态路由+单臂路由+STP+BFD)
56 1
|
7月前
|
网络架构
交换机与路由器技术-22-OSPF路由协议
交换机与路由器技术-22-OSPF路由协议
34 0
|
7月前
|
网络架构
交换机与路由器技术-21-RIP路由协议
交换机与路由器技术-21-RIP路由协议
39 0
|
7月前
|
网络架构
交换机与路由器技术-11-VLAN Trunk
交换机与路由器技术-11-VLAN Trunk
36 0
|
安全 网络协议 Shell
交换机 路由器配置
交换机 路由器配置
215 0
|
Shell 网络虚拟化 数据安全/隐私保护
VLAN与三层交换机
1、VLAN的概念与优势 2、VLAN的种类 3、静态VLAN的配置 4、Trunk介绍and配置 5、三层交换机原理 6、hybrid
|
网络协议 网络架构
在NBMA网络中配置OSPF
在NBMA网络中配置OSPF
288 0
在NBMA网络中配置OSPF
|
网络协议 网络虚拟化 网络架构