GUA och LLA exempel

IPv6 (Internet Protocol version 6) har blivit den nya standarden för nätverkskommunikation, med dess huvudsakliga syfte att lösa problemen med adressutarmning som IPv4 står inför. En viktig del av att arbeta med IPv6 är att förstå och kunna konfigurera IPv6 Global Unicast Addresses (GUA) och Link-Local Addresses (LLA). Denna laboration är avsedd att ge dig praktisk erfarenhet av att konfigurera och förstå dessa typer av adresser i en simulerat nätverksmiljö.

Nätverkstopologi

Nätverkstopologin består av två routrar (R1 och ISP, modell 2911 med extra moduler HWIC-2T), två switchar (S1 och S2, modell 2960), och två datorer som är anslutna till switcharna. Dina mål är att konfigurera IPv6 GUA och LLA för datorerna som är anslutna till switcharna S1 och S2 och för routrarna. Genom att göra detta kommer du att skapa en grundläggande IPv6-nätverkskonfiguration.

Konfiguration

  • Router> enable
  • Router# configure terminal
  • Router(config)# hostname R1
  • R1(config)# no ip domain-lookup
  • R1(config)# enable secret ensecP@55
  • R1(config-line)# line console 0
  • R1(config-line)# password conP@55
  • R1(config-line)# login
  • R1(config-line)# logging synchronous
  • R1(config-line)# exec-timeout 5
  • R1(config-line)# exit
  • R1(config)# ipv6 unicast-routing
  • R1(config)# interface Gig0/0
  • R1(config-if)# description Connected to S1
  • R1(config-if)# ipv6 address fe80::1:1 link-local
  • R1(config-if)# ipv6 address 2001:db8:acad:1::1/64
  • R1(config-if)# no shutdown
  • R1(config-if)# exit
  • R1(config)# interface Gig0/1
  • R1(config-if)# description Connected to S2
  • R1(config-if)# ipv6 address fe80::2:1 link-local
  • R1(config-if)# ipv6 address 2001:db8:acad:2::1/64
  • R1(config-if)# no shutdown
  • R1(config-if)# exit
  • R1(config)# interface S0/0/0
  • R1(config-if)# description Connected to ISP
  • R1(config-if)# ipv6 address fe80::3:1 link-local
  • R1(config-if)# ipv6 address 2001:db8:acad:3::b/64
  • R1(config-if)# no shutdown
  • R1(config-if)# end
  • R1# show ipv6 interface brief
  • R1# copy running-config startup-config
  • R1#
  • Router> enable
  • Router# configure terminal
  • Router(config)# hostname ISP
  • ISP(config)# enable secret ensecP@55
  • ISP(config)# line console 0
  • ISP(config-line)# password conP@55
  • ISP(config-line)# login
  • ISP(config-line)# logging synchronous
  • ISP(config-line)# exec-timeout 5
  • ISP(config-line)# exit
  • ISP(config)# ipv6 unicast-routing
  • ISP(config-if)# interface Gig0/1
  • ISP(config-if)# description Connected to ISPS1
  • ISP(config-if)# ipv6 address fe80::1:2 link-local
  • ISP(config-if)# ipv6 address 2001:db8:cafe:1::1/64
  • ISP(config-if)# no shutdown
  • ISP(config-if)# exit
  • ISP(config)# interface S0/0/0
  • ISP(config-if)# description Connected to R1
  • ISP(config-if)# clock rate 2000000
  • ISP(config-if)# ipv6 address fe80::1:2 link-local
  • ISP(config-if)# ipv6 address 2001:db8:acad:3::a/64
  • ISP(config-if)# no shutdown
  • ISP(config-if)# end
  • ISP# show ipv6 interface brief
  • ISP# copy running-config startup-config

PC konfigurering där IPv6 GUA Adressen 2001:DB8:ACAD:1::10 har mattats in. Det samma med adressen för Default Gateway där används en LLA. DNS server är sn1.rivernet.se med IPv6 adress 2001:4860:4860::8888

ns1.rivernet.se är en DNS server med adressering enligt bilden nedan: