R1(config-if)#en fr 在接口下封装帧中继 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)#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 激活端口 Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int s3/0.1 point-to-point 在接口 S3/0 下配置点到点子接口 S3/0.1 R1(config-subif)#no frame-relay inv 关闭反向 ARP R1(config-subif)#no frame-relay inverse-arp 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 地址 R2(config-if)#frame-relay map ip 192.168.12.1 201 b 配置帧中继在 S3/0.2 端口的映射 R2(config)#router ospf 64 配置 OSPF 路由协议 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 00:16:06: %SYS-5-CONFIG_I: Configured from console by console Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. R2(config-if)#ip ospf network point-to-point R3(config-if)#en fr 封装帧中继 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)#frame map ip 192.168.13.1 301 b 手工配置帧中继到端口 S3/0.1 映射关系 Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
00:18:09: %SYS-5-CONFIG_I: Configured from console by console
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router ospf 64 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 路由协议 00:18:40: %SYS-5-CONFIG_I: Configured from console by console
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
R3(config-if)#ip ospf net
R3(config-if)#ip ospf network poin
R3(config-if)#ip ospf network point-to-p
第四步:用扩展 ping 命令测试路由之间的连通性,发送几个大数据包(超过 1000 字节的数据包),测试吞吐量,注意以毫秒计的返回时间 Target IP address: 192.168.12.2 Datagram size [100]: 1111 Source address or interface: 192.168.12.1 Set DF bit in IP header? [no]: Validate reply data? [no]: 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 流量整形 Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. 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-if)#frame-relay tra R1(config-if)#frame-relay traffi R1(config-if)#frame-relay traffic-shaping R1(config-subif)#frame-relay class R1(config-subif)#frame-relay class cir 第六步:在 R2 上进行 Frame-relay 流量整形 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-if)#frame-relay class cir 第七步:再次进行 ping 结果与步骤 3 中的 ping 有什么不同 Target IP address: 192.168.12.2 Datagram size [100]: 1111 Source address or interface: 192.168.12.1 Set DF bit in IP header? [no]: Validate reply data? [no]: 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 00:34:24: %SYS-5-CONFIG_I: Configured from console by console
Target IP address: 192.168.12.2
Datagram size [100]: 1111
Source address or interface: 192.168.13.1
Set DF bit in IP header? [no]:
Validate reply data? [no]:
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)
Target IP address: 192.168.12.2
Datagram size [100]: 1111
Source address or interface: 192.168.12.1
Set DF bit in IP header? [no]:
Validate reply data? [no]:
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
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
Serial3/0.2 dlci 102 is first come first serve default queueing
本文转自hexianguo 51CTO博客,原文链接:http://blog.51cto.com/xghe110/89690 ,如需转载请自行联系原作者