Lab Cisco packet tracer

34 450 6
Lab Cisco packet tracer

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

CẤU HÌNH PPP PAP VÀ CHAP I Giới thiệu : PPP (Point-to-Point Protocol) giao thức đóng gói sử dụng để thực kết nối mạng WAN PPP bao gồm LCP (Link Control Protocol) NCP (Network Control Protocol) LCP dùng để thiết lập kết nối point-to-point, NCP dùng để cấu hình cho giao thức lớp mạng khác PPP cấu hình interface vật lý sau : Asynchronous serial : cồng serial bất đồng Synchronous serial : cổng serial đồng High-Speed Serial Interface (HSSI) : cổng serial tốc độ cao Integrated Services Digital Network (ISDN) Quá trình tạo session PPP gồm ba giai đoạn (phase): Link-establishment phase Authentication phase (tùy chọn) Network layer protocol phase Tùy chọn xác nhận (authentication) giúp cho việc quản lý mạng dễ dàng PPP sử dụng hai cách xác nhận PAP (Password Authentication Protocol) CHAP (Challenge Handshake Authentication Protocol) PAP dạng xác nhận two-way handshake Sau tạo liên kết node đầu xa gửi usename password lặp lặp lại nhận thông báo chấp nhận từ chối Password PAP gửi dạng clear text (khơng mã hóa) CHAP dạng xác nhận three-way handshake Sau tạo liên kết, router gửi thông điệp “challenge” cho router đầu xa Router đầu xa gửi lại giá trị tính tốn dựa password thơng điệp “challenge” cho router Khi nhận giá trị này, router kiểm tra lại xem có giống với giá trị tính hay khơng Nếu đúng, router xem g ủi xác nhận kết nối thiết lập; ngược lại, kết nối bị ngắt lặp tức II Các câu lệnh sử dụng lab : username name password password Cấu hình tên password cho CHAP PAP Tên password phải giống với router đầu xa encapsulation ppp Cấu hình cho interface sử dụng giao thức PPP 265 ppp authentication (chap chap pap pap chap pap) Cấu hình cho interface sử dụng PAP, CHAP, hai Trong trường hợp hai sử dụng, giao thức sử dụng trình xác nhận; giao thức đầu bị từ chối router đầu xa yêu cầu dùng giao thức thứ hai giao thức thứ hai dùng ppp pap sent-username username password password Cấu hình username password cho PAP debug ppp authentication Xem trình tự xác nhận PAP CHAP III Mô tả lab đồ hình : - Đồ hình lab hình v ẽ Hai router đặt tên TTG, TTG2 nối với cáp serial Địa IP interface hình - Yêu cầu Lab : + Thay đổi chuẩn đóng gói router sang PPP + Triển khai chứng thực PPP PAP + Triển khai chứng thực PPP CHAP IV Cấu hình router : a) Bước : Đặt tên địa cho interface Router TTG1 : Router>enable Router#configure terminal Router(config)#hostname TTG1 TTG1(configure)#interface s0/1/0 TTG1(configure-if)#ip address 192.168.1.1 255.255.255.0 TTG1(configure-if)#clockrate 64000 TTG1(configure-if)#exit Router TTG2 : Router>enable Router#configure terminal Router(config)#hostname TTG2 TTG2(configure)#interface s0/1/0 TTG2(configure-if)#ip address 192.168.1.2 255.255.255.0 TTG2(configure-if)#clockrate 64000 TTG2(configure-if)#exit - Chúng ta kiểm tra trạng thái cổng câu lệnh show ip interface brief TTG2#sh ip interface brief Interface IP-Address OK? Method Status Protocol Fastethernet0/0 unassigned YES unset administratively down down Serial0/1/0 192.168.1.2 YES manual up Serial0/1/1 unassigned YES unset administratively down down up - Cổng serial router TTG2 up Làm tương t ự để kiểm tra trạng thái cổng router TTG1 - Chúng ta sử dụng câu lệnh show interfaces serial để biết thông số interface serial router TTG2#sh interfaces serial 0/1/0 Serial0/1/0 is up, line protocol is up Hardware is HD64570 Internet address is 192.168.1.2/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) Last input 00:00:02, output 00:00:01, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 15 packets input, 846 bytes, no buffer Received 15 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 19 packets output, 1708 bytes, underruns output errors, collisions, interface resets output buffer failures, output buffers swapped out carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up TTG1#show interface s0/1/0 Serial0/1/0 is up, line protocol is up Hardware is HD64570 Internet address is 192.168.1.1/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) Last input 00:00:00, output 00:00:00, output hang never Last clearing of "show interface" counters 00:11:35 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: fifo Output queue :0/40 (size/max) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 21 packets input, 2010 bytes, no buffer Received 21 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 23 packets output, 1280 bytes, underruns output errors, collisions, interface resets output buffer failures, output buffers swapped out carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up - Cả hai cổng serial hai router sử dụng giao thức đóng gói HDLC trạng thái hai up b) Bước : Cấu hình PPP PAP, CHAP Cấu hình PPP PAP Đứng router TTG1, cấu hình PPP cho interface serial câu lệnh encapsulation ppp TTG1(config)#interface s0/1/0 TTG1(config-if)#encapsulation ppp - Kiểm tra trạng thái interface serial0/1/0 router TTG1 TTG1#show ip interface brief Interface IP-Address OK? Method Status FastEthernet0/0 unassigned YES unset administratively down down Serial0/1/0 192.168.1.1 YES manual up Serial0/1/1 unassigned YES unset administratively down down TTG1#show interface s0/1/0 Protocol down Serial0/1/0 is up, line protocol is down Hardware is HD64570 Internet address is 192.168.1.1/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, loopback not set Keepalive set (10 sec) LCP REQsent Closed: IPCP, CDPCP Last input 00:00:08, output 00:00:01, output hang never Last clearing of "show interface" counters 00:00:15 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: fifo Output queue :0/40 (size/max) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec packets input, 22 bytes, no buffer Received broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort packets output, 98 bytes, underruns output errors, collisions, interface resets output buffer failures, output buffers swapped out carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up - Nhận xét : interface serial0/1/0 router TTG1 b ị down, đồng nghĩa v ới interface serial 0/1/0 router TTG2 bị down Nguyên nhân hai interface sử dụng giao thức đóng gói khác (Interface serial router TTG1 sử dụng PPP TTG2 sử dụng HDLC) Ví phải cấu hình cho interface serial router TTG2 s dụng giao thức PPP TTG2(config)#interface s0/1/0 TTG2(config-if)#encapsulation ppp - Bây kiểm tra trạng thái interface TTG2# interface s0/1/0 Serial0/1/0 is up, line protocol is up Hardware is HD64570 Internet address is 192.168.1.2/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, loopback not set Keepalive set (10 sec) LCP Open Open: IPCP, CDPCP Last input 00:00:01, output 00:00:01, output hang never Last clearing of "show interface" counters 00:00:18 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 15 packets input, 1004 bytes, no buffer Received broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 13 packets output, 976 bytes, underruns output errors, collisions, interface resets output buffer failures, output buffers swapped out carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up - Cả hai interface hai router up trở lại Do hai cấu hình sử dụng giao thức đóng gói PPP - Trước cấu hình PAP cho hai interface sử dụng câu lệnh debug ppp authentication để xem trình tự trao đổi thông tin PAP TTG2#debug ppp authentication PPP authentication debugging is on Chúng ta cấu hình PAP cho hai interface serial sau : TTG1(config)#username TTG2 password cisco TTG1(config)#interface s0/1/0 TTG1(config-if)#ppp authentication pap TTG1(config-if)#ppp pap sent-username TTG1 password cisco TTG2(config)#username TTG1 password cisco TTG2(config)# interface s0/1/0 TTG2(config-if)#ppp authentication pap TTG2(config-if)#ppp pap sent-username TTG2 password cisco Lưu ý : - Trong câu lệnh username name password password , name phải trùng với router đầu xa ngược lại password phải giống - Còn câu lệnh ppp pap sent-username name password password , name password router cấu hình - Sau cấu hình PAP xong route TTG2, hình xuất trình tự PAP 00:09:49: Se0 PPP: Phase is AUTHENTICATING, by both 00:09:49: Se0 PAP: O AUTH-REQ id len 18 from "TTG2" 00:09:49: Se0 PAP: I AUTH-REQ id len 18 from "TTG1" 00:09:49: Se0 PAP: Authenticating peer TTG1 00:09:49: Se0 PAP: O AUTH-ACK id len 00:09:49: Se0 PAP: I AUTH-ACK id len 00:09:50: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up Ý nghĩa thơng báo : Dòng thơng báo : PPP thực xác nhận hai chiều Dòng thơng báo : TTG2 gửi u cầu xác nhận Dòng thơng báo : Nhận yêu cầu xác nhận từ TTG1 Dòng thơng báo : Nhận xác nhận TTG1 Dòng thông báo : Gửi xác nhận đến TTG1 Dòng thơng báo : Nhận xác nhận từ TTG1 Dòng thơng báo : Trạng thái interface chuyển sang UP - Như hai interface router TTG1 TTG2 up Chúng ta đứng router TTG2 ping interface serial 0/1/0 router TTG1 để kiểm tra TTG2#ping 192.168.1.1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 14.1.0.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/60 ms Cấu hình PPP CHAP Trước cấu hình PPP CHAP cho hai interface gở bỏ PAP hai router TTG1(config)#interface s0/1/0 TTG1(config-if)#no ppp authentication pap TTG1(config-if)#no ppp pap sent-username TTG1 password cisco TTG2(config)#interface s0/1/0 TTG2(config-if)#no ppp authentication pap TTG2(config-if)#no ppp pap sent-username TTG2 password cisco - Bây cấu hình CHAP câu lệnh ppp authentication chap TTG1(config)# interface s0/1/0 TTG1(config-if)#ppp authentication chap TTG2(config)# interface s0/1/0 TTG2(config-if)#ppp authentication chap Lưu ý : cấu hình PPP CHAP phải cấu hình cho interface serial sử dụng giao thức đóng gói PPP câu lệnh encapsulation ppp ph ải sử dụng câu lệnh username name password password để cấu hình name password cho giao thức CHAP thực xác nhận Ở đây, không thực lại câu lệnh bước cấu hình PAP chúng tađã thực Do s dụng câu lệnh debug ppp authentication router TTG2, nên cấu hình CHAP xong hai router hình thơng báo sau : (console nối với router TTG2) 00:15:08: Se0 CHAP: O CHALLENGE id len 28 from "TTG2" 00:15:08: Se0 CHAP: I CHALLENGE id len 28 from "TTG1" 00:15:08: Se0 CHAP: O RESPONSE id len 28 from "TTG2" 00:15:08: Se0 CHAP: I RESPONSE id len 28 from "TTG1" 00:15:08: Se0 CHAP: O SUCCESS id len 00:15:08: Se0 CHAP: I SUCCESS id len 00:15:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up Unused 0 0 DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/1/1 input pkts out bytes 186 in BECN pkts in DE pkts out bcast pkts output pkts in bytes 200 dropped pkts in FECN pkts out FECN pkts out BECN pkts out DE pkts out bcast bytes Num Pkts Switched pvc create time 00:00:45, last time pvc status changed 00:00:43 DLCI USAGE cho ta biết hai interface S0/1/0, S0/1/1 hoạt động chế độ frame relay switch ACTIVE Đ ồng thời thơng báo câu lệnh cho ta biết số gói chuyển mạch qua interface (Num Pkts Switched 3) - Như vậy, từ kết ta biết router FrameSwitch hoạt động Frame Relay Switch - Chúng ta kiểm tra tình trạng LMI router FrameSwitch hai router TTG1, TTG2 câu lệnh show frame lmi FrameSwitch#show frame lmi LMI Statistics for interface Serial0/1/0 (Frame Relay DCE) LMI TYPE = ANSI Invalid Unnumbered info Invalid Prot Disc Invalid dummy Call Ref Invalid Msg Type Invalid Status Message Invalid Lock Shift Invalid Information ID Invalid Report IE Len Invalid Report Request Invalid Keep IE Len Num Status Enq Rcvd 20 Num Status msgs Sent 20 Num Update Status Sent Num St Enq Timeouts LMI Statistics for interface Serial0/1/1 (Frame Relay DCE) LMI TYPE = ANSI Invalid Unnumbered info Invalid Prot Disc Invalid dummy Call Ref Invalid Msg Type Invalid Status Message Invalid Lock Shift Invalid Information ID Invalid Report IE Len Invalid Report Request Invalid Keep IE Len Num Status Enq Rcvd 16 Num Status msgs Sent 16 Num Update Status Sent Num St Enq Timeouts - Câu lệnh cho ta biết thông tin tất interface router hoạt động chế độ Frame relay (Ở interface S0/1/0và S0/1/1) - Bây kiểm tra frame relay route router Frameswitch câu lệnh show frame route FrameSwitch#sh frame-relay route Input Intf Input Dlci Output Intf Output Dlci Status Serial0/1/0 102 Serial0/1/1 201 active Serial0/1/1 201 Serial0/1/0 102 active - Kết câu lệnh cho biết traffic đến interface serial0/1/0 với DLCI 102sẽ chuyển mạch qua serial0/1/1 với DLCI 201; ngược lại, traffic đến serial0/1/1 với DLCI 201 chuyển mạch qua serial0/1/0 với DLCI 102 Đồng thời câu lệnh hai DLCI hoạt động - Chuyển sang router TTG1, kiểm tra xem DLCI 102 interface serial0/0/0 có hoạt động hay chưa cách : TTG1#sh frame-relay pvc PVC Statistics for interface Serial0/0/0 (Frame Relay DTE) Active Inactive Deleted Static Local 0 Switched 0 0 Unused 0 0 DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0/0 input pkts output pkts in bytes 646 out bytes 570 dropped pkts in BECN pkts in DE pkts in FECN pkts out FECN pkts out BECN pkts out DE pkts out bcast pkts out bcast bytes 570 pvc create time 00:02:58, last time pvc status changed 00:02:38 - Nhận xét : Interface serial0/0/0 router TTG1 hoạt động frame relay DTE, DLCI 102 hoạt động - Mặc định Cisco sử dụng Inverse ARP để map địa IP đầu xa PVC với DLCI interface đầu gần Do khơng cần phải thực thêm bước Để kiểm tra việc sử dụng câu lệnh show frame-relay map TTG1#sh frame-relay map Serial0/1/0 (up): ip 192.168.1.2 dlci 102(0xC9,0x3090), dynamic, broadcast, status defined, active - Kết câu lệnh cho ta biết, DLCI 102 hoạt động interface serial0/0/0 map với địa IP 102.168.1.2 router TTG2, việc map tự động - Lặp lại bước tương tự để kiểm tra cho router TTG2 TTG2#sh frame-relay pvc PVC Statistics for interface Serial0/0/0 (Frame Relay DTE) Active Inactive Deleted Static Local 0 Switched 0 0 Unused 0 0 DLCI = 201, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0/0 input pkts 10 output pkts 11 out bytes 934 dropped pkts in BECN pkts out FECN pkts in bytes 858 in FECN pkts out BECN pkts in DE pkts out bcast pkts 11 out DE pkts out bcast bytes 934 pvc create time 00:04:05, last time pvc status changed 00:04:05 TTG2#show frame-relay map Serial0/0/0 (up): ip 192.168.1.1 dlci 201(0xC9,0x3090), dynamic, broadcast,, status defined, active - Nhận xét : DLCI 201 hoạt động interface serial0/0/0 TTG2 map với địa IP 192.168.1.1 - Bây kiểm tra mạng liên lạc với chưa cách đứng hai router ping đến interface loopback router đầu xa TTG1#ping 11.1.0.1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 11.1.0.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms TTG2#ping 10.1.0.1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 10.1.0.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/64 ms - Như vậy, mạng có th ể liên lạc với Và router FrameSwitch th ực tốt chức frame relay switch Một số lệnh liên quan đến lab : Cấu hình giao thức đóng gói Frame Relay Router(config)#interface serial Chuyển cấu hình vào chế độ interface 0/0/0 s0/0/0 Router(config-if)#encapsulation Cho phép sử dụng Frame Relay để đóng frame-relay gói liệu với giao thức đóng gói mặc định cisco Router(config-if)#encapsulation Cho phép sử dụng Frame Relay để đóng frame-relay ietf gói liệu với giao thức đóng gói ietf (RFC 1490) Sử dụng giao thức đóng gói IETF trường hợp kết nối đến router Cisco Router(config-if)#frame-relay Phụ thuộc vào tùy chọn mà bạn lựa chọn lmitype {ansi | cisco | q933a} cấu hình, câu lệnh sử dụng để cấu hình loại LMI chuẩn ANSI, chuẩn Cisco, chuẩn ITU-T Q.933 Annex A Router(config-if)#frame−relay intf−type [dce | dte | nni] Cấu hình cho loại Frame Relay switch cho interface Sử dụng cho router đóng vai trò frame relay switch Router(config-if)#frame−relay route in−dlci out−interface out−dlci Tạo PVC interface router đóng vai trò frame relay switch Router(config)# frame−relay switching Cấu hình cho router hoạt động frame relay switch Kiểm tra cấu hình Frame Relay Router#show frame-relay map Xem thông số map DLCI đầu gần với IP đầu xa Router#show frame−relay lmi [type number] Xem thông số LMI router với Frame relay switch 288 CẤU HÌNH FRAME RELAY NÂNG CAO I Giới thiệu : - Fame relay phổ biến công nghệ WAN Frame Relay cung cấp nhiều đặc tính lợi nhuận việc kết nối point -to- point WAN - Trong môi trường Frame Relay hoạt động để đảm bảo việc kết nối làm việc đ ầu thiết bị bên Frane Relay phải Data Terminal Equipment (DTE) môi trường Frame relay switch bên phải Data Communication Equipmet (DCE) Subinterface hoạt động giống lease lines point-to-point subinterface đòi hỏi phải subnet riêng biệt Trong thực hành ta sử dụng mô hình Hub Spoke Trongđó Router TTG HUB Spoke router TTG TTG2 II III Mô tả lab đồ hình : Cấu hình : 289 FR-SWITCHING : Router>enable Router#configure terminal Router(config)#hostname FRSwitch FRSwitch(config)#interface s0/1/0 FRSwitch(config-if)# encapsulation frame-relay FRSwitch(config-if)# clockrate 64000 FRSwitch(config-if)#frame-relay intf-type dce FRSwitch(config-if)# frame-relay route 102 interface Serial0/1/1 201  thực route cho PVC, lệnh thấy DLCI đến S0/1/0 102 đẩy frame S0/1/1 đổi thành DLCI 201 FRSwitch(config-if)# frame-relay route 103 interface Serial0/2/0 301 FRSwitch(config-if)#exit FRSwitch(config)#interface s0/1/1 FRSwitch(config-if)#encapsulation frame-relay FRSwitch(config-if)# clockrate 64000 FRSwitch(config-if)#frame-relay intf-type dce FRSwitch(config-if)# frame-relay route 201 interface Serial0/1/0 102 FRSwitch(config-if)#exit FRSwitch(config)#interface s0/2/0 FRSwitch(config-if)#encapsulation frame-relay FRSwitch(config-if)# clockrate 64000 FRSwitch(config-if)#frame-relay intf-type dce FRSwitch(config-if)# frame-relay route 301 interface Serial0/1/0 103 Router TTG1: Router>enable Router#configure terminal Router(config)#hostname TTG1 TTG1(config)#interface loopback TTG1(config-if)#ip address 192.168.1.1 255.255.255.0 TTG1(config-if)#exit TTG1(config)#interface s0/1/0 TTG1(config-if)#encapsulation frame-relay TTG1(config-if)#no shutdown TTG1(config-if)#exit TTG1(config)#interface Serial0/1/0.102 point-to-point TTG1(config-if)# ip address 192.168.4.1 255.255.255.0 TTG1(config-if)# frame-relay interface-dlci 102 TTG1(config-if)#exit TTG1(config)#interface Serial0/1/0.103 point-to-point TTG1(config-if)# ip address 192.168.5.1 255.255.255.0 TTG1(config-if)#frame-relay interface-dlci 103 TTG1(config-if)#exit TTG1(config)#router eigrp 100 TTG1(config-router)# network 192.168.1.0 TTG1(config-router)# network 192.168.4.0 TTG1(config-router)# network 192.168.5.0 Router TTG2 : Router>enable Router#configure terminal Router(config)#hostname TTG2 TTG2(config)#interface loopback TTG2(config-if)#interface Loopback0 TTG2(config-if)# ip address 192.168.2.1 255.255.255.0 TTG2(config-if)#exit TTG2(config)#interface Serial0/1/0 TTG2(config-if)#encapsulation frame-relay TTG2(config-if)#exit TTG2(config)#interface Serial0/1/0.201 point-to-point TTG2(config-if)# ip address 192.168.4.2 255.255.255.0 TTG2(config-if)# frame-relay interface-dlci 201 TTG2(config-if)#exit TTG2(config)#router eigrp 100 TTG2(config-router)# network 192.168.2.0 TTG2(config-router)# network 192.168.4.0 TTG2(config-router)#exit Router TTG3 : Router>enable Router#configure terminal Router(config)#hostname TTG3 TTG3(config)#interface loopback TTG3(config-if)#ip address 192.168.3.1 255.255.255.0 TTG3(config-if)#exit TTG3(config)#interface s0/1/0 TTG3(config-if)#encapsulation frame-relay TTG3(config-if)#no shutdown TTG3(config-if)#exit TTG3(config)#interface Serial0/1/0.301 point-to-point TTG3(config-if)# ip address 192.168.5.2 255.255.255.0 TTG3(config-if)# frame-relay interface-dlci 301 TTG3(config-if)#exit TTG3(config)#router eigrp 100 TTG3(config-router)# network 192.168.3.0 TTG3(config-router)# network 192.168.5.0 TTG3(config-router)#exit - Chúng kiểm tra route map router câu lệnh sau : TTG1#show frame-relay map Serial0/1/0.103 (up): point-to-point dlci, dlci 103(0x35,0xC50), broadcast status defined, active Serial0/1/0.102 (up): point-to-point dlci, dlci 102(0x34,0xC40), broadcast status defined, active - Sử dụng câu lệnh show frame-relay pvc để kiểm tra đường PVC TTG2#sh frame-relay pvc PVC Statistics for interface Serial0/1/0 (Frame Relay DTE) DLCI = 201, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/1/0 input pkts output pkts 14 in bytes 1448 out bytes 2572 dropped pkts in FECN pkts in BECN pkts out FECN pkts in DE pkts out DE pkts out bcast pkts 14 out bcast bytes 2572 out BECN pkts pvc create time 00:17:21, last time pvc status changed 00:04:16 - Chúng ta sử dụng câu lệnh sau để xem thông tin LMI TTG1#sh frame-relay lmi LMI Statistics for interface Serial0/1/0 (Frame Relay DTE) LMI TYPE = ANSI Invalid Unnumbered info Invalid Prot Disc Invalid dummy Call Ref Invalid Msg Type Invalid Status Message Invalid Lock Shift Invalid Information ID Invalid Report IE Len Invalid Report Request Invalid Keep IE Len Num Status Enq Sent 74 Num Status msgs Rcvd 37 Num Update Status Rcvd Num Status Timeouts 37 FRSwitch#show frame-relay pvc PVC Statistics for interface Serial0/1/0 (Frame Relay DCE) DLCI = 102, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/1/0 input pkts 16 output pkts 17 in bytes 1590 out bytes 1621 dropped pkts in FECN pkts in BECN pkts out FECN pkts out BECN pkts in DE pkts out DE pkts out bcast pkts out bcast bytes Num Pkts Switched 16 pvc create time 00:06:22, last time pvc status changed 00:07:02 DLCI = 103, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/1/0 input pkts17 output pkts 16 in bytes 1620 out bytes 1590 dropped pkts in FECN pkts in BECN pkts out FECN pkts out BECN pkts in DE pkts out bcast pkts out DE pkts out bcast bytes Num Pkts Switched 17 pvc create time 00:06:13, last time pvc status changed 00:09:19 PVC Statistics for interface Serial0/1/1 (Frame Relay DCE) DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/1/1 - Đối với lệnh show frame pvc ta cần ý chế độ sau PVC status : ACTIVE : Cả đầu Frame relay PVC trạng thái hoạt động INACTIVE : Đầu Frame relay đầu bên router có vấn đề cấu hình, đầu Frame Relay router hoạt động tốt DELETED : Vấn đề xảy với Router LMI chưa hoạt động - Bây kiểm tra trạng thái cổng: TTG2#show ip interface brief Interface IP-Address OK? Method Status Protocol Loopback0 192.168.2.1 YES manual up up Serial0/1/0 unassigned YES unset up up Serial0/1/0.201 192.168.4.2 YES manual up up Serial0/1/1 unassigned YES unset administratively down down TTG2#show frame-relay map Serial0/1/0.201 (up): point-to-point dlci, dlci 201(0x33,0xC30), broadcast status defined, active - Chúng ta kiểm tra lại bảng định tuyến router: TTG2#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - IGRP, EX - IGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set C 192.168.4.0/24 is directly connected, Serial0/1/0.201 D 192.168.5.0/24 [90/10476] via 192.168.4.1, 00:00:25, Serial0/1/0.201 D 192.168.1.0/24 [90/8976] via 192.168.4.1, 00:00:25, Serial0/1/0.201 C 192.168.2.0/24 is directly connected, Loopback0 D 192.168.3.0/24 [90/10976] via 192.168.4.1, 00:00:25, Serial0/1/0.201 TTG2#ping 192.168.4.2 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.168.4.2, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 116/118/128 ms TTG2#ping 192.168.4.1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.168.4.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/64/80 ms TTG3#ping 192.168.5.1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.168.5.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms - TTG2#ping 192.168.3.1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 116/116/120 ms - Như ta hoàn thành việc định tuyến mạng Frame Relay Một số lệnh liên quan đến lab : Router (config)#interface Serial0/1/0.102 Tạo subinterface point-to-point có point-to-point số 103 Router (config-if)# ip address 192.168.4.2 255.255.255.0 Gán địa IP subnet mask cho Router (config-if)# frame-relay interface-dlci 102 Gán giá trị DLCI cho subinterface subinterface ... bits/sec, packets/sec minute output rate bits/sec, packets/sec packets input, 22 bytes, no buffer Received broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort packets... Conversations 0/0 (allocated/max allocated) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 15 packets input, 846 bytes, no buffer Received 15 broadcasts, runts, giants,... strategy: fifo Output queue :0/40 (size/max) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 21 packets input, 2010 bytes, no buffer Received 21 broadcasts, runts,

Ngày đăng: 20/05/2018, 20:19

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan