Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 29

MC LC

Lab 1: Ci t IPv6 cho PC dng HH WinXP Lab 2: Kt ni 2 PC khc mng s dng a ch IPv6 Lab 3: nh tuyn tnh vi IPv6 Lab 4: Cu hnh RIPng c bn Lab 5: Cu hnh OSPFv3 c bn Lab 6: Ci t a ch IPv6 cho PC dng HH Linux Ubuntu

LAB 1: CI T IPV6 CHO MY TNH DNG HH WINDOWS XP

Theo c t ca giao thc IPv6, tt c cc loi a ch IPv6 c gn cho cc Interface, khng gn cho cc Node. Mi a ch IPv6 loi Unicast (gi tt l a ch Unicast) c gn cho mt Interface n. V mi Interface thuc v mt Node n, do vy mi a ch Unicast nh danh mt Interface s nh danh cho Node . Mi Interface n c th c gn nhiu loi a ch IPv6 (cho php c 3 dng a ch ng thi Unicast, Anycast, Multicast). Nhng bt buc mi Interface phi c gn mt a ch Unicast Link-local nhm phc v cho cc kt ni Point-topoint. Theo thit k ca IPv6, mt Host c th c nh danh bi cc a ch sau: - Mt a ch Link-local cho mi Interface gn vi Host . - Mt a ch Unicast c cung cp bi cc nh cung cp dch v. - Mt a ch Loopback. - Mt a ch Multicast, m Host l thnh vin. Mt router nu h tr IPv6 s nhn bit c tt c cc loi a ch m host chp nhn k trn, ngoi ra n cn c gn cc loi a ch sau: - Tt c cc a ch Multicast c gn trn Router. - Tt c cc a ch Anycast c cu hnh trn Router. - Tt c cc a ch Multicast ca cc nhm thuc Router qun l.

Yu cu: 1. Ci t IPv6 trn 2 my tnh A v B 2. Ni 2 my tnh bng cp cho 3. Ping IPv6 kim tra kt ni lp 3 gia 2 PC Cc bc thc hin : Trn PC A v PC B, bm vo thanh tc v Start, chn Run, nh lnh cmd vo mn hnh command line ca DoS. Thc hin ci t IPv6 bng lnh ipv6 install

Xem li cu hnh bng lnh ipconfig

Mi my sau khi ci t IPv6 s c mt a ch mc nh cho card mng l 1 a ch link-local. Mt card mng phi c ti thiu 1 a ch link-local. C th thay i a ch IPv6 bng lnh: Netsh interface ipv6 set address local area connection fe80::B Netsh interface ipv6 add address local area connection fe80::B hoc

Cu hnh tng t trn my A. Sau thc hin lnh ping6 ti my A t my B bng a ch link-local.

LAB 2: KT NI IPV6 GIA 2 PC KHC MNG

Yu cu: C 2 site c phn cch bi router. T PC C c th thc hin lnh ping ti cc a ch trong site Fec1::/64 Cc bc thc hin: Bc 1: Ci t IPv6 cho cc my tnh, gn a ch IPv6 cho chng theo hnh v. - Thc hin ci t IPv6 bng lnh ipv6 install - Thit lp a ch site-local trn PC A netsh interface ipv6 set address local area connection fec1::A - Thit lp a ch site-local trn PC B netsh interface ipv6 set address local area connection fec1::B - Thit lp a ch site-local trn PC C netsh interface ipv6 set address local area connection fec0::C - Xem li cu hnh bng lnh ipconfig Mt im khc bit IPv6 so vi IPv4 l cc my trm s t nhn a ch default-gateway t router gn vi n m chng ta khng cn phi t, iu ny s cho chng ta t sai st khi tin hnh nh tuyn cho cc my trm. Kim tra cc thng s cu hnh cho cc PC:

Bc 2: Cu hnh router, cho cc interface tham gia vo mng s dng a ch IPv6 Router#config terminal Router(config)#interface Fa0/0 Router(config)#ipv6 unicast-routing tren router */ Router(config)#interface FastEthernet 0/0 Router(config-if)#ipv6 enable Router(config-if)#ipv6 address fec0::1/64 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#interface FastEthernet 0/1 Router(config-if)#ipv6 enable Router(config-if)#ipv6 address fec1::1/64 Router(config-if)#no shutdown Router(config-if)#^Z /* cho php interface hot ng vi a ch IPv6 */ /* m chc nang nh tuyen IPv6

