3.4*10^38 個IP
優點:強調隨插即用、具備可移動性、安全性,routing效率提升。
以Anycast與Multicast,取代IPv4的Broadcast。
IPv6位址表示法
000A:3600:0000:0000:74e5:0bff:fe3c:8899/64
首碼(Perfix) 介面ID 首碼長度
可區分為兩大部分:首碼(Perfix)+介面ID
Perfix:長度大概由3~64bit,/XX就可知道該位址長度為多少bit。
介面長度ID:128減去perfix長度。
EUI-64位址表示法
從Router取的64bits的首碼,再利用本身MAC Address(48bits)中間再插入FFFE(16bits)。
IPv6 Routing
RIPng
功能與RIP或RIP2大致相同,只是RIP是在Config Mode下設定,RIPng在Interface Mode下設定。
<IPv4>
Router-0(config)#router rip
Router-0(config-router)#network 10.0.0.0
Router-0(config-router)#network 192.168.1.0
<IPv6>
Router-0(config)#ipv6 unicast-routing (必須先開啟IPv6流量轉送功能)
Router-0(config)#int fa0/0
Router-0(config-if)#ipv6 rip ?
WORD User selected string identifying this RIP process (識別標籤,同Router設定為一樣)
Router-0(config-if)#ipv6 rip 200 ?
default-information Configure handling of default route
enable Enable/disable RIP routing
Router-0(config-if)#ipv6 rip 200 enable
Router-0(config-if)#int fa0/1
Router-0(config-if)#ipv6 rip 200 enable
(不用像IPv4設定network)
Router-0#sh ipv6 route
IPv6 Routing Table - 6 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
C 2001:1:1:1::/64 [0/0]
via ::, FastEthernet0/0
L 2001:1:1:1::1/128 [0/0]
via ::, FastEthernet0/0
R 2001:2:2:2::/64 [120/2]
via FE80::2E0:F7FF:FE45:BB02, FastEthernet0/1
C 2001:10:10:10::/64 [0/0]
via ::, FastEthernet0/1
L 2001:10:10:10::1/128 [0/0]
via ::, FastEthernet0/1
L FF00::/8 [0/0]
via ::, Null0
EIGRPv6
<IPv4>
Router-0(config)#router eigrp 10
Router-0(config-router)#network 192.168.1.0 255.255.255.0
Router-0(config-router)#network 10.1.1.0 255.255.255.248
<IPv6>
Router-0(config)#ipv6 unicast-routing (啟動IPv6 unicast-routing)
Router-0(config)#ipv6 router eigrp 20 (設定IPv6 EIGRP,AS=20)
Router-0(config-rtr)#no sh (EIGRPv6設定好後還要啟動才會生效)
Router-0(config-rtr)#int fa0/0
Router-0(config-if)#ipv6 eigrp 20
Router-0(config-if)#int fa0/1
Router-0(config-if)#ipv6 eigrp 20
(不用像IPv4設定network)
Router-0#sh run
!
!
ipv6 unicast-routing
!
!
ip name-server 0.0.0.0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
ipv6 address 2001:1:1:1::1/64
ipv6 eigrp 20
!
interface FastEthernet0/1
ip address 10.1.1.1 255.255.255.248
duplex auto
speed auto
ipv6 address 2001:10:10:10::1/64
ipv6 eigrp 20
!
interface Vlan1
no ip address
shutdown
!
router eigrp 10
network 192.168.1.0
network 10.1.1.0 0.0.0.7
auto-summary
!
ipv6 router eigrp 20
no shutdown
!
ip classless
!
Router-0#sh ipv6 route
IPv6 Routing Table - 6 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
C 2001:1:1:1::/64 [0/0]
via ::, FastEthernet0/0
L 2001:1:1:1::1/128 [0/0]
via ::, FastEthernet0/0
D 2001:2:2:2::/64 [90/30720]
via FE80::2E0:F7FF:FE45:BB02, FastEthernet0/1
C 2001:10:10:10::/64 [0/0]
via ::, FastEthernet0/1
L 2001:10:10:10::1/128 [0/0]
via ::, FastEthernet0/1
L FF00::/8 [0/0]
via ::, Null0
PC>ping 2001:2:2:2::2
Pinging 2001:2:2:2::2 with 32 bytes of data:
Reply from 2001:2:2:2::2: bytes=32 time=30ms TTL=126
Reply from 2001:2:2:2::2: bytes=32 time=19ms TTL=126
Reply from 2001:2:2:2::2: bytes=32 time=100ms TTL=126
Reply from 2001:2:2:2::2: bytes=32 time=22ms TTL=126
OSPFv3
<IPv4>
Router-0(config)#router ospf 10
Router-0(config-router)#network 192.168.1.0 255.255.255.0 area 0
Router-0(config-router)#network 10.1.1.0 255.255.255.248 area 0
<IPv6>
Router-0(config)#ipv6 unicast-routing
Router-0(config)#int fa0/0
Router-0(config-if)#ipv6 ospf 20 area 0
Router-0(config-if)#int fa0/1
Router-0(config-if)#ipv6 ospf 20 area 0
Router-0#sh run
Building configuration...
!
!
ipv6 unicast-routing
!
!
ip name-server 0.0.0.0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
ipv6 address 2001:1:1:1::1/64
ipv6 ospf 20 area 0
!
interface FastEthernet0/1
ip address 10.1.1.1 255.255.255.248
duplex auto
speed auto
ipv6 address 2001:10:10:10::1/64
ipv6 ospf 20 area 0
!
interface Vlan1
no ip address
shutdown
!
router ospf 10
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
network 10.1.1.0 0.0.0.7 area 0
!
ipv6 router ospf 20
log-adjacency-changes
!
Router-0#sh ipv6 rout
IPv6 Routing Table - 6 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
C 2001:1:1:1::/64 [0/0]
via ::, FastEthernet0/0
L 2001:1:1:1::1/128 [0/0]
via ::, FastEthernet0/0
O 2001:2:2:2::/64 [110/2]
via FE80::2E0:F7FF:FE45:BB02, FastEthernet0/1
C 2001:10:10:10::/64 [0/0]
via ::, FastEthernet0/1
L 2001:10:10:10::1/128 [0/0]
via ::, FastEthernet0/1
L FF00::/8 [0/0]
via ::, Null0
IPv6轉IPv4通道(IPv6 Over IPv4 Tunnel)
在企業兩端分別架設具有雙重堆疊的Router(IPv4&IPv6),分別幫封包加IPv4標頭與解IPv4標頭,這樣就可以建立出一條穿越IPv4的通道(Tunnel),讓兩端的IPv6封包可以自由地進出。
Router 2
tunnel destination 192.34.1.4 tunnel mode ipv6ipRouter 4
tunnel destination 192.23.1.2 tunnel mode ipv6ip
沒有留言:
張貼留言