frame-relay案例配置

1)最简单的帧中继配置
R1:
enable
conf t
host r1
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.1 255.255.255.252

R2:
enable
conf t
host r2
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.2 255.255.255.252
如果想ping通自己,需添加命令:
r2(config-if)#frame-relay map ip 192.168.1.2 201

2)关闭inverse-arp后,配置

3)配置点到点的子接口:
R1:
enable
conf t
host R1
inter serial 0/0
 encapsulation frame-relay
 no shutdown
inter serial 0/0.1 point-to-point
 ip address 192.168.1.1 255.255.255.252
 no shutdown
 frame-relay interface-dlci 102
interface serial 0/0.2 point-to-point
 ip add 192.168.1.5 255.255.255.252
 frame-relay interface-dlci 103
inter serial 0/0.3 point-to-point
 ip add 192.168.1.9 255.255.255.252
 frame-relay interface-dlci 104
可选配置:
 frame-relay map ip 192.168.1.9 104
 frame-relay map ip 192.168.1.10 104
 
R2:
enable
conf t
host R2
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.2 255.255.255.252
 
R3:
enable
conf t
host R3
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.6 255.255.255.252
 
R2:
enable
conf t
host R4
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.10 255.255.255.252
 
 
 
4)配置点到多点:
清除路由器配置:
 router#erase startup 清除nvram中的配置文件
 router#reload  重启路由器
 
enable
conf t
host r1
inter s 0/0
 no shut
 encapsu frame-relay
inter s 0/0.1 multipoint
 ip address 192.168.1.1 255.255.255.0
 frame-relay map ip 192.168.1.2 102 broadcast
 frame-relay map ip 192.168.1.3 103 broadcast
 frame-relay map ip 192.168.1.4 104 broadcast

R2:
enable
conf t
host R2
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.2 255.255.255.0
 frame-relay map ip 192.168.1.1 201 broadcast
 
R3:
enable
conf t
host R3
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.3 255.255.255.0
 frame-relay map ip 192.168.1.1 301 broadcast
 
R2:
enable
conf t
host R4
inter serial 0/0
 encapsulation frame-relay
 no shutdown
 ip address 192.168.1.4 255.255.255.0
 frame-relay map ip 192.168.1.1 401 broadcast
 

 
本文出自 “ 哥从菜鸟到传说” 博客,谢绝转载!
本文出自 51CTO.COM技术博客

你可能感兴趣的:(职场,休闲,frame-relay案例配置)