帧中继动态映射配置:

拓扑如下:

R1模拟帧中继交换机

R3R2R4充当DTE设备,并且在R3---S0/1R2---s0/0,R4---s0/1接口封装帧中继

此试验模拟R2为公司总部,R3R4为公司分部,实现分公司与总部之间利用帧中继技术的连通

回环接口配置为以后测试在帧中继网络中实现RIP协议

R2配置:

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r2

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

ip cef

!

!

!

!

!

multilink bundle-name authenticated

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

ip address 2.2.2.2 255.255.255.0回环接口IP地址

!

interface FastEthernet0/0

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/0

ip address 192.168.1.2 255.255.255.0

encapsulation frame-relay

封装为帧中继(r2(config-if)#encapsulation frame-relay

ip split-horizon

clock rate 2000000

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/1

no ip address

shutdown

clock rate 2000000

!

!

!

!

ip http server

no ip http secure-server

!

!

!

!

!

!

control-plane

!

!

!

line con 0

logging synchronous

line aux 0

line vty 0 4

login

!

!

end

R3配置:

!

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r3

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

ip cef

!

!

!

!

!

multilink bundle-name authenticated

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

ip address 3.3.3.3 255.255.255.0回环接口IP地址

!

interface FastEthernet0/0

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/0

no ip address

shutdown

clock rate 2000000

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/1

ip address 192.168.1.3 255.255.255.0

encapsulation frame-relay

封装为帧中继(r3(config-if)#encapsulation frame-relay

clock rate 2000000

!

!

!

!

ip http server

no ip http secure-server

!

!

!

!

!

!

control-plane

!

!

!

line con 0

logging synchronous

line aux 0

line vty 0 4

login

!

!

end

R4配置:

!

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r4

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

ip cef

!

!

!

!

!

multilink bundle-name authenticated

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

ip address 4.4.4.4 255.255.255.0

!

interface FastEthernet0/0

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/0

no ip address

encapsulation frame-relay

shutdown

clock rate 2000000

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/1

ip address 192.168.1.4 255.255.255.0

encapsulation frame-relay

封装为帧中继(r4(config-if)#encapsulation frame-relay

 

clock rate 2000000

!

!

!

ip http server

no ip http secure-server

!

!

!

!

!

!

control-plane

!

!

!

line con 0

logging synchronous

line aux 0

line vty 0 4

login

!

!

End

 

 

 

R1配置:(重要)

Router>

Router>enable

Router#config terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname isp

isp(config)#line console 0

isp(config-line)#logging synchronous (日志同步)

isp(config-line)#exit

isp(config)#frame-relay switching (开启帧中继交换功能)

isp(config)#int s0/1

isp(config-if)#encapsulation frame-relay ?(选择封装类型默认为思科帧中继)

  MFR   Multilink Frame Relay bundle interface

  ietf  Use RFC1490/RFC2427 encapsulation

  <cr>

 

isp(config-if)#encapsulation frame-relay

isp(config-if)#clock rate 128000配置时钟速率

isp(config-if)#no shutdown

isp(config-if)#

*Mar  1 00:02:58.131: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up

isp(config-if)#

*Mar  1 00:03:09.135: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

 

 

 

isp(config-if)#int s0/0

isp(config-if)#encapsulation frame-relay

isp(config-if)#clock rate 128000

isp(config-if)#no shut

*Mar  1 00:03:46.091: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

isp(config-if)#int s0/2

isp(config-if)#encapsulation frame-relay

isp(config-if)#

*Mar  1 00:03:57.091: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

isp(config-if)#clock rate 128000

isp(config-if)#no shutdown

 

 

配置LMI

isp(config-if)#int s0/0

isp(config-if)#frame-relay lmi-type ?

  cisco 

  ansi  

  q933a 

 

isp(config-if)#frame-relay lmi-type cisco配置LMI类型默认为cisco

isp(config-if)#frame-relay intf-type dce配置为DCE设备

*Mar  1 00:10:00.175: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

 

 

 

isp(config-if)#int s0/1

isp(config-if)#frame-relay lmi-type cisco

isp(config-if)#frame-relay intf-type dce

 

 

 

isp(config-if)#int s0/2

*Mar  1 00:10:36.175: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

isp(config-if)#frame-relay lmi-type cisco

isp(config-if)#frame-relay intf-type dce

isp(config-if)#

 

 

 

配置帧中继交换表:

isp(config)#int s0/0

isp(config-if)#frame-relay route 103 interface s0/1 301

告诉路由器如果该接口收到DLCI103的帧,要从s0/1交换出去,并且将DLCI改为301

isp(config-if)#exit

 

isp(config)#int s0/1

isp(config-if)#frame-relay route 301 interface s0/0 103

isp(config-if)#frame-relay route 201 interface s0/2 102

 

 

isp(config-if)#int s0/2

isp(config-if)#frame-relay route 102 interface s0/1 201

 

 

isp#show frame-relay route查看帧中继交换列表

 

Input Intf      Input Dlci      Output Intf     Output Dlci     Status

Serial0/0       103             Serial0/1       301             active

Serial0/1       201             Serial0/2       102             active

Serial0/1       301             Serial0/0       103             active

Serial0/2       102             Serial0/1       201             active

 

 

测试连通性:

r2#ping 192.168.1.3

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/80/264 ms

r2#ping 192.168.1.4

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.4, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/88/292 ms

 

 

 

 

r3#ping 192.168.1.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 28/109/364 ms

 

 

 

r4#ping 192.168.1.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/48/84 ms

 

 

 

 

技术交流QQ450120127

如有不足,请留言指正,谢谢

 

 

 

 

你可能感兴趣的:(职场,休闲,思科,帧中继)