天天看點

配置幀中繼子接口和流量×××

配置幀中繼子接口和流量×××

配置幀中繼子接口和流量×××

第一步:在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)#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]?    

R2(config-if)#ip ospf network point-to-point    

R2(config)#

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-if)#no sh

R3(config-if)#end激活端口

R3#show ip

R3#conf

R3(config-if)#end   

R3#

00:18:09: %SYS-5-CONFIG_I: Configured from console by console

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

00:18:40: %SYS-5-CONFIG_I: Configured from console by console

Configuring from terminal, memory, or network [terminal]?  

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(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-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)#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-if)#frame

R2(config-if)#frame-relay class cir

R2(config-if)#^Z

第七步:再次進行ping結果與步驟3中的ping有什麼不同

R1#

00:34:24: %SYS-5-CONFIG_I: Configured from console by console

R1#p

Source address or interface: 192.168.13.1

.......................................................

Success rate is 0 percent (0/55)

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