Kim tra thng s cu hnh trn cc interface: Router#show ipv6 interface brief FastEthernet0/0 FE80::204:C1FF:FE4D:EC60 FEC0::1 FastEthernet0/1 FE80::1 FEC1::1 Serial0/0 unassigned Kim tra li a ch default gateway bng lnh ping: [administratively down/down] [up/up] [up/up]

Sau , thc hin lnh ping t PC C ti PC A v PC B bng a ch site-local .

LAB 3:

NH TUYN TNH VI MNG IPV6

Yu cu: C 2 site c phn cch bi 2 router. Thc hin nh tuyn tnh trn hai router PC A c th thc hin lnh ping ti PC B. Cc bc thc hin: Bc 1: t a ch cho cc PC A v B PC A: netsh interface ipv6 set address local area connection 2001::a PC B: netsh interface ipv6 set address local area connection 2003::b Bc 2: Cu hnh cho cc interface ca router R1, R2 i vi R1: R1(config)#ipv6 enable R1(config)#ipv6 unicast-routing R1(config)#interface F0/0 R1(config-if)#ipv6 enable R1(config-if)#ipv6 address 2001::1/64 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface S0/0 R1(config-if)# clock rate 64000 R1(config-if)# ipv6 address 2002::1/64 R1(config-if)#no shutdown R1(config-if)#^Z i vi R2: R2(config)#ipv6 enable /*cho php router hot ng nh tuyn vi IPv6*/

R2(config)#ipv6 unicast-routing R2(config)#interface F0/0 R2(config-if)#ipv6 enable R2(config-if)#ipv6 address 2003::1/64 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface S0/0 R2(config-if)#ipv6 address 2002::2/64 R2(config-if)#no shutdown R2(config-if)#^Z Bc 3: Cu hnh nh tuyn tnh Trn R1: R1(config)#ipv6 route 2003::/64 2002::2 R1(config)#exit Trn R2: R2(config)#ipv6 route 2001::/64 2002::1 R1(config)#exit Cu hnh tham kho: R1#show run interface FastEthernet0/0 no ip address duplex auto speed auto ipv6 address 2001::1/64 ! interface Serial0/1/0 no ip address ipv6 address 2002::1/64 clock rate 64000 ! ip classless !

ip http server no ip http secure-server ! ipv6 route 2003::/64 2002::2 ! R2#show run interface FastEthernet0/0 no ip address duplex auto speed auto ipv6 address 2003::1/64 ! interface Serial0/1/0 no ip address ipv6 address 2002::2/64 ! ipv6 route 2001::/64 2002::1 ! Bc 4: Kim tra cc thng s v thc hin lnh ping a ch trn PC B:

R2#show ipv6 interface brief FastEthernet0/0 FE80::218:18FF:FE9C:A7A0 2003::1 Serial0/1/0 FE80::218:18FF:FE9C:A7A0 2002::2 T PC B, thc hin lnh ping ti PC A c a ch 2001::a kim tra kt ni [up/up] [up/up]

LAB 4:

CU HNH RIPng C BN

2 0 0::1/6 4 5 R1 E0/0 2 0 0::1/6 4 1 2 0 0::1/6 4 3 S0/1 2 0 0::2/6 4 5 S0/1 R2 E0/0

2 0 0::A/6 4 1

2 0 0::3 /6 4 B

PC A

PC B

Cc chc nng ca RIPng (RIP next generation) trong IPv6 tng t nh chc nng ca RIP trong IPv4. Cc gi tin update s dng a ch multicast ca tt c cc router chy RIP. Mi qu trnh RIPng duy tr mt bng nh tuyn cc b RIB (Routing Information Database). Bng RIB ny cha mt b cc ng i tt nht hc c t cc thit b ln cn. Yu cu: Router R1, R2 s dng RIPng qung b thng tin nh tuyn Cc PC ping c ton b a ch trong mng Cc bc thc hin: Bc 1: t a ch IPv6 cho cc PC PC A: netsh interface ipv6 set address local area connection 2001::a PC B: netsh interface ipv6 set address local area connection 2003::b Bc 2: Cu hnh a ch IPv6 cho cc interface ca router R1, R2 i vi R1: R1(config)#ipv6 enable R1(config)#ipv6 unicast-routing R1(config)#interface E0/0 R1(config-if)#ipv6 enable

