Tải bản đầy đủ (.pdf) (29 trang)

Báo cáo bảo trì hệ thống mạng OSPFv3 và dual stack trong IPv6

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.06 MB, 29 trang )

-










 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 thnh tuyn theo trt (RFC 2740)
 s d nh tuyt k  cht h
t tra IPv4. OSPFv3 vn s dng gii thut
 ng bnh tuyi thun
nht SPF (Shortest-Path F p qu

tin ca n. Dc khi trao
p LSA, OSPF s ng topology mng.
t giao thnh tuyn theo trc trin khai
d   n m  c m  trong nhiu RFC ca IETF (Internet
Engineering Task Force). Chun m  ưc s dt c
thit b nh tuyn ca nhin xuc quyn.
N             t giao th nh
tuyn ni (IGP) t  rng c gii hn trong 15 hop, hi t
ch chnh ch
u t quan trc ph
m ct giao thnh tuyn m  rng,
p v thng mng hi 
mng nh  dng vn.
  

Trang 4

1.2 Hong ca OSPFv3
t giao thnh tuyn cho IPv6. Hong cn d
      t s     t giao th nh tuyn
ư t (link-i mt giao thc vector kho 
mt b mng. Mt giao thc link-
state quynh tuyư ng dt kt ni t ngun

Tra mn k i quan h a interface
t b ma
i mưc kt ni t nh tuyn kt ni vi m
ưc lan truy Link-state advertisements
(LSAs). Mt t liưc lưu tr trong m d liu
link-state (LSDB). Ni dung t  d liưc s dng cho thu

kt qu cuo rnh tuyn OSPF.


  

Trang 5

S t ginh tuya mt t 
d linh tuyn chưn nht t
ưc bing interface c th 

 giưc co ra  m
(area). Ma mp nhau. Trong tt c
t mc g   Area 0. Tt c
i phi kt ni trc tip tc phưng kt ni
ng kt hoc tp hnh
tuyc g Area border Router -
ABR. Router gi    tr     c g  Autonomous
System Boundary Router - ASBR.

1.3.1 Ging nhau :
- OSPFv3 s dn ging như OSPFv2, chng hn như 
  d liu - ưc gpacket - DDP,
link-state request (LSR), link-state update (LSU), link-state 
link-state advertisment (LSA).
-              cnh
ng nhau.
- Hong cưthc cu
m-ti-ưc h tr.
- n ging nhau  n 

-  Router ID vn gi y tin 
ưa ch IPv4.

  

Trang 6


- Giao thc OSPFv3 x  OSPFv2.
Vi s  ưc cp cho mt link duy nht. Hai node
m giao tip vt gibt cht
subnet mn viu khon v "m"subnet" trong
ưc thay th i "link" trong OSPFv3.
-  cht link. Cnhiu
 tr ch s dng mt link  
thuc v nhig.
S da ch link-local cho m ng cu 
- a ch i. OSPFv3 s da ch multicast sau :
+ FF02::5 - i din cho tt c    ư ư  a ch
224.0.0.5 trong OSPFv2.
+ FF02::6 - i din cho tt c designated routers (DR). Tưưi a
ch 224.0.0.6 trong OSPFv2.
- OSPFv3 loi b a ch ng 
+ a ch 
+ Router--a ch IPv6.
+ -state ID vn gi ưc 32 bit caIPv4,
a ch 
+ ưnh bi router ID ch i IP c
-  chng tho mi. Trong header ctrưng
chng th loi b dng chng th

bo mư 
Payload (ESP m bt ca vinh
tuyn.

  

Trang 7

-

ư  loi b trong header c
 ư
ng      i LSA c  ư    
Sequence Number.
1.4 Ct 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-idarea-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 mnh t t c interface nht ni
vt b a ch link-ưc t nh danh

ưnh s dnh show ipv6
interface interface  a ch link-local mt interface.

S dnh ipv6 address address link-local   mnh
ca ch link-


  

Trang 12

Kim tra la ch link-local mi vnh show ipv6 interface 
lnh ping  chc ra ch link-local mng.




  

Trang 13

+ 
Mnh tuyưc by ta phi bt chc
 bnh tuy b
 a Cisco nhm chuyn 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 thc thi TCP/IP bao gm c tng IP ca
IPv6. Thit b h tr c 2 giao th ng dng
la chn mt trong hai giao thc cho tn mưu
n cho IPv6   s dng IPv6).

-Stack
-
-



 ghi A 










  

Trang 18

Rt nhiu ng dt b hin nay hong dual- : h u
 t b nh tuyn Cisco, Juniper

2.2 Dual-stack trong h 
Thc t, th tc IPv6 trong h ưa ph-
Driver ca th tc IPv6 (tcpip6.sys) cha hai tht ca TCP/UDP.
2.3 Dual-stack trong Cisco
ng thưc c hai da ch trong
 hong 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

×