01-SLIP配置
本章节下载 (130.93 KB)
MSR系列路由器各款型对于本节所描述的特性支持情况有所不同,详细差异信息如下:
特性 |
描述 |
|
MSR800 |
配置SLIP |
不支持 |
MSR 900 |
不支持 |
|
MSR900-E |
不支持 |
|
MSR 930 |
不支持 |
|
MSR 20-1X |
支持 |
|
MSR 20 |
支持 |
|
MSR 30 |
支持 |
|
MSR 50 |
支持 |
|
MSR 2600 |
不支持 |
|
MSR3600-51F |
支持 |
SLIP(Serial Line Internet Protocol,串行线路因特网协议)是一种在串行线路上承载网络层数据包的链路层协议,在RFC 1055中有详细描述。此协议应用简单,只在异步接口上支持。
表1-1 配置SLIP
操作 |
命令 |
说明 |
进入系统视图 |
system-view |
- |
进入接口视图 |
interface interface-type interface-number |
- |
配置同/异步接口工作在异步方式 |
physical-mode async |
可选 同/异步接口需要配置此命令,异步接口不需要配置此命令 |
配置异步接口工作在协议模式 |
async mode protocol |
可选 缺省情况下,异步接口工作在协议模式 |
配置接口封装的链路层协议为SLIP |
link-protocol slip |
可选 缺省情况下,接口封装的链路层协议为PPP |
· 只有异步接口才能封装链路层协议为SLIP。对于同/异步接口,可以切换到异步模式后再封装链路层协议为SLIP。
· 部分异步接口不支持SLIP协议,但是可以配置link-protocol slip命令,配置此命令时系统会提示封装SLIP协议失败,此时接口上没有封装任何链路层协议,需要通过配置link-protocol ppp命令,将接口重新封装成PPP协议后才可使用。
Router A和Router B之间用同/异步接口Serial2/0互连,链路层封装SLIP协议。
图1-1 配置同/异步接口封装SLIP协议组网图
配置Router A
# 配置接口工作在异步协议模式。
<RouterA> system-view
[RouterA] interface serial 2/0
[RouterA-Serial2/0] physical-mode async
[RouterA-Serial2/0] async mode protocol
# 配置接口封装的链路层协议为SLIP。
[RouterA-Serial2/0] link-protocol slip
# 配置接口的IP地址。
[RouterA-Serial2/0] ip address 200.1.1.1 16
配置Router B
# 配置接口工作在异步协议模式。
<RouterB> system-view
[RouterB] interface serial 2/0
[RouterB-Serial2/0] physical-mode async
[RouterB-Serial2/0] async mode protocol
# 配置接口封装的链路层协议为SLIP。
[RouterB-Serial2/0] link-protocol slip
# 配置接口的IP地址。
[RouterB-Serial2/0] ip address 200.1.1.2 16
验证配置结果
通过查看display interface serial 2/0信息,Serial2/0接口的物理层和链路层的状态都是up状态,并且Router A和Router B可以互相ping通对方。
[RouterB-Serial2/0] display interface serial 2/0
Serial2/0 current state: UP
Line protocol current state: UP
Description: Serial2/0 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 200.1.1.2/16 Primary
Link layer protocol is SLIP
Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0
Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
Physical layer is asynchronous, Baudrate is 9600 bps
Last clearing of counters: Never
Last 300 seconds input rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec
Last 300 seconds output rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec
Input: 11753 packets, 147028 bytes
0 broadcasts, 0 multicasts
16 errors, 0 runts, 3 giants
1 CRC, 0 align errors, 0 overruns
0 dribbles, 0 aborts, 0 no buffers
12 frame errors
Output:11741 packets, 142014 bytes
0 errors, 0 underruns, 0 collisions
0 deferred
DCD=DOWN DTR=UP DSR=UP RTS=UP CTS=UP
[RouterB-Serial2/0] ping 200.1.1.1
PING 200.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 200.1.1.1: bytes=56 Sequence=1 ttl=255 time=103 ms
Reply from 200.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 200.1.1.1: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 200.1.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 200.1.1.1: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 200.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/23/103 ms
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!