R1(config-if)#ipv6 address 2001::1/64 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface S0/1 R1(config-if)# clock rate 64000 R1(config-if)# ipv6 address 2005::1/64 R1(config-if)#no shutdown R1(config-if)#^Z i vi R2: R2(config)#ipv6 enable R2(config)#ipv6 unicast-routing R2(config)#interface E0/0 R2(config-if)#ipv6 enable R2(config-if)#ipv6 address 2003::1/64 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface S0/1 R2(config-if)#ipv6 address 2005::2/64 R2(config-if)#no shutdown R2(config-if)#^Z Bc 3: Cho cc interface trn R1, R2 tham gia vo qu trnh nh tuyn RIPng Trn R1: R1(config)#ipv6 router rip cisco R1(config-rtr)#exit R1(config)#interface E0/0 R1(config-if)#ipv6 rip cisco enable R1(config)#interface S0/1 R1(config-if)#ipv6 rip cisco enable /*cho php RIPng process cisco chy trn E0/0*/ /*cho php RIPng process cisco chy trn E0/0*/ /*t tn cho process RIPng l cisco*/

C th cu hnh s ng i ti a cng metric m RIPng h tr. Gi tr ny trong khong t 1 n 64, mc nh cho RIP ti a l 4 ng. R1(config)#ipv6 router rip cisco R1(config-rtr)#maximum-paths 1

R1(config-rtr)#exit Trn R2: cu hnh tng t nh R1 Cu hnh tham kho: R1#show run ! hostname R1 no ip domain-lookup ! ipv6 unicast-routing ! interface Ethernet0/0 no ip address duplex auto speed auto ipv6 address 2001::1/64 ipv6 rip cisco enable ! interface Serial0/1 no ip address clock rate 64000 ipv6 address 2005::1/64 ipv6 rip cisco enable ! ipv6 router rip cisco ! end Ch : tn ca process-id ch mang ngha cc b trong mt router R2#show run ! hostname R2 ! no ip domain-lookup

! ipv6 unicast-routing ! interface Ethernet0/0 no ip address duplex auto speed auto ipv6 address 2003::1/64 ipv6 rip cisco enable ! interface Serial0/1 no ip address ipv6 address 2005::2/64 ipv6 rip cisco enable ! ipv6 router rip cisco ! end Bc 4: Kim tra cu hnh Xem bng nh tuyn bng lnh show ipv6 route, hoc show ipv6 route rip xem cc ng i hc t RIPng. Cc ng i hc t RIPng s c nh du bng ch R nh trong RIP ca IPv4. R2#show ipv6 interface brief Ethernet0/0 2003::1 Serial0/1 2005::2 [up/up] FE80::218:18FF:FE9C:A7A1 [up/up] FE80::218:18FF:FE9C:A7A0

Xem process-id ca RIPng, cc interface no chy RIPng R1#show ipv6 rip RIP process "cisco", port 521, multicast-group FF02::9, pid 32 Administrative distance is 120. Maximum paths is 16 Updates every 30 seconds, expire after 180 Holddown lasts 0 seconds, garbage collect after 120 Split horizon is on; poison reverse is off Default routes are not generated Periodic updates 69, trigger updates 40 Interfaces: Serial0/1 Ethernet0/0 Redistribution: None C th xem c s d liu ca RIPng bng lnh show ipv6 rip database R1#show ipv6 rip database RIP process "cisco", local RIB 2003::/64, metric 2, installed Ethernet0/0/FE80::218:18FF:FE9C:A7A0, expires in 155 secs 2005::/64, metric 2 FastEthernet0/1/FE80::218:18FF:FE9C:A7A1, expires in 155 secs T R1 hoc R2 ping c cc a ch trn mng R1#ping 2003::b Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2003::B, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms C th dng lnh debug ipv6 packet [detail] xem qu trnh gi tin i t R1 n PC B R1#ping 2003::b Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2003::B, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/1/4 ms R1# *Dec 24 07:46:16.651: IPv6: SAS picked source 2005::1 for 2003::B (Serial0/1) *Dec 24 07:46:16.655: IPv6: nexthop FE80::218:18FF:FE9C:A7A1, *Dec 24 07:46:16.655: IPV6: source 2005::1 (local) *Dec 24 07:46:16.655: *Dec 24 07:46:16.655: dest 2003::B (Serial0/1) traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating

*Dec 24 07:46:16.655: IPv6: Sending on Serial0/1 *Dec 24 07:46:16.655: IPV6: source 2003::B (Serial0/1) *Dec 24 07:46:16.655: *Dec 24 07:46:16.655: dest 2005::1 traffic class 0, flow 0x0, len 100+14, prot 58, hops 63, forward to ulp

