-
Stack
trong IPv6
C13QM15
-
13204301
13204285
13204296
Trang 2
3
3
4
5
5
6
Cisco 7
7
8
3
-STACK TRONG IPv6 17
17
- 18
2.3 Dual-Stack trong Cisco 18
2.4 19
Trang 3
t giao thnh tuyn theo trt (RFC 2740)
s d nh tuyt k cht h
t tra IPv4. OSPFv3 vn s dng gii thut
ng bnh tuyi thun
nht SPF (Shortest-Path F p qu
tin ca n. Dc khi trao
p LSA, OSPF s ng topology mng.
t giao thnh tuyn theo trc trin khai
d n m c m trong nhiu RFC ca IETF (Internet
Engineering Task Force). Chun m ưc s dt c
thit b nh tuyn ca nhin xuc quyn.
N t giao th nh
tuyn ni (IGP) t rng c gii hn trong 15 hop, hi t
ch chnh ch
u t quan trc ph
m ct giao thnh tuyn m rng,
p v thng mng hi
mng nh dng vn.
Trang 4
1.2 Hong ca OSPFv3
t giao thnh tuyn cho IPv6. Hong cn d
t s t giao th nh tuyn
ư t (link-i mt giao thc vector kho
mt b mng. Mt giao thc link-
state quynh tuyư ng dt kt ni t ngun
Tra mn k i quan h a interface
t b ma
i mưc kt ni t nh tuyn kt ni vi m
ưc lan truy Link-state advertisements
(LSAs). Mt t liưc lưu tr trong m d liu
link-state (LSDB). Ni dung t d liưc s dng cho thu
kt qu cuo rnh tuyn OSPF.
Trang 5
S t ginh tuya mt t
d linh tuyn chưn nht t
ưc bing interface c th
giưc co ra m
(area). Ma mp nhau. Trong tt c
t mc g Area 0. Tt c
i phi kt ni trc tip tc phưng kt ni
ng kt hoc tp hnh
tuyc g Area border Router -
ABR. Router gi tr c g Autonomous
System Boundary Router - ASBR.
1.3.1 Ging nhau :
- OSPFv3 s dn ging như OSPFv2, chng hn như
d liu - ưc gpacket - DDP,
link-state request (LSR), link-state update (LSU), link-state
link-state advertisment (LSA).
- cnh
ng nhau.
- Hong cưthc cu
m-ti-ưc h tr.
- n ging nhau n
- Router ID vn gi y tin
ưa ch IPv4.
Trang 6
- Giao thc OSPFv3 x OSPFv2.
Vi s ưc cp cho mt link duy nht. Hai node
m giao tip vt gibt cht
subnet mn viu khon v "m"subnet" trong
ưc thay th i "link" trong OSPFv3.
- cht link. Cnhiu
tr ch s dng mt link
thuc v nhig.
S da ch link-local cho m ng cu
- a ch i. OSPFv3 s da ch multicast sau :
+ FF02::5 - i din cho tt c ư ư a ch
224.0.0.5 trong OSPFv2.
+ FF02::6 - i din cho tt c designated routers (DR). Tưưi a
ch 224.0.0.6 trong OSPFv2.
- OSPFv3 loi b a ch ng
+ a ch
+ Router--a ch IPv6.
+ -state ID vn gi ưc 32 bit caIPv4,
a ch
+ ưnh bi router ID ch i IP c
- chng tho mi. Trong header ctrưng
chng th loi b dng chng th
bo mư
Payload (ESP m bt ca vinh
tuyn.
Trang 7
-
ư loi b trong header c
ư
ng i LSA c ư
Sequence Number.
1.4 Ct b Cisco
Router(config)#ipv6 unicast-routing
Router>enable
Router#configure terminal
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf 1
Router(config-rtr)#router-id 2.2.2.2
Router(config-rtr)#end
ipv6 unicast-routing
!
ipv6 router ospf 1
router-id 2.2.2.2
Trang 8
Router>enable
Router#configure terminal
Router(config)#interface fa0/0
Router(config-if)#ipv6 enable
Router(config-if)#ipv6 address 2002:1000:1::1/64
Router(config-if)#ipv6 ospf 1 area 0
Router(config-if)#ipv6 ospf priority 20
Router(config-if)#ipv6 ospf cost 20
Router(config)#interface
[type-number]
Router(config-if)#ipv6 enable
Router(config-if)#ipv6 address
[address]/[prefix-length](eui-64)
subnet-mark
Router(config-if)#ipv6 ospf
process-id area area-ip
process-idarea-id
Router(config-if)#ipv6 ospf
cost cost
cost
-65535>
Router(config-if)#ipv6 ospf
priority priority-number
priority-number-255>
interface fastEthernet0/0
ipv6 address
2002:1000:1::1/64
ipv6 ospf 1 area 0
ipv6 ospf priority 20
ipv6 ospf cost 20
Trang 9
-
+
-
-
+
Interface loopback
R1
R1>enable
R1#config
R1(config)#int loopback0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#ipv6 address 2002:1::1/64
R1(config-if)#ex
R1(config-if)#ex
Trang 10
R2
R2>enable
R2#config
R2(config)#int loopback0
R2(config-if)#ip address 10.1.2.1 255.255.255.0
R2(config-if)#ipv6 address 2002:2::1/64
R2(config-if)#ex
R3
R3>enable
R3#config
R3(config)#int loopback0
R3(config-if)#ip address 10.1.3.1 255.255.255.0
R3(config-if)#ipv6 address 2002:3::1/64
R3(config-if)#ex
Interface Serial
R1
R1(config)#interface serial1/0 R1(config)interface serial1/1
R1(config-if)#ipv6 enable R1(config-if)#ipv6 enable
R1(config-if)#ipv6 address 2000:12::1/64 R1(config-if)#ipv6 address 2000:13::1/64
R1(config-if)#no shutdown R1(config-if)#no shutdown
R1(config-if)#ex R1(config-if)#ex
R2
R2(config)#interface serial1/0 R2(config)interface serial1/1
R2(config-if)#ipv6 enable R2(config-if)#ipv6 enable
R2(config-if)#ipv6 address 2000:12::2/64 R2(config-if)#ipv6 address 2000:13::2/64
R2(config-if)#no shutdown R2(config-if)#no shutdown
R2(config-if)#ex R2(config-if)#ex
R3
R3(config)#interface serial1/0 R3(config)interface serial1/1
R3(config-if)#ipv6 enable R3(config-if)#ipv6 enable
R3(config-if)#ipv6 address 2000:13::3/64 R3(config-if)#ipv6 address 2000:23::3/64
R3(config-if)#no shutdown R3(config-if)#no shutdown
R3(config-if)#ex R3(config-if)#ex
Trang 11
+ -
a ch link-local mnh t t c interface nht ni
vt b a ch link-ưc t nh danh
ưnh s dnh show ipv6
interface interface a ch link-local mt interface.
S dnh ipv6 address address link-local mnh
ca ch link-
Trang 12
Kim tra la ch link-local mi vnh show ipv6 interface
lnh ping chc ra ch link-local mng.
Trang 13
+
Mnh tuyưc by ta phi bt chc
bnh tuy b
a Cisco nhm chuyn m
R1(config)# ipv6 unicast-routing
R1(config)# ipv6 cef
R2(config)# ipv6 unicast-routing
R2(config)# ipv6 cef
R3(config)# ipv6 unicast-routing
R3(config)# ipv6 cef
R1(config)#interface loopback0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#interface serial 1/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#interface serial 1/1
R1(config-if)#ipv6 ospf 1 area 0
R2(config)#interface loopback0
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#interface serial 1/0
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#interface serial 1/1
R2(config-if)#ipv6 ospf 1 area 0
R3(config)#interface loopback0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#interface serial 1/0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#interface serial 1/1
R3(config-if)#ipv6 ospf 1 area 0
Trang 14
Trang 15
Trang 16
Trang 17
-STACK TRONG IPv6
Dual-c thc thi TCP/IP bao gm c tng IP ca
IPv6. Thit b h tr c 2 giao th ng dng
la chn mt trong hai giao thc cho tn mưu
n cho IPv6 s dng IPv6).
-Stack
-
-
ghi A
Trang 18
Rt nhiu ng dt b hin nay hong dual- : h u
t b nh tuyn Cisco, Juniper
2.2 Dual-stack trong h
Thc t, th tc IPv6 trong h ưa ph-
Driver ca th tc IPv6 (tcpip6.sys) cha hai tht ca TCP/UDP.
2.3 Dual-stack trong Cisco
ng thưc c hai da ch trong
hong dual-stack.
Trang 19
-
-.
-.
- .
-.
Trang 20
-
- Show config
PC1
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname PC1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 10.0.0.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
network 10.0.0.0
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
Trang 21
SERVER_1
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SERVER_1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 20.0.0.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
network 20.0.0.0
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
Trang 22
Zone_1
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Zone_1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
ipv6 unicast-routing
ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
ipv6 address 2001:1::2/64
ipv6 ospf 1 area 0
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
!
no ip http server
no ip http secure-server
!
!
ipv6 router ospf 1
router-id 1.1.1.1
log-adjacency-changes
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
Trang 23
Zone_2
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Zone_2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
ipv6 address 2002:1::2/64
ipv6 enable
ipv6 ospf 1 area 0
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
!
no ip http server
no ip http secure-server
!
!
ipv6 router ospf 1
router-id 2.2.2.2
log-adjacency-changes
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
Trang 24
R1
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
ipv6 unicast-routing
ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
ip address 192.168.12.1 255.255.255.0
ipv6 address 2000:12::1/64
ipv6 enable
ipv6 ospf 1 area 0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet2/0
ip address 10.0.0.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet2/1
no ip address
Trang 25
duplex auto
speed auto
ipv6 address 2001:1::1/64
ipv6 enable
ipv6 ospf 1 area 0
!
router rip
version 2
network 10.0.0.0
network 192.168.12.0
!
!
no ip http server
no ip http secure-server
!
!
ipv6 router ospf 1
log-adjacency-changes
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end
R2
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
!
ipv6 unicast-routing
ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0