博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
配置帧中继子接口和流量整形
阅读量:7007 次
发布时间:2019-06-28

本文共 7585 字,大约阅读时间需要 25 分钟。

配置帧中继子接口和流量整形
第一步:在
R1
上的预配置
R1(config)#int s3/0
R1(config-if)#en fr
在接口下封装帧中继
R1(config-if)#no fram
R1(config-if)#no frame-relay inv
R1(config-if)#no frame-relay inverse-arp 
关闭反向
ARP
R1(config-if)#int s3/0.2 point
R1(config-if)#int s3/0.2 point-to-point
在接口
S3/0
下配置点到点子接口
S3/0.2
R1(config-subif)#no frame inv
R1(config-subif)#no frame inver
关闭反向
ARP
     
R1(config-subif)#fram
R1(config-subif)#frame-relay int
R1(config-subif)#frame-relay interface-dlci 102
定义帧中继
DLCI
号为
102
R1(config-fr-dlci)#ip ad 192.168.12.1 255.255.255.0
在子接口
S3/0.2
下配置
IP
地址
R1(config-subif)#no sh
激活端口
R1(config-subif)#exit
R1(config)#^Z
R1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int s3/0.1 po
R1(config)#int s3/0.1 point-to-point 
在接口
S3/0
下配置点到点子接口
S3/0.1
 