LAB 5:
2 0 0::1/6 4 7 L o1 2 0 0::1/6 4 2 R o u 1e r F0/1 t F0/0 2 0 0: :1/6 4 1

CU HNH OSPFv3 C BN
2 0 0::1/6 4 8 2 0 0::2/6 4 2 R o u 2 r L o2 te F0/1 F0/0 2 0 0::1/6 4 5

2 0 0::A/6 4 1

2 0 0: :B/6 4 5

PC A

PC B

OSPF l mt giao thc nh tuyn IP. N l mt giao thc kiu link-state, ngha l n nh tuyn da trn trng thi ca ng link ni gia ngun v ch ( thng tin v interface v mi quan h ca n vi cc thit b ln cn ). Thng tin v interface gm: tin t IPv6 ( IPv6 prefix ), mask, loi mng m n ni ti, cc router kt ni n mng , Thng tin ny s c truyn i trong cc gi tin LSA khc nhau. Cc gi tin LSA s c tp hp li v lu tr trong link-state database. Router s dng gii thut Dijkstra tnh ton v to ra bng nh tuyn OSPF OSPFv3 cng s dng cc gi tin Hello thit lp quan h lng ging nh OSPF ca IPv4. Trong mi trng broadcast hoc NBMA, qu trnh bnh chn DR/BDR ging nh i vi OSPF ca IPv4 ngha l da vo quyn u tin. Router no c mc u tin cao nht s c chn lm DR, sau s chn BDR ( quy lut tng t nh chn DR ). Nu 2 router cng mc u tin, router no c router-id cao hn s c chn Yu cu: Router R1, R2 s dng OSPFv3 nh tuyn Cc PC ping c ton b a ch trong mng Cc bc thc hin:

Bc 1: t a ch IPv6 cho PC
t IPv6 cho PC A

Kim tra li a ch IPv6 ca PC bng lnh ipconfig

Thc hin tng t i vi PC B Bc 2: Cu hnh a ch IPv6 cho cc interface ca R1, R2 Trn R1: R1(config)#interface F0/0 R1(config-if)#no shut R1(config-if)#no keepalive R1(config-if)#ipv6 enable R1(config-if)#ipv6 address 2001::1/64 /* t a ch IPv6 cho Fa0/0 */ R1(config)#interface F0/1 R1(config-if)#no shut R1(config-if)#no keepalive R1(config-if)#ipv6 enable R1(config-if)#ipv6 address 2002::1/64 /* t a ch IPv6 cho Fa0/1 */ R1(config-if)#end Trn R2: cu hnh tng t Bc 3: Cho cc interface tham gia vo qu trnh nh tuyn OSPFv3 Trn R1: R1(config)#ipv6 router ospf 1 R1(config-rtr)#exit R1(config)#interface F0/0 R1(config-if)#ipv6 ospf 1 area 100 /* cho interface F0/0 tham gia vo OSPFv3 */ /* to ra OSPFv3 process-id 1 */

R1(config-if)#exit R1(config)#interface F0/1 R1(config-if)#ipv6 ospf 1 area 100 R1(config-if)#exit R1(config)#interface L0 R1(config-if)#ipv6 ospf 1 area 100 R1(config-if)#exit Trn R2: tng t R1 /* cho interface L0 tham gia vo OSPFv3 */ /* cho interface F0/1 tham gia vo OSPFv3 */

Cu hnh tham kho:


R1#show run ! hostname R1 no ip domain-lookup ipv6 unicast-routing ! interface Loopback0 no ip address ipv6 address 2007::1/64 ipv6 ospf 1 area 100 ! interface FastEthernet0/0 ip address 10.0.0.1 255.255.255.0 duplex auto speed auto ipv6 address 2001::1/64 ipv6 ospf 1 area 100 ! interface FastEthernet0/1 no ip address duplex auto speed auto ipv6 address 2002::1/64

ipv6 ospf 1 area 100 ! ipv6 router ospf 1 log-adjacency-changes

!
end R2#show run ! hostname R2 no ip domain-lookup ! ipv6 unicast-routing ! interface Loopback0 no ip address ipv6 address 2008::1/64 ipv6 ospf 1 area 100 ! interface FastEthernet0/0 no ip address duplex auto speed auto ipv6 address 2005::1/64 ipv6 ospf 1 area 100 ! interface FastEthernet0/1 no ip address duplex auto speed auto ipv6 address 2002::2/64 ipv6 ospf 1 area 100 ! ipv6 router ospf 1

