-
-----
-----
– Stack
trong IPv6
C13QM15
13204301
13204285
13204296
Trang 2
sử d
t trị
j
ể
nh t SPF (Shortest-Path F
) ể
tin c
a
ổ
d
Engineering Task Force). Chuẩn mở ở
ó
thiết bị
ịnh tuyến c a nhi
Nế
tuyến n
i (IGP) t
chậ
q
ế
ểm c
pv
m ng nhỏ
ế
Trang 3
1.2 Hoạ động của OSPFv3
ư
m
state quyế
Tr
ó
am
ết bị m
,
im
(LSAs). M
t tậ
link-state (LSDB). N
i dung từ
kết quả cu
Trang 4
d
li
ư c biế
(area). M
ả ế
tuyế
ABR. Router gi
System Boundary Router - ASBR.
o sán
- OSPFv3 sử d
ó
link-state request (LSR), link-state update (LSU),
link-state
link-state advertisment (LSA).
j
- Ho
ng c
ú
-
ó
-
Trang 5
2
- Giao thức OSPFv3 xử ý
V
ỗ
is
ổ
m
ó ể giao tiếp v
subnet m
-
ế
trị ch
thu
c v nhi
Sử d
-
ịa chỉ link-local cho m
ịa chỉ
+ FF02::5 -i di n cho t t cả
224.0.0.5 trong OSPFv2.
+ FF02::6 - i di n cho t t cả designated routers (DR). Tư
chỉ 224.0.0.6 trong OSPFv2.
- OSPFv3 lo i bỏ
ịa chỉ ng
ĩ
+
ịa chỉ
+ Router+
+
-
ế chứng th
chứng th
b
bảo mậ
Payload (ESP)
ể ảm bả
tuyến.
Trang 6
- ị
ó
ổ
ổ õ
ư
ó,
ng
ư
"
"
"
ị
bị lo i bỏ trong header c
"
i LSA c
ó
ó
ư
Sequence Number.
1.4 Cấ
ìn
rên
ết bị Cisco
, ể
,
ả bậ
ử ý ó
b
Router(config)#ipv6 unicast-routing
ấ
ìn
on
ế
ipv6 unicast-routing
!
ipv6 router ospf 1
router-id 2.2.2.2
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
Trang 7
2 ấ ìn
Router(config)#interface
[type-number]
rên n
ị
Router(config-if)#ipv6 enable
Router(config-if)#ipv6 address
[address]/[prefix-length](eui-64)
Router(config-if)#ipv6 ospf
process-id area area-ip
Router(config-if)#ipv6 ospf
cost cost
Router(config-if)#ipv6 ospf
priority priority-number
subnet-mark
interface
fastEthernet0/0 ipv6
address
2002:1000:1::1/64
ipv6 ospf 1 area
0 ipv6 ospf
priority 20 ipv6
ospf cost 20
ế
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
Tran
g8
ìn
-
ê
+
ổ
ị
ỉ
-
ặ
ị
n
-
+
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 9
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(configif)#ipv6 enable
R1(config-if)#ipv6
address 2000:12::1/64
R1(config-if)#no
shutdown R1(configif)#ex
R1(config)interface
serial1/1 R1(configif)#ipv6 enable
R1(config-if)#ipv6
address 2000:13::1/64
R1(config-if)#no
shutdown R1(configif)#ex
R2
R2(config)#interface
serial1/0 R2(configif)#ipv6 enable
R2(config-if)#ipv6
address 2000:12::2/64
R2(config-if)#no
shutdown R2(configif)#ex
R2(config)interface
serial1/1 R2(configif)#ipv6 enable
R2(config-if)#ipv6
address 2000:13::2/64
R2(config-if)#no
shutdown R2(configif)#ex
R3
R3(config)#interface
serial1/0 R3(configif)#ipv6 enable
R3(config-if)#ipv6
address 2000:13::3/64
R3(config-if)#no
shutdown R3(configif)#ex
R3(config)interface
serial1/1 R3(configif)#ipv6 enable
R3(config-if)#ipv6
address 2000:23::3/64
R3(config-if)#no
shutdown R3(configif)#ex
Trang 10
+
v
-
ịa chỉ link-local mặ
ết bị
ư
interface interface ể
Sử d
c
ịnh t
q
ịa chỉ linkịnh sẵ
E8
t cả interface nh
ưct
/
ửd
ịa chỉ link-local mặ ị
nh ipv6 address address link-local ể
ết n i
ừ b ịnh danh
nh show ipv6
t interface.
ổ
ị mặ
ịnh
ịa chỉ link-
Trang 11
Kiểm tra l
l nh ping ể chắc r
Trang 12
+
Mặ
ị
ó
ể bắ
E
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 13
ể
Trang 14
bả
ị
ế
Trang 15
ắ
ó
Trang 16
2
-STACK TRONG IPv6
2
Dual-
ức th c thi TCP/IP bao g m cả t ng IP c
IPv6. Thiết bị hỗ tr cả 2 giao thứ
l a ch n m t trong hai giao thức cho từ
n cho IPv6 ở
,
é
a
ứng d ng
ẩn mặ ị
ưu
ó ể sử d ng IPv6).
-Stack
-
ú
ả
ẽ ó bả
ị
ỗ
ỉ
ó ẽ ó
bả
ị
ỉ
ặ
ị
ả
ó
)
,
bả
ị
ỗ bả
ó
ỏ ế
ị
ả
ị
ỉ
ả
ị
ỉ
ả
ị
ả
ế
ỉ
ị
ỉ
ỏ ế
ị
ứ
ỉ
ế qả
ỉ
ả
ả
ó
ỉ
ó
ị
ả
ậ
ể ỏ ế
bả
bả ghi A
ể
)
b
ế qả
b
ả
ị
ậ
ỉ
ừ
ắ
ế
ẽ
ẩ
ả
,
ó
ị
ế
ị
ó
ó
ỉ
ó
ỉ
ế
ẽ
ó
ả
ế
ẩ
Trang 17
R t nhi u ứng d
ết bị hi n
2.2 Dual-stack trong h đ
n W nd
Th c tế, th t
Driver c a th
t
2.3 Dual-stack trong Cisco
Trang 18
2
ìn
Trang 19
-
- 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
Trang 20
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 21
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 22
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 23