帧中继与PPP协议一样也是属于广域网上的一种协议,在这我们需要知道VC(虚电路)是什么。
关键词:PVC,SVC,DLCI,LMI,DCE,DTE得了解是什么。
实验目的
- 实现,并了解帧中继原理。
实验仪器
- 两台有V35接口的华为路由器
拓扑结构
这个看着熟悉吧,和ppp差不多吧,但只是这个小实验一样而已,实际上原理不太一样。
实验步骤
配置IP地址
R1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int s1/0/0
[R1-Serial1/0/0]ip add 10.10.10.1 24
R2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]int s1/0/0
[R2-Serial1/0/0]ip add 10.10.10.2 24
开启fr协议
[R1-Serial1/0/0]link-protocol fr //帧中继协议
///下边这段是自动生成的,协议开启过程/
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y //回Y
Apr 17 2022 21:06:55-08:00 R1 %%01IFNET/4/CHANGE_ENCAP(l)[6]:The user performed
the configuration that will change the encapsulation protocol of the link and th
en selected Y.
[R1-Serial1/0/0]
[R1-Serial1/0/0]
Apr 17 2022 21:06:55-08:00 R1 %%01PPP/4/PHYSICALDOWN(l)[7]:On the interface Seri
al1/0/0, PPP link was closed because the status of the physical layer was Down.
[R1-Serial1/0/0]
Apr 17 2022 21:06:55-08:00 R1 %%01IFNET/4/LINK_STATE(l)[8]:The line protocol PPP
on the interface Serial1/0/0 has entered the DOWN state.
[R1-Serial1/0/0]
Apr 17 2022 21:06:55-08:00 R1 %%01IFPDT/4/IF_STATE(l)[9]:Interface Serial1/0/0 h
as turned into DOWN state.
[R1-Serial1/0/0]
Apr 17 2022 21:06:56-08:00 R1 %%01IFPDT/4/IF_STATE(l)[10]:Interface Serial1/0/0
has turned into UP state.
下边是R2的
[R2-Serial1/0/0]link-protocol fr
进行配置
R1
[R1-Serial1/0/0]fr interface-type dce //选择帧中继端口类型为dce
[R1-Serial1/0/0]fr lmi type q933a //LMI协议类型,两端必须一致
[R1-Serial1/0/0]fr dlci 50 //为帧中继接口配置 50 号虚电路
[R1-fr-dlci-Serial1/0/0-50]q
[R1-Serial1/0/0]fr inarp //开启帧中继逆向地址解析功能
[R1-Serial1/0/0]
R2
[R2-Serial1/0/0]fr interface-type dte //dte为终端
[R2-Serial1/0/0]fr lmi type q933a //LMI协议类型,两端必须一致
[R2-Serial1/0/0]fr dlci 70
[R2-fr-dlci-Serial1/0/0-70]q
[R2-Serial1/0/0]fr inarp
大家可以去看看dce和dte的区别。
然后就是测通。
[R1-Serial2/0/0]ping 10.10.10.2
PING 10.10.10.2: 56 data bytes, press CTRL_C to break
Reply from 10.10.10.2: bytes=56 Sequence=1 ttl=255 time=50 ms
Reply from 10.10.10.2: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 10.10.10.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.10.10.2: bytes=56 Sequence=4 ttl=255 time=10 ms
Reply from 10.10.10.2: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 10.10.10.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/20/50 ms
[R1-Serial2/0/0]
[R2-Serial2/0/0]ping 10.10.10.1
PING 10.10.10.1: 56 data bytes, press CTRL_C to break
Reply from 10.10.10.1: bytes=56 Sequence=1 ttl=255 time=50 ms
Reply from 10.10.10.1: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 10.10.10.1: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.10.10.1: bytes=56 Sequence=4 ttl=255 time=10 ms
Reply from 10.10.10.1: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 10.10.10.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/20/50 ms
[R2-Serial2/0/0]
到这基本上就完工了。
第一版后边我又去试了一下,用的map命令写的,不知道为啥会不通,后来又调整了一下,改成了
fr inarp //开启帧中继逆向地址解析功能(接口视图下)
这样就能ping通了,大家可以了解一下这个命令。
对map命令有什么见解,或者知道什么原因的话,可以分享一下哦,万分感谢!!!