log-adjacency-changes ! end Bc 4: Kim tra thng s cu hnh v ping Kim tra hot ng ca cc cng FastEthernet bng lnh show interface [type number], show ipv6 interface brief Kim tra bng nh tuyn bng lnh show ipv6 route R1#show ipv6 route IPv6 Routing Table - 10 entries C 2001::/64 [0/0] via ::, FastEthernet0/0 L 2001::1/128 [0/0] via ::, FastEthernet0/0 C 2002::/64 [0/0] via ::, FastEthernet0/1 L 2002::1/128 [0/0] via ::, FastEthernet0/1 O 2005::/64 [110/2] via FE80::218:18FF:FE9C:A7A1, FastEthernet0/1 C 2007::/64 [0/0] via ::, Loopback1 L 2007::1/128 [0/0] via ::, Loopback1 O 2008::1/128 [110/1] via FE80::218:18FF:FE9C:A7A1, FastEthernet0/1 L FE80::/10 [0/0] via ::, Null0 L FF00::/8 [0/0] via ::, Null0

T R1 hoc R2 ping cc a ch trn mng R1#ping 2002::2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2002::2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms R1#ping 2005::1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2005::1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/1/4 ms R1#ping 2005::B Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2005::B, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/1/4 ms R1#ping 2008::1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2008::1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms Xem thng s trn cc interface: R1#show ipv6 ospf interface f0/0 FastEthernet0/0 is up, line protocol is up Link Local Address FE80::217:95FF:FEC1:6AE4, Interface ID 4 Area 100, Process ID 1, Instance ID 0, Router ID 10.0.0.1 Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 10.0.0.1, local address FE80::217:95FF:FEC1:6AE4

No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:01 Index 1/1/1, flood queue length 0 Next 0x0(0)/0x0(0)/0x0(0) Last flood scan length is 0, maximum is 0 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s) R1#show ipv6 ospf interface f0/1 FastEthernet0/1 is up, line protocol is up Link Local Address FE80::217:95FF:FEC1:6AE5, Interface ID 5 Area 100, Process ID 1, Instance ID 0, Router ID 10.0.0.1 Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 10.0.0.1, local address FE80::217:95FF:FEC1:6AE5 Backup Designated router (ID) 20.0.0.1, local address FE80::218:18FF:FE9C:A7A1 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:06 Index 1/2/2, flood queue length 0 Next 0x0(0)/0x0(0)/0x0(0) Last flood scan length is 1, maximum is 4 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 20.0.0.1 (Backup Designated Router) Suppress hello for 0 neighbor(s) Xem thng s v OSPFv3 ca router lng ging R1#show ipv6 ospf neighbor detail Neighbor 20.0.0.1 In the area 100 via interface FastEthernet0/1 Neighbor: interface-id 5, link-local address FE80::218:18FF:FE9C:A7A1 Neighbor priority is 1, State is FULL, 6 state changes

DR is 10.0.0.1 BDR is 20.0.0.1 Options is 0x65CB1F99 Dead timer due in 00:00:33 Neighbor is up for 00:48:14 Index 1/1/1, retransmission queue length 0, number of retransmission 1 First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0) Last retransmission scan length is 2, maximum is 2 Last retransmission scan time is 0 msec, maximum is 0 msec R1#show ipv6 ospf neighbor f0/1 Neighbor ID 20.0.0.1 L : Khi c nhiu ng i n ch vi cng chi ph trong cng mt qu trnh nh tuyn, chng ta s c hin tng cn bng ti, v cc ng ny cng s c a vo bng nh tuyn. Ta c th chnh s lng ti a cc ng i n cng mt ch bng lnh maximum-paths mode router. Khong gi tr ca n l t 1 n 64, mc nh cho OSPF l 16. Pri State 1 FULL/BDR Dead Time Interface ID 00:00:32 5 Interface FastEthernet0/1

LAB 6:
Yu cu:

CI T IPV6 CHO PC HH LINUX

Ci t a ch IPv6 cho PC s dng HH Linux Ubuntu Cc bc thc hin: Bc 1: Thc hin ci t ipv6 bng lnh modprove ipv6

Bc 2: Chn System, Administration, Networking, Ethernet Connection

tab Host chn Add thm a ch IPv6 Fe80::A/48

Bc 3: Ping th nghim vi PC Win XP ci t a ch IPv6

You might also like