R1(config-subif)#no fram
R1(config-subif)#no frame-relay inv
关闭反向
ARP
R1(config-subif)#no frame-relay inverse-arp
R1(config-subif)#fram
R1(config-subif)#frame-relay int
R1(config-subif)#frame-relay interface-dlci 103
定义帧中继
DLCI
号为
103
R1(config-subif)#ip ad 192.168.13.1 255.255.255.0
在子接口
S3/0.2
下配置
IP
地址
R1(config-subif)#no sh
R1(config-subif)#end
第二步:
R2
上的预配置
R2(config)#int s3/0
R2(config-if)#fram
R2(config-if)#frame-relay map ip 192.168.12.1 201 b
配置帧中继在
S3/0.2
端口的映射
R2(config-if)#exit
R2(config)#router
R2(config)#router ospf 64
配置
OSPF
路由协议
R2(config-router)#net
R2(config-router)#network 0.0.0.0 0.0.0.0 are
R2(config-router)#network 0.0.0.0 0.0.0.0 area 0
R2(config-router)#^Z
R2#
00:16:06: %SYS-5-CONFIG_I: Configured from console by console
R2#conf  
Configuring from terminal, memory, or network [terminal]?    
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#int s3/0
R2(config-if)#ip ospf network point-to-point    
R2(config-if)#exit
R2(config)#
R2(config)#
R2(config)#int s3/0
R2(config-if)#no sh
R2(config-if)#end
第三步:在
R3
上的预配置
R3(config)#int s3/0
R3(config-if)#en fr
封装帧中继
R3(config-if)#no fra
R3(config-if)#no fram
R3(config-if)#no frame-relay inver
关闭反向
ARP
R3(config-if)#ip ad 192.168.13.3 255.255.255.0
在接口下配置
IP
R3(config-if)#fram
R3(config-if)#frame map ip 192.168.13.1 301 b
手工配置帧中继到端口
S3/0.1
映射关系
R3(config-if)#exit
R3(config)#^Z
R3(config)#int s3/0
R3(config-if)#no sh
R3(config-if)#end
激活端口
R3#show ip
R3#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#int s3/0
R3(config-if)#end   
R3#
00:18:09: %SYS-5-CONFIG_I: Configured from console by console
R3#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#
R3(config)#
R3(config)#
R3(config)#router osp
R3(config)#router ospf 64
R3(config-router)#net
R3(config-router)#network 0.0.0.0 0.0.0.0 area
R3(config-router)#network 0.0.0.0 0.0.0.0 area 0
配置
ospf
路由协议
R3(config-router)#end
R3#conf
00:18:40: %SYS-5-CONFIG_I: Configured from console by console
R3#conf
Configuring from terminal, memory, or network [terminal]?  
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#int s3/0
R3(config-if)#ip ospf net
R3(config-if)#ip ospf network poin
R3(config-if)#ip ospf network point-to-p
R3(config-if)#^Z
第四步:用扩展
ping
命令测试路由之间的连通性,发送几个大数据包(超过
1000
字节的数据包),测试吞吐量,注意以毫秒计的返回时间
Protocol [ip]:
Target IP address: 192.168.12.2
Repeat count [5]: 55
Datagram size [100]: 1111
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.12.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 55, 1111-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (55/55), round-trip min/avg/max = 52/557/1120 m
第五步:在
R1
进行
Frame-relay
流量整形
R1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#
R1(config)#
R1(config)#map-cla
R1(config)#map-class fram
R1(config)#map-class frame-relay cir
R1(config-map-class)#fram
R1(config-map-class)#frame-relay tra
R1(config-map-class)#frame-relay traffic-rate 19200
R1(config-map-class)#exit
R1(config)#int s3/0
R1(config-if)#fram
R1(config-if)#frame-relay tra
R1(config-if)#frame-relay traffi
R1(config-if)#frame-relay traffic-shaping
R1(config-if)#int s3/0.2
R1(config-subif)#fram
R1(config-subif)#frame-relay class
R1(config-subif)#frame-relay class cir
R1(config-subif)#^Z
第六步:在
R2
上进行
Frame-relay
流量整形
R2(config)#map
R2(config)#map-cl
R2(config)#map-class fram
R2(config)#map-class frame-relay cir
R2(config-map-class)#fram
R2(config-map-class)#frame-relay traff
R2(config-map-class)#frame-relay traffic-rate 19200
R2(config-map-class)#exit
R2(config)#int s3/0
R2(config-if)#frame
R2(config-if)#frame-relay class cir
R2(config-if)#^Z
第七步:再次进行
ping
结果与步骤
3
中的
ping
有什么不同
Protocol [ip]:
Target IP address: 192.168.12.2
Repeat count [5]: 55
Datagram size [100]: 1111
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.12.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 55, 1111-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (55/55), round-trip min/avg/max = 52/557/1120 m
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
R1#
00:34:24: %SYS-5-CONFIG_I: Configured from console by console
R1#p
Protocol [ip]:
Target IP address: 192.168.12.2
Repeat count [5]: 55
Datagram size [100]: 1111
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.13.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 55, 1111-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
.......................................................
Success rate is 0 percent (0/55)
R1#
R1#
R1#
R1#
R1#
R1#
R1#p
Protocol [ip]:
Target IP address: 192.168.12.2
Repeat count [5]: 55
Datagram size [100]: 1111
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.12.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 55, 1111-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (55/55), round-trip min/avg/max = 52/557/1120 ms
R1#show fram
R1#show frame pvc 102
 
PVC Statistics for interface Serial3/0 (Frame Relay DTE)
 
DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial3/0.2
 
  input pkts 249           output pkts 199          in bytes 74877    
  out bytes 193424         dropped pkts 2           in FECN pkts 0        
  in BECN pkts 0           out FECN pkts 0          out BECN pkts 0        
  in DE pkts 0             out DE pkts 0        
  out bcast pkts 24         out bcast bytes 8409     
  pvc create time 00:29:50, last time pvc status changed 00:23:43
  cir 19200     bc 19200     be 0         limit 300    interval 125
  mincir 9600      byte increment 300   Adaptive Shaping none
  pkts 119       bytes 125827    pkts delayed 36        bytes delayed 39378   
  shaping inactive   
  traffic shaping drops 0
  Serial3/0.2 dlci 102 is first come first serve default queueing
 
    本文转自hexianguo 51CTO博客,原文链接:http://blog.51cto.com/xghe110/89690
,如需转载请自行联系原作者
你可能感兴趣的文章