1. Trang chủ
  2. » Công Nghệ Thông Tin

GIÁO TRÌNH CCNA PHẦN 5

42 158 0

Đ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

Nội dung

CCNA Tài liӋu dành cho hӑc viên Ph̯n : WAN BÀI 26: CҨU HÌNH PPP PAP VÀ CHAP Giӟi thiӋu : PPP (Point-to-Point Protocol) giao thӭc ÿóng gói ÿѭӧc sӱ dөng ÿӇ thӵc hiӋn kӃt nӕi mҥng WAN PPP bao gӗm LCP (Link Control Protocol) NCP (Network Control Protocol) LCP ÿѭӧc 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ó thӇ ÿѭӧc cҩu hình interface vұt lý sau : Asynchronous serial : cӗng serial bҩt ÿӗng bӝ Synchronous serial : cәng serial ÿӗng bӝ High-Speed Serial Interface (HSSI) : cәng serial tӕc ÿӝ cao Integrated Services Digital Network (ISDN) Quá trình tҥo session cӫa 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 hѫn 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 sӁ gӱi usename password lһp ÿi lһp lҥi cho ÿӃn nhұn ÿѭӧc thông báo chҩp nhұn hoһc tӯ chӕi Password PAP ÿѭӧc gӱi ÿ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 sӁ gӱi thông ÿiӋp “challenge” cho router ÿҫu xa Router ÿҫu xa sӁ gӱi lҥi mӝt giá trӏ ÿѭӧc tính toán dӵa password thông ÿiӋp “challenge” cho router Khi nhұn ÿѭӧc giá trӏ này, router sӁ kiӇm tra lҥi xem có giӕng vӟi giá trӏ cӫa ÿã tính hay không NӃu ÿúng, router xem gӫi xác nhұn ÿúng kӃt nӕi ÿѭӧc thiӃt lұp; ngѭӧc lҥi, kӃt nӕi sӁ bӏ ngҳt lһp tӭc 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 ppp authentication (chap chap pap pap chap pap) Cҩu hình cho interface sӱ dөng PAP, CHAP, hoһc cҧ hai Trong trѭӡng hӧp cҧ hai ÿѭӧc sӱ dөng, giao thӭc ÿҫu tiên ÿѭӧc sӱ dөng trình xác nhұn; nӃu nhѭ giao thӭc ÿҫu bӏ tӯ chӕi hoһc router ÿҫu xa yêu cҫu dùng giao thӭc thӭ hai giao thӭc thӭ hai ÿѭӧc 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 cӫa PAP CHAP VSIC Education Corporation Trang 164 CCNA Tài liӋu dành cho hӑc viên Mô tҧ lab ÿӗ hình : Ĉӗ hình lab nhѭ hình vӁ Hai router ÿѭӧc ÿһt tên Vsic, Vsic2 ÿѭӧc nӕi vӟi bҵng cáp serial Ĉӏa chӍ IP cӫa interface nhѭ hình Cҩu hình router : a) Bѭӟc : Ĉ̿t tên ÿ͓a ch͑ cho interface Vsic1#sh run Building configuration Current configuration : 497 bytes version 12.1 hostname Vsic1 enable password cisco interface Serial0 ip address 192.168.1.1 255.255.255.0 clockrate 64000 end Vsic2#sh run Building configuration Current configuration : 423 bytes version 12.1 hostname Vsic2 enable password cisco interface Serial0 ip address 192.168.1.2 255.255.255.0 end Chúng ta sӁ kiӇm tra trҥng thái cӫa cәng bҵng câu lӋnh show ip interface brief Vsic2#sh ip interface brief Interface IP-Address OK? Method Status Protocol Ethernet0 unassigned YES unset administratively down down Serial0 192.168.1.2 YES manual up up Serial1 unassigned YES unset administratively down down Cәng serial cӫa router Vsic2 ÿã up Làm tѭѫng tӵ ÿӇ kiӇm tra trҥng thái cәng cӫa router Vsic1 Chúng ta sӱ dөng câu lӋnh show interfaces serial ÿӇ biӃt ÿѭӧc thông sӕ cӫa interface serial router Vsic2#sh interfaces serial VSIC Education Corporation Trang 165 CCNA Tài liӋu dành cho hӑc viên Serial0 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 Vsic1#sh int s Serial0 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 VSIC Education Corporation Trang 166 CCNA Tài liӋu dành cho hӑc viên Cҧ hai cәng serial cӫa hai router ÿӅu sӱ dөng giao thӭc ÿóng gói HDLC trҥng thái cӫa cҧ hai ÿӅu up b) Bѭӟc : C̭u hình PPP PAP, CHAP Cҩu hình PPP PAP Ĉӭng ӣ router Vsic1, sӁ cҩu hình PPP cho interface serial bҵng câu lӋnh encapsulation ppp Vsic1(config)#in s0 Vsic1(config-if)#encapsulation ppp KiӇm tra trҥng thái interface serial cӫa router Vsic1 Vsic1#sh ip int brie Interface IP-Address OK? Method Status Protocol Ethernet0 unassigned YES unset administratively down down Serial0 192.168.1.1 YES manual up down Serial1 unassigned YES unset administratively down down Vsic1#sh int s Serial0 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 serial cӫa router Vsic1 ÿã bӏ down, ÿӗng nghƭa vӟi interface serial cӫa router Vsic2 cNJng bӏ down Nguyên nhân hai interface sӱ dөng giao thӭc ÿóng gói khác (Interface serial cӫa router Vsic1 sӱ dөng PPP Vsic2 sӱ dөng HDLC) Ví vұy phҧi cҩu hình cho interface serial cӫa router Vsic2 cNJng sӱ dөng giao thӭc PPP Vsic2(config)#in s0 VSIC Education Corporation Trang 167 CCNA Tài liӋu dành cho hӑc viên Vsic2(config-if)#encapsulation ppp Bây giӡ sӁ kiӇm tra trҥng thái cӫa interface Vsic2#sh int s0 Serial0 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 cӫa hai router ÿã up trӣ lҥi Do cҧ hai ÿã ÿѭӧc 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 cӫa PAP Vsic2#debug ppp authentication PPP authentication debugging is on Chúng ta sӁ cҩu hình PAP cho cҧ hai interface serial nhѭ sau : Vsic1(config)#username Vsic2 password cisco Vsic1(config)#in s0 Vsic1(config-if)#ppp authentication pap Vsic1(config-if)#ppp pap sent-username Vsic1 password cisco Vsic2(config)#username Vsic1 password cisco Vsic2(config)#in s0 Vsic2(config-if)#ppp authentication pap Vsic2(config-if)#ppp pap sent-username Vsic2 password cisco Lѭu ý : Trong câu lӋnh username name password password , name password phҧi trùng vӟi name password cӫa router ÿҫu xa VSIC Education Corporation Trang 168 CCNA Tài liӋu dành cho hӑc viên Còn câu lӋnh ppp pap sent-username name password password , name password cӫa router cҩu hình Sau cҩu hình PAP xong route Vsic2, hình sӁ xuҩt hiӋn trình tӵ cӫa PAP 00:09:49: Se0 PPP: Phase is AUTHENTICATING, by both 00:09:49: Se0 PAP: O AUTH-REQ id len 18 from "Vsic2" 00:09:49: Se0 PAP: I AUTH-REQ id len 18 from "Vsic1" 00:09:49: Se0 PAP: Authenticating peer Vsic1 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, changed state to up Ý nghƭa cӫa thông báo : Dòng thông báo : PPP thӵc hiӋn xác nhұn hai chiӅu Dòng thông báo : Vsic2 gӱi yêu cҫu xác nhұn Dòng thông báo : Nhұn yêu cҫu xác nhұn tӯ Vsic1 Dòng thông báo : Nhұn xác nhұn cӫa Vsic1 Dòng thông báo : Gӱi xác nhұn ÿúng ÿӃn Vsic1 Dòng thông báo : Nhұn xác nhұn ÿúng tӯ Vsic1 Dòng thông báo : Trҥng thái cӫa interface ÿѭӧc chuyӇn sang UP Nhѭ vұy hai interface cӫa router Vsic1 Vsic2 ÿã up Chúng ta ÿӭng ӣ router Vsic2 ping interface serial cӫa router Vsic1 ÿӇ kiӇm tra Vsic2#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 ӣ cҧ hai router Vsic1(config)#in s0 Vsic1(config-if)#no ppp authentication pap Vsic1(config-if)#no ppp pap sent-username Vsic1 password cisco Vsic2(config)#in s0 Vsic2(config-if)#no ppp authentication pap Vsic2(config-if)#no ppp pap sent-username Vsic2 password cisco Bây giӡ sӁ cҩu hình CHAP bҵng câu lӋnh ppp authentication chap Vsic1(config)#in s0 Vsic1(config-if)#ppp authentication chap Vsic2(config)#in s0 Vsic2(config-if)#ppp authentication chap Lѭu ý : cҩu hình PPP CHAP vүn phҧi cҩu hình cho interface serial ÿó sӱ dөng giao thӭc ÿóng gói PPP bҵng câu lӋnh encapsulation ppp cNJng phҧi sӱ dөng câu lӋnh VSIC Education Corporation Trang 169 CCNA Tài liӋu dành cho hӑc viên username name password password ÿӇ cҩu hình name password cho giao thӭc CHAP thӵc hiӋn xác nhұn Ӣ ÿây, không thӵc hiӋn lҥi câu lӋnh ÿó ӣ bѭӟc cҩu hình PAP ÿã thӵc hiӋn rӗi Do ÿã sӱ dөng câu lӋnh debug ppp authentication ӣ router Vsic2, nên cҩu hình CHAP xong ӣ hai router hình sӁ hiӋn thông báo nhѭ sau : (console ÿ˱ͫc n͙i vͣi router Vsic2) 00:15:08: Se0 CHAP: O CHALLENGE id len 28 from "Vsic2" 00:15:08: Se0 CHAP: I CHALLENGE id len 28 from "Vsic1" 00:15:08: Se0 CHAP: O RESPONSE id len 28 from "Vsic2" 00:15:08: Se0 CHAP: I RESPONSE id len 28 from "Vsic1" 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 Ý nghƭa cӫa câu thông báo : Dòng thông báo : Vsic2 gӱi thông báo “challenge” ÿӃn router Vsic1 Dòng thông báo : Vsic2 nhұn thông báo “challenge” tӯ router Vsic1 Dòng thông báo : Vsic2 gӱi response ÿӃn router Vsic1 Dòng thông báo : Vsic2 nhұn response tӯ router Vsic1 Dòng thông báo : Vsic2 gӱi xác nhұn thành công ÿӃn Vsic1 Dòng thông báo : Vsic2 nhұn xác nhұn thành công tӯ Vsic1 Dòng thông báo : Trҥng thái cӫa interface serial ÿѭӧc chuyӇn sang UP Hai interface serial cӫa router Vsic1 Vsic2 ÿã UP, ÿӭng ӣ router Vsic2 ping ÿӃn interface serial cӫa router Vsic1 ÿӇ kiӇm tra Vsic2#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 NӃu nhѭ name password câu lӋnh username name password password không ÿúng trҥng thái cӫa interface sӁ bӏ down Do trình xác nhұn giӳa hai interface sӁ sӱ dөng name password NӃu nhѭ không khӟp kӃt nӕi sӁ bӏ hӫy Tѭ thӵc hành bҵng Dynagen: Ĉây sѫ ÿӗ ÿѫn giҧn, hӑc viên chӍ cҫn chҥy file lab26ppp.net ÿӇ thӵc hành VSIC Education Corporation Trang 170 CCNA Tài liӋu dành cho hӑc viên BÀI 27:CҨU HÌNH ISDN BASIC Giӟi thiӋu : ISDN (Integrated Services Digital Network) mӝt công nghӋ truyӅn dүn tӕc ÿӝ cao quay sӕ ÿѭӧc sӱ dөng rӝng rãi HӋ thӕng mҥng ÿѭӧc tҥo cach ÿây 20 năm ÿѭѫc ӭng dөng rӝng rãi tҥi U.S.A ÿҫu năm 1990 ISDN l mҥng phөc vө cho viêc truyӅn dүn dӳ liӋu sӕ mӝt mҥng ISDN BRI ÿҥt tiêu chuҭn có thӇ ÿҥt tӟi tӕc ÿӝ 128Kbps Dӳ liӋu ÿѭӧc up lên sau mӛi 10 giây mҥng ISDN cho phép truyӅn dүn tín hiӋu sӕ,các kênh sӕ ÿӗng thӡi dây ÿiӋn thoҥi analog thông thѭӡng ÿҫu bên ÿѭӧc giҧi mã qua modem hay thiӃt bӏ khác Mô tҧ lab ÿӗ hình : Trong sӁ sӱ dөng mӝt thiӃt bӏ mô phӓng ISDN Chúng ta sӁ nӕi hai router vào thiӃt bӏ ÿó bҵng cáp thҷng Cҩu hình : a Cҩu hình cho router Vsic2: Router#conf t Enter configuration commands, one per line End with CNTL/Z Router(config)#hostname Vsic2 Vsic2(config)#isdn switch-type basic-ni c̭u hình lo̩i ISDN switch Vsic2(config)#dialer-list protocol ip permit Vsic2(config)#username Vsic1 password cisco Vsic2(config)#interface bri Vsic2(config-if)#encapsulation ppp c̯u hình giao thͱc ÿóng gói PPP Vsic2(config-if)#ip address 200.10.1.2 255.255.255.0 Vsic2(config-if)#isdn spid1 21 21 S͙ SPID number 21 –phone numbers 21 Vsic2(config-if)#dialer-group Vsic2(config-if)#dialer map ip 200.10.1.1 name Vsic1 broadcast 11 c̭u hình s͙ cͯa router ÿ̯u xa ÿ͋ Ahena2 th͹c hi͏n cu͡c g͕i Vsic2(config-if)#ppp authentication chap c̭u hình PPP CHAP Vsic2(config-if)#no shut Vsic2(config-if)# b Cҩu hình cho router Vsic1 : Router(config)#hostname Vsic1 Vsic1(config)#isdn switch-type basic-ni VSIC Education Corporation Trang 171 CCNA Tài liӋu dành cho hӑc viên Vsic1(config)#dialer-list protocol ip permit Vsic1(config)#username Vsic2 password cisco Vsic1(config)#interface bri Vsic1(config-if)#encapsulation ppp Vsic1(config-if)# Vsic1(config-if)#ip address 200.10.1.1 255.255.255.0 Vsic1(config-if)#isdn spid1 11 11 Vsic1(config-if)#dialer-group Vsic1(config-if)#dialer map ip 200.10.1.2 name Vsic2 broadcast 21 Vsic1(config-if)#ppp authentication chap Vsic1(config-if)#no shut Sau cҩu hình xong kiӇm tra lҥi bҵng cách : Vsic2#sh run Building configuration Current configuration : 726 bytes ! version 12.1 ! hostname Vsic2 ! username Vsic1 password cisco ! ip subnet-zero ! isdn switch-type basic-ni ! interface BRI0 ip address 200.10.1.2 255.255.255.0 encapsulation ppp dialer map ip 200.10.1.1 name Vsic1 broadcast 11 dialer-group isdn switch-type basic-ni isdn spid1 21 ppp authentication chap ! dialer-list protocol ip permit end Vsic2#sh interfaces bri BRI0 is up, line protocol is up (spoofing) Hardware is BRI Internet address is 200.10.1.2/24 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, loopback not set Last input never, output 00:00:22, output hang never Last clearing of "show interface" counters 00:18:04 VSIC Education Corporation Trang 172 CCNA Tài liӋu dành cho hӑc viên 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/16 (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 packets input, bytes, no buffer Received broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 10 packets output, 80 bytes, underruns output errors, collisions, interface resets output buffer failures, output buffers swapped out 111 carrier transitions Chúng ta kiӇm tra trҥng thái kӃt nӕi cӫa liên kӃt ISDN bҵng câu lӋnh sau : Vsic1#sh isdn status Global ISDN Switchtype = basic-net3 ISDN BRI0 interface dsl 0, interface ISDN Switchtype = basic-net3 Layer Status: ACTIVE Layer Status: TEI = 64, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED Layer Status: Active Layer Call(s) Active dsl CCBs = The Free Channel Mask: 0x80000003 Number of L2 Discards = 0, L2 Session ID = 13 Total Allocated ISDN CCBs = Vsic2#sh isdn status Global ISDN Switchtype = basic-net3 ISDN BRI0 interface dsl 0, interface ISDN Switchtype = basic-net3 Layer Status: ACTIVE Layer Status: TEI = 67, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED Layer Status: Active Layer Call(s) Active dsl CCBs = The Free Channel Mask: 0x80000003 Number of L2 Discards = 0, L2 Session ID = Total Allocated ISDN CCBs = N͇u c̭u hình ÿúng tr̩ng thái cͯa Layer ACTIVE Layer MULTIPLE_FRAME_ESTABLISHED VSIC Education Corporation Trang 173 CCNA Tài liӋu dành cho hӑc viên BÀI 29: CҨU HÌNH FRAME RELAY CĂN BҦN Giӟi thiӋu : Frame Relay kӻ thuұt mӣ rӝng cӫa kӻ thuұt ISDN Frame relay sӱ dөng kӻ thuât chuyӇn mҥch gói ÿӇ thiӃt lұp mӝt mҥng WAN Frame Relay tҥo nhӳng ÿѭӡng kӃt nӕi ҧo ÿӇ nӕi mҥng LAN lҥi vӟi tҥo thành mӝt mҥng WAN Mҥng Frame Relay sӱ dөng switch ÿӇ kӃt nӕi mҥng lҥi vӟi Kӻ thuұt Frame Relay ÿѭӧc sӱ dөng rӝng rãi ngày nay, có giá thành rҿ hѫn rҩt nhiӅu so vӟi leased line Frame Relay hoҥt ÿӝng ӣ lӟp Data link OSI sӱ dөng giao thӭc LAPF (Link Access Procedure for Frame Relay) Frame Relay sӱ dөng frame ÿӇ chuyӇn dӳ liӋu qua lҥi giӳa thiӃt bӏ ÿҫu cuӕi cӫa user (DTE) thông qua thiӃt bӏ DCE cӫa mҥng Frame Relay Ĉѭӡng kӃt nӕi giӳa hai DTE thông qua mҥng Frame Relay ÿѭӧc gӑi mӝt mҥch ҧo (VC : Virtual Circuit) Các VC ÿѭӧc thiӃt lұp bҵng cách gӱi thông ÿiӋp báo hiӋu (signaling message) ÿӃn mҥng; ÿѭӧc gӑi switched virtual circuits (SVCs) Nhѭng ngày nay, ngѭӡi ta thѭӡng sӱ dөng permanent virtual circuits (PVCs) ÿӇ tҥo kӃt nӕi PVC ÿѭӡng kӃt nӕi ÿѭӧc cҩu hình trѭӟc bӣi Frame Relay Switch thông tin chuyӇn mҥch cӫa gói ÿѭӧc lѭu switch Trong Frame Relay, nӃu mӝt frame bӏ lӛi sӁ bӏ hӫy mà mӝt thông báo Các router nӕi vӟi mҥng Frame Relay có thӇ có nhiӅu ÿѭӡng kӃt nӕi ҧo ÿӃn nhiӅu mҥng khác Do ÿó, Frame Relay giúp tiӃt kiӋm rҩt nhiӅu không cҫn mҥng phҧi liên kӃt trӵc tiӃp vӟi Các ÿѭӡng kӃt nӕi ҧo (VC) có DLCI (Data Link Channel Identifier) cӫa riêng DLCI ÿѭӧc chӭa frame ÿѭӧc chuyӇn ÿi mҥng Frame Relay Trong Frame Relay, ngѭӡi ta thѭӡng sӱ dөng mҥng hình ÿӇ kӃt nӕi mҥng LAN vӟi hình thành mӝt mҥng WAN (ÿѭӧc gӑi hub and spoke topology) ÿӗ hình này, mҥng trung tâm ÿѭӧc gӑi hub, mҥng remote1, remote2, remote3, remote4 remote5 ÿѭӧc gӑi spoke Mӛi spoke nӕi vӟi hub bҵng mӝt ÿѭӡng kӃt nӕi ҧo (VC) Trong ÿӗ hình nӃu ta muӕn spoke có thӇ liên lҥc ÿѭӧc vӟi chӍ cҫn tҥo VSIC Education Corporation Trang 191 CCNA Tài liӋu dành cho hӑc viên VC giӳa spoke vӟi Ĉӗ hình giúp ta tҥo mӝt mҥng WAN có giá thành rҿ hѫn rҩt nhiӅu so vӟi sӱ dөng leased line, mҥng chӍ cҫn mӝt ÿѭӡng nӕi vӟi mҥng Frame Relay Frame Relay sӱ dөng split horizon ÿӇ chӕng lһp Split horizon không cho phép routing update trҧ ngѭӧc vӅ interface gӱi Vì frame relay, có thӇ tҥo nhiӅu ÿѭӡng PVC mӝt interface vұt lý, ÿó sӁ bӏ lһp nӃu split horizon Trong mҥng WAN sӱ dөng leased line, DTE ÿѭӧc nӕi trӵc tiӃp vӟi nhѭng mҥng sӱ dөng Frame Relay, DTE ÿѭӧc nӕi vӟi thông qua mӝt mҥng Frame Relay gӗm nhiӅu Switch Do ÿó phҧi map ÿӏa chӍ lӟp mҥng Frame Relay vӟi ÿӏa chӍ IP cӫa DTE ÿҫu xa Chúng ta có thӇ map bҵng cách sӱ dөng câu lӋnh Nhѭng viӋc có thӇ ÿѭӧc thӵc hiӋn tӵ ÿӝng bҵng LMI Inverse ARP LMI (Local Management Interface) ÿѭӧc trao ÿәi giӳa DTE DCE (Frame Relay switch), ÿѭӧc dùng ÿӇ kiӇm tra hoҥt ÿӝng thông báo tình trҥng cӫa VC, ÿiӅu khiӇn luӗng, cung cҩp sӕ DLCI cho DTE LMI có nhiӅu loҥi : cisco (chuҭn riêng cӫa Cisco), ansi (theo chuҭn ANSI Annex D) q933a (theo chuҭn ITU q933 Annex A) Khi router mӟi ÿѭӧc nӕi vӟi mҥng Frame Relay, router sӁ gӱi LMI ÿӃn mҥng ÿӇ hӓi tình trҥng Sau ÿó mҥng sӁ gӱi lҥi router mӝt thông ÿiӋp LMI vӟi thông sӕ cӫa ÿѭӡng VC ÿã ÿѭӧc cҩu hình Khi router muӕn map mӝt VC vӟi ÿӏa chӍ lӟp mҥng, router sӁ gӱi thông ÿiӋp Inverse ARP bao gӗm ÿӏa chӍ lӟp mҥng (IP) cӫa router ÿѭӡng VC ÿó ÿӃn vӟi DTE ÿҫu xa DTE ÿҫu xa sӁ gӱi lҥi mӝt Inverse ARP bao gӗm ÿӏa chӍ lӟp mҥng cӫa nó, tӯ ÿó router map ÿӏa chӍ vӟi sӕ DLCI cӫa VC Các câu lӋnh sӱ dөng lab : encapsulation frameírelay [cisco | ietf] Cҩu hình giao thӭc ÿóng gói Frame Relay cho interface Router hә trӧ hai loҥi ÿóng gói Frame Relay Cisco ietf 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ò mӝt frame relay switch frameírelay lmiítype {ansi | cisco | q933a} Cҩu hình loҥi LMI sӱ dөng cho router frameírelay route inídlci outíinterface outídlci Tҥo PVC giӳa interface router ÿóng vai trò mӝt frame relay switch frameírelay switching Cҩu hình cho router hoҥt ÿӝng nhѭ mӝt frame relay switch show frameírelay pvc [type number [dlci]] Xem thông sӕ cӫa ÿѭӡng PVC ÿѭӧc cҩu hình trêm router show frameírelay route Xem tình trҥng cNJng nhѭ thông sӕ ÿã ÿѭӧc cҩu hình cho ÿѭӡng PVC Câu lӋnh ÿѭӧc sӱ dөng cho router ÿóng vai trò frame relay switch show frameírelay map Xem thông sӕ vӅ map giӳa DLCI ÿҫu gҫn vӟi IP ÿҫu xa show frameírelay lmi [type number] Xem thông sӕ cӫa LMI giӳa router vӟi Frame relay switch VSIC Education Corporation Trang 192 CCNA Tài liӋu dành cho hӑc viên Mô tҧ lab ÿӗ hình : Ĉӗ hình lab nhѭ hình Router FrameSwitch ÿѭӧc cҩu hình mӝt frame relay switch Hai ÿҫu cáp serial nӕi vӟi router FrameSwitch DCE Router VSIC1 VSIC2 sӱ dөng giao thӭc RIP Cҩu hình router : Chúng ta cҩu hình cho interface cӫa router VSIC1 VSIC2 nhѭ sau : VSIC1#sh run Building configuration Current configuration : 599 bytes version 12.1 hostname VSIC1 interface Loopback0 ip address 10.1.0.1 255.255.255.0 interface Serial0 ip address 192.168.1.1 255.255.255.0 router rip network 10.0.0.0 network 192.168.1.0 end VSIC2#sh run Building configuration Current configuration : 601 bytes version 12.1 hostname VSIC2 interface Loopback0 ip address 11.1.0.1 255.255.255.0 interface Serial0 ip address 192.168.1.2 255.255.255.0 router rip VSIC Education Corporation Trang 193 CCNA Tài liӋu dành cho hӑc viên network 11.0.0.0 network 192.168.1.0 end Chúng ta tiӃn hành cҩu hình frame realy cho hai router VSIC1 VSIC2 VSIC1(config)#in s0 VSIC1(config-if)#encapsulation frame-relay S͵ dͭng giao thͱc ÿóng gói Frame Relay cho interface S0 VSIC1(config-if)#frame-relay lmi-type ansi C̭u hình ki͋u cͯa LMI ANSI VSIC2(config)#in s0 VSIC2(config-if)#encapsulation frame-relay VSIC2(config-if)#frame-relay lmi-type ansi Sau cҩu hình frame relay cho router VSIC1 VSIC2, sӁ cҩu hình cho router FrameSwitch trӣ thành mӝt frame relay switch nhѭ sau : FrameSwitch(config)#frame-relay switching C̭u hình cho router trͧ thành m͡t Frame Relay Switch FrameSwitch(config)#in s0 FrameSwitch(config-if)#encapsulation frame-relay FrameSwitch(config-if)#frame-relay lmi-type ansi FrameSwitch(config-if)#frame-relay intf-type dce C̭u hình interface serial Frame Relay DCE FrameSwitch(config-if)#clock rate 64000 Cung c̭p xung clock 64000 bps cho DTE FrameSwitch(config-if)#frame-relay route 102 interface s1 201 FrameSwitch(config-if)#no shut FrameSwitch(config)#in s1 FrameSwitch(config-if)#encapsulation frame-relay FrameSwitch(config-if)#frame-relay lmi-type ansi FrameSwitch(config-if)#frame-relay intf-type dce FrameSwitch(config-if)#clock rate 64000 FrameSwitch(config-if)#frame-relay route 201 interface s0 102 FrameSwitch(config-if)#no shut Câu lӋnh frame-relay route 102 interface s1 201 có ý nghƭa : bҩt kǤ mӝt frame relay traffic có DLCI 102 ÿӃn interface serial cӫa router sӁ ÿѭӧc gӱi interface serial vӟi DLCI 201 Tѭѫng tӵ cho câu lӋnh frame-relay route 201 interface s0 102 : bҩt kǤ frame relay traffic có DCLI 201 ÿӃn interface serial sӁ ÿѭӧc gӱi serial vӟi DLCI 102 Hai câu lӋnh ÿѭӧc sӱ dөng ÿӇ tҥo mӝt PVC giӳa S0 S1 ĈӇ kiӇm tra xem router FrameSwitch có hoҥt ÿӝng nhѭ mӝt frame relay switch hay chѭa sӱ dөng câu lӋnh show frame-relay pvc FrameSwitch#sh frame-relay pvc PVC Statistics for interface Serial0 (Frame Relay DCE) Active Inactive Deleted Static Local 0 0 Switched 0 Unused 0 0 VSIC Education Corporation Trang 194 CCNA Tài liӋu dành cho hӑc viên DLCI = 102, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0 input pkts output pkts in bytes 186 out bytes 166 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 pvc create time 00:01:04, last time pvc status changed 00:00:40 PVC Statistics for interface Serial1 (Frame Relay DCE) Local Switched Unused Active Inactive 0 Deleted 0 Static 0 DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1 input pkts output pkts in bytes 200 out bytes 186 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 pvc create time 00:00:45, last time pvc status changed 00:00:43 DLCI USAGE chӍ cho ta biӃt hai interface S0, S1 hoҥt ÿӝng ӣ chӃ ÿӝ frame relay switch ÿã ACTIVE Ĉӗng thӡi thông báo cӫa câu lӋnh cho ta biӃt ÿѭӧc sӕ gói ÿã ÿѭӧc chuyӇn mҥch qua interface (Num Pkts Switched 3) Nhѭ vұy, tӯ kӃt quҧ ta biӃt ÿѭӧc rҵng router FrameSwitch ÿang hoҥt ÿӝng nhѭ mӝt Frame Relay Switch Chúng ta sӁ kiӇm tra tình trҥng cӫa LMI giӳa router FrameSwitch hai router VSIC1, VSIC2 bҵng câu lӋnh show frame lmi FrameSwitch#show frame lmi LMI Statistics for interface Serial0 (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 Serial1 (Frame Relay DCE) LMI TYPE = ANSI Invalid Unnumbered info Invalid Prot Disc Invalid dummy Call Ref Invalid Msg Type VSIC Education Corporation Trang 195 CCNA Tài liӋu dành cho hӑc viên Invalid Status Message Invalid Information ID Invalid Report Request Num Status Enq Rcvd 16 Num Update Status Sent Invalid Lock Shift Invalid Report IE Len Invalid Keep IE Len Num Status msgs Sent 16 Num St Enq Timeouts Câu lӋnh cho ta biӃt ÿѭӧc thông tin cӫa tҩt cҧ interface cӫa router hoҥt ÿӝng ӣ chӃ ÿӝ Frame relay (Ӣ ÿây interface S0 S1) Bây giӡ sӁ kiӇm tra frame relay route router Frameswitch bҵng câu lӋnh show frame route FrameSwitch#sh frame-relay route Input Intf Input Dlci Output Intf Output Dlci Status Serial0 102 Serial1 201 active Serial1 201 Serial0 102 active KӃt quҧ câu lӋnh cho biӃt rҵng traffic ÿӃn interface serial vӟi DLCI 102sӁ ÿѭӧc chuyӇn mҥch qua serial vӟi DLCI 201; ngѭӧc lҥi, traffic ÿӃn serial vӟi DLCI 201 sӁ ÿѭӧc chuyӇn mҥch qua serial vӟi DLCI 102 Ĉӗng thӡi câu lӋnh cNJng chӍ cҧ hai DLCI ÿӅu hoҥt ÿӝng ChuyӇn sang router VSIC1, sӁ kiӇm tra xem DLCI 102 interface serial có hoҥt ÿӝng hay chѭa bҵng cách : VSIC1#sh frame-relay pvc PVC Statistics for interface Serial0 (Frame Relay DTE) Active Inactive Deleted Local 0 Switched 0 Unused 0 Static 0 DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0 input pkts output pkts in bytes 646 out bytes 570 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 570 pvc create time 00:02:58, last time pvc status changed 00:02:38 Nhұn xét : Interface serial cӫa router VSIC1 hoҥt ÿӝng nhѭ mӝt frame relay DTE, DLCI 102 ÿã hoҥt ÿӝng Mһc ÿӏnh Cisco sӱ dөng Inverse ARP ÿӇ map ÿӏa chӍ IP ÿҫu xa cӫa PVC vӟi DLCI cӫa interface ÿҫu gҫn Do ÿó không cҫn phҧi thӵc hiӋn thêm bѭӟc ĈӇ kiӇm tra viӋc sӱ dөng câu lӋnh show frame-relay map VSIC1#sh frame-relay map Serial0 (up): ip 192.168.1.2 dlci 102(0xC9,0x3090), dynamic, broadcast, status defined, active VSIC Education Corporation Trang 196 CCNA Tài liӋu dành cho hӑc viên KӃt quҧ câu lӋnh cho ta biӃt, DLCI 102 hoҥt ÿӝng interface serial ÿѭӧc map vӟi ÿӏa chӍ IP 102.168.1.2 cӫa interface serial VSIC2, viӋc map tӵ ÿӝng Lһp lҥi bѭӟc tѭѫng tӵ ÿӇ kiӇm tra cho router VSIC2 VSIC2#sh frame-relay pvc PVC Statistics for interface Serial0 (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 input pkts 10 output pkts 11 in bytes 858 out bytes 934 dropped pkts in FECN pkts in BECN pkts out FECN pkts out BECN pkts in DE pkts out DE pkts out bcast pkts 11 out bcast bytes 934 pvc create time 00:04:05, last time pvc status changed 00:04:05 VSIC2#sh frame-relay map Serial0 (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 serial cӫa VSIC2 ÿѭӧc map vӟi ÿӏa chӍ IP 192.168.1.1 Bây giӡ sӁ kiӇm tra mҥng có thӇ liên lҥc ÿѭӧc vӟi chѭa bҵng cách lҫn lѭӧt ÿӭng ӣ hai router ping ÿӃn interface loopback cӫa router ÿҫu xa VSIC1#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 VSIC2#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 ÿѭӧc vӟi Và router FrameSwitch ÿã thӵc hiӋn tӕt chӭc frame relay switch Tӵ thӵc hành bҵng Dynagen: Chҥy file lab29frcb.net ÿӇ thӵc hành vӟi sѫ ÿӗ sau: VSIC Education Corporation Trang 197 CCNA Tài liӋu dành cho hӑc viên Ngoài viӋc thӵc hành giӕng nhѭ lab trên,hӑc viên sӱ dөng thêm routing protocol khác ÿӇ nҳm rõ hѫn routing hoҥt ÿӝng môi trѭӡng mҥng Frame Relay VSIC Education Corporation Trang 198 CCNA Tài liӋu dành cho hӑc viên BÀI 30:CҨU HÌNH FRAME RELAY SUBINTERFACE Giӟi thiӋu : Fame relay hҫu nhѭ rҩt phә biӃn công nghӋ WAN Frame Relay cung cҩp nhiӅu hѫn ÿһ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 equepment (DTE) môi trѭӡng Frame relay switch bên phҧi data communication equepmet(DCE) Suninterface hoҥt ÿӝng giӕng nhѭ lease lines mӛi point-to-point suninterface ÿòi hӓi phҧi ÿѭӧc subnet riêng biӋt.Trong thӵc hành ta sӱ dөng mô hình Hub Spoke Trong ÿó Router VSIC HUB Spoke router VSIC VSIC2 Mô tҧ lab ÿӗ hình : Cҩu hình : a) Cҩu hình cho router FR-SWITCHING Building configuration Current configuration : 1044 bytes ! version 12.1 hostname switch ! frame-relay switching ! interface Serial0 no ip address VSIC Education Corporation Trang 199 CCNA Tài liӋu dành cho hӑc viên encapsulation frame-relay no fair-queue clockrate 64000 frame-relay lmi-type ansi frame-relay intf-type dce frame-relay route 52 interface Serial1 51 frame-relay route 53 interface Serial2 51 ! interface Serial1 no ip address encapsulation frame-relay clockrate 64000 frame-relay lmi-type ansi frame-relay intf-type dce frame-relay route 51 interface Serial0 52 ! interface Serial2 no ip address encapsulation frame-relay clockrate 64000 frame-relay lmi-type ansi frame-relay intf-type dce frame-relay route 51 interface Serial0 53 ! interface Serial3 no ip address shutdown ! interface BRI0 no ip address shutdown ! ip classless ip http server line line aux line vty ! end dùng ki͋u frame relay ansi th͹c hi͏n route cho PVC b) Cҩu hình cho router Vsic3 : Current configuration : 685 bytes ! version 12.1 hostname Vsic3 ! interface Loopback0 ip address 192.168.3.1 255.255.255.0 VSIC Education Corporation Trang 200 CCNA Tài liӋu dành cho hӑc viên ! interface Serial0 no ip address encapsulation frame-relay frame-relay lmi-type ansi ! interface Serial0.301 point-to-point ip address 192.168.5.2 255.255.255.0 frame-relay interface-dlci 51 ! router igrp 100 network 192.168.3.0 network 192.168.5.0 ! end c) Cҩu hình cho router VSIC: Building configuration Current configuration : 874 bytes version 12.1 hostname VSIC interface Loopback0 ip address 192.168.1.1 255.255.255.0 ! interface Serial0 no ip address encapsulation frame-relay no fair-queue frame-relay lmi-type ansi ! interface Serial0.102 point-to-point ip address 192.168.4.1 255.255.255.0 frame-relay interface-dlci 52 ! interface Serial0.103 point-to-point ip address 192.168.5.1 255.255.255.0 frame-relay interface-dlci 53 ! router igrp 100 network 192.168.1.0 network 192.168.4.0 network 192.168.5.0 d) Xây dӵng cҩu hình cho router Vsic2 Building configuration Current configuration : 686 bytes ! version 12.1 VSIC Education Corporation Trang 201 CCNA Tài liӋu dành cho hӑc viên hostname Vsic2 ! interface Loopback0 ip address 192.168.2.1 255.255.255.0 ! interface Serial0 no ip address encapsulation frame-relay frame-relay lmi-type ansi ! interface Serial0.201 point-to-point ip address 192.168.4.2 255.255.255.0 frame-relay interface-dlci 51 router igrp 100 network 192.168.2.0 network 192.168.4.0 end Chúng kiӇm tra route map cӫa router bҵng câu lӋnh sau : VSIC#sh frame-relay map Serial0.103 (up): point-to-point dlci, dlci 53(0x35,0xC50), broadcast status defined, active Serial0.102 (up): point-to-point dlci, dlci 52(0x34,0xC40), broadcast status defined, active Nhѭ vұy Sӱ dөng câu lӋnh show frame-relay pvc ÿӇ kiӇm tra ÿѭӡng PVC Vsic2#sh frame-relay pvc PVC Statistics for interface Serial0 (Frame Relay DTE) DLCI = 51, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0.52 input pkts output pkts 14 in bytes 1448 out bytes 2572 dropped pkts in FECN pkts in BECN pkts out FECN pkts out BECN pkts in DE pkts out DE pkts out bcast pkts 14 out bcast bytes 2572 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 vӅ LMI VSIC#sh frame-relay lmi LMI Statistics for interface Serial0 (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 VSIC Education Corporation Trang 202 CCNA Tài liӋu dành cho hӑc viên Num Status Enq Sent 74 Num Update Status Rcvd Num Status msgs Rcvd 37 Num Status Timeouts 37 switch#show frame-relay pvc PVC Statistics for interface Serial0 (Frame Relay DCE) DLCI = 52, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0 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 = 53, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0 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 DE pkts out bcast 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 Serial1 (Frame Relay DCE) DLCI = 51, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1 Ĉӕi vӟi lӋnh show frame pvc ta cҫn ý chӃ ÿӝ sau cӫa PVC status : ACTIVE : Cҧ ÿҫu cӫa Frame relay PVC ӣ trҥng thái hoҥt ÿӝng INACTIVE : Ĉҫu Frame relay cӫa ÿҫu bên cӫa router ÿang có vҩn ÿӅ vӅ cҩu hình, nhѭng tҥi ÿҫu Frame Relay hiӋn tҥi router ÿã hoҥt ÿӝng tӕt DELETED : Vҩn ÿӅ xҧy vӟi Router hiӋn tҥi LMI chѭa hoҥt ÿӝng Bây giӡ sӁ kiӇm tra trҥng thái cӫa cәng: Vsic2#sh ip int brief Interface ocol Loopback0 Serial0 Serial0.201 Serial1 IP-Address 192.168.2.1 unassigned 192.168.4.2 unassigned VSIC Education Corporation OK? Method Status Prot YES manual up up YES unset up up YES manual up up YES unset administratively down down Trang 203 CCNA Tài liӋu dành cho hӑc viên TokenRing0 unassigned YES unset administratively down down Vsic2#sh frame-relay map Serial0.201 (up): point-to-point dlci, dlci 51(0x33,0xC30), broadcast status defined, active Chúng ta kiӇm tra lҥi bҧng ÿӏnh tuyӃn cӫa router: Vsic2#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.201 I 192.168.5.0/24 [100/10476] via 192.168.4.1, 00:00:25, Serial0.201 I 192.168.1.0/24 [100/8976] via 192.168.4.1, 00:00:25, Serial0.201 C 192.168.2.0/24 is directly connected, Loopback0 I 192.168.3.0/24 [100/10976] via 192.168.4.1, 00:00:25, Serial0.201 Vsic2#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 Vsic2#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 Vsic3#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 Vsic2#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 VSIC Education Corporation Trang 204 CCNA Tài liӋu dành cho hӑc viên Nhѭ vұy ta ÿã hoàn thành viӋc ÿӏnh tuyӃn mҥng Frame Relay Tӵ thӵc hành bҵng Dynagen: Sѫ ÿӗ sau chҥy file lab30Frnc.net : Ta cҩu hình router Frame Relay SW, VSIC, VSIC2, VSIC3 giӕng nhѭ Tuy nhiên ӣ nhà hӑc viên nên sӱ dөng nhӳng giao thӭc khác nhѭ EIGRP hay OSPF,RIP Và cҫn phҧi test ÿã ÿӏnh tuyӃn ÿѭӧc hay chѭa VSIC Education Corporation Trang 205 [...]... VSIC1#conf t VSIC1(config)#ip route 13.1.0.0 255 . 255 . 255 .0 192.168.0.2 VSIC1(config)#ip route 14.1.0.0 255 . 255 . 255 .0 192.168.0.2 VSIC1(config)#ip route 15. 1.0.0 255 . 255 . 255 .0 192.168.0.2 VSIC2#conf t VSIC2(config)#ip route 10.1.0.0 255 . 255 . 255 .0 192.168.0.1 VSIC2(config)#ip route 11.1.0.0 255 . 255 . 255 .0 192.168.0.1 VSIC2(config)#ip route 12.1.0.0 255 . 255 . 255 .0 192.168.0.1 Bѭӟc 4 : C̭u hình interesting... basic-net3 interface Loopback0 ip address 13.1.0.1 255 . 255 . 255 .0 interface Loopback1 ip address 14.1.0.1 255 . 255 . 255 .0 interface Loopback2 ip address 15. 1.0.1 255 . 255 . 255 .0 interface BRI0 no ip address encapsulation ppp dialer pool-member 1 isdn switch-type basic-net3 isdn spid1 11 11 ppp authentication chap interface Dialer0 ip address 192.168.0.2 255 . 255 . 255 .0 encapsulation ppp dialer pool 1 dialer remote-name... address 10.1.0.1 255 . 255 . 255 .0 interface Serial0 ip address 192.168.1.1 255 . 255 . 255 .0 router rip network 10.0.0.0 network 192.168.1.0 end VSIC2#sh run Building configuration Current configuration : 601 bytes version 12.1 hostname VSIC2 interface Loopback0 ip address 11.1.0.1 255 . 255 . 255 .0 interface Serial0 ip address 192.168.1.2 255 . 255 . 255 .0 router rip VSIC Education Corporation Trang 193 CCNA Tài liӋu... basic-net3 interface Loopback0 ip address 10.1.0.1 255 . 255 . 255 .0 interface Loopback1 ip address 11.1.0.1 255 . 255 . 255 .0 interface Loopback2 ip address 12.1.0.1 255 . 255 . 255 .0 interface BRI0 no ip address encapsulation ppp dialer pool-member 1 isdn switch-type basic-net3 isdn spid1 21 21 ppp authentication chap interface Dialer1 ip address 192.168.0.1 255 . 255 . 255 .0 encapsulation ppp dialer pool 1 dialer remote-name... version 12.1 hostname VSIC2 enable password cisco interface Loopback0 ip address 13.1.0.1 255 . 255 . 255 .0 interface Loopback1 ip address 14.1.0.1 255 . 255 . 255 .0 interface Loopback2 ip address 15. 1.0.1 255 . 255 . 255 .0 line con 0 line aux 0 line vty 0 4 password cisco login end VSIC Education Corporation Trang 180 CCNA Tài liӋu dành cho hӑc viên Bѭӟc 2: C̭u hình lo̩i ISDN Switch s͵ dͭng và s͙ SPID và ldn... dөng interface dialer 5 Cҩu hình router : Bѭӟc 1: c̭u hình tên router, các interface loopback và mͧ ÿ˱ͥng telnet ͧ hai router VSIC1#sh run Current configuration : 1301 bytes version 12.1 hostname VSIC1 enable password cisco interface Loopback0 ip address 10.1.0.1 255 . 255 . 255 .0 interface Loopback1 ip address 11.1.0.1 255 . 255 . 255 .0 interface Loopback2 ip address 12.1.0.1 255 . 255 . 255 .0 line con 0 line aux... protocol is up (spoofing) Hardware is BRI Internet address is 200.10.1.2/24 MTU 150 0 bytes, BW 64 Kbit, DLY 20000 usec, reliability 255 / 255 , txload 1/ 255 , rxload 1/ 255 Encapsulation PPP, loopback not set Last input 00:00: 05, output 00:00: 05, output hang never Last clearing of "show interface" counters 00:09: 45 Input queue: 0/ 75/ 0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: weighted... ppp VSIC2(config-if)#ppp authentication chap VSIC2(config-if)#dialer pool-member 1 VSIC2(config-if)#no shut VSIC2(config-if)#exit VSIC2(config)#in dialer 0 VSIC2(config-if)# ip address 192.168.0.2 255 . 255 . 255 .0 VSIC2(config-if)#encapsulation ppp VSIC2(config-if)#ppp authentication chap VSIC2(config-if)#dialer remote-name VSIC1 VSIC2(config-if)#dialer string 21 VSIC2(config-if)#dialer pool 1 VSIC2(config-if)#dialer... Sweep range of sizes [n]: Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 12.1.0.1, timeout is 2 seconds: 00:30: 15: %LINK-3-UPDOWN: Interface BRI0:1, changed state to up 00:30: 15: %DIALER-6-BIND: Interface BR0:1 bound to profile Di0.!!!! Success rate is 80 percent (4 /5) , round-trip min/avg/max = 32/ 35/ 36 ms 00:30:16: %LINEPROTO -5- UPDOWN: Line protocol on Interface BRI0:1, changed state to... Sending 5, 100-byte ICMP Echos to 200.10.1.2, timeout is 2 seconds: Success rate is 0 percent (0 /5) 4 Cách tӵ thӵc hành bҵng Boson Netsim : VSIC Education Corporation Trang 1 75 CCNA Tài liӋu dành cho hӑc viên Mӣ chѭѫng trình Boson Netsim ÿӇ bҳt ÿҫu thӵc hành Ta vào FileÆLoad NetmapÆChӑn file lab27ISDN.top Sѫ ÿӗ giӕng nhѭ sѫ ÿӗ thӵc hành trên, spid1 vүn là 11 và 22 Ta chú ý rҵng trong trѭѫng trình simulation ... 255 . 255 . 255 .0 192.168.0.2 VSIC1(config)#ip route 14.1.0.0 255 . 255 . 255 .0 192.168.0.2 VSIC1(config)#ip route 15. 1.0.0 255 . 255 . 255 .0 192.168.0.2 VSIC2#conf t VSIC2(config)#ip route 10.1.0.0 255 . 255 . 255 .0... interface Loopback0 ip address 13.1.0.1 255 . 255 . 255 .0 interface Loopback1 ip address 14.1.0.1 255 . 255 . 255 .0 interface Loopback2 ip address 15. 1.0.1 255 . 255 . 255 .0 line line aux line vty password cisco... interface Loopback0 ip address 10.1.0.1 255 . 255 . 255 .0 interface Loopback1 ip address 11.1.0.1 255 . 255 . 255 .0 interface Loopback2 ip address 12.1.0.1 255 . 255 . 255 .0 line line aux line vty password cisco

Ngày đăng: 04/12/2015, 14:39

w