IPv6 Basic Configuration

   IPv6
   Adresse IPv6

Activation du routage IPV6

R1#conf t
R1(config)#ipv6 unicast-routing

R2#conf t
R2(config)#ipv6 unicast-routing 

Autoconfiguration de l’adresse IPv6 « Link Local »

Sur R1 et R2

R1(config)#int fa0/0
R1(config-if)#ipv6 enable
R1(config-if)#no shutdown

Vérifications:

R1#debug ipv6 nd
ICMP Neighbor Discovery events debugging is on

*Feb 18 07:01:27.267: ICMPv6-ND: Sending NS for FE80::20F:F7FF:FEB1:A580 on FastEthernet0/0
*Feb 18 07:01:28.271: ICMPv6-ND: DAD: FE80::20F:F7FF:FEB1:A580 is unique.
*Feb 18 07:01:28.271: ICMPv6-ND: Sending NA for FE80::20F:F7FF:FEB1:A580 on FastEthernet0/0
*Feb 18 07:01:28.271: ICMPv6-ND: Address FE80::20F:F7FF:FEB1:A580/128 is up on FastEthernet0/0
*Feb 18 07:01:28.275: ICMPv6-ND: Sending RA from FE80::20F:F7FF:FEB1:A580 to FF02::1 on FastEthernet0/0
R1#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::20F:F7FF:FEB1:A580
Serial0/0                  [administratively down/down]
    unassigned
Serial0/1                  [administratively down/down]
    unassigned

R2#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::20C:CEFF:FE46:DCA0
Serial0/0                  [administratively down/down]
    unassigned
Serial0/1                  [administratively down/down]
    unassigned
R2#show ipv6 interface
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::20C:CEFF:FE46:DCA0
  No global unicast address is configured
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF46:DCA0
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND advertised reachable time is 0 milliseconds
  ND advertised retransmit interval is 0 milliseconds
  ND router advertisements are sent every 200 seconds
  ND router advertisements live for 1800 seconds
  ND advertised default router preference is Medium
  Hosts use stateless autoconfig for addresses.

Configuration d’une adresse IPV6 « Global Unicast » et « link local »

R1(config)#int fa0/0
R1(config-if)#ipv6 address 12:1:1:12::1/64
R1(config-if)#ipv6 address fe80::1 link-local

R2(config)#int fa0/0
R2(config-if)#ipv6 address 12:1:1:12::2/64
R2(config-if)#ipv6 address fe80::2 link-local

Vérifications:

R2#show ipv6 interface fa0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::1
  Global unicast address(es):
    12:1:1:12::2, subnet is 12:1:1:12::/64
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF00:1
    FF02::1:FF00:2
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
R2#ping 12:1:1:12::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12:1:1:12::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/2/8 ms

R2#show ipv6 neighbors
IPv6 Address                              Age Link-layer Addr State Interface
12:1:1:12::1                                2 000f.f7b1.a580  STALE Fa0/0
FE80::1                                     2 000f.f7b1.a580  STALE Fa0/0

Configuration IPv6 d’une interface Loopback0

« eui-64 » permet une attribution automatique le l’adresse IPv6 en utilisant la mac adresse

R1(config)#interface lo0
R1(config-if)#ipv6 address 1:1:1:1::/64 eui-64
R1(config-if)#ipv6 address 1:1:1:1::1/64

R2(config)#interface lo0
R2(config-if)#ipv6 address 2:2:2:2::/64 eui-64
R2(config-if)#ipv6 address 2:2:2:2::2/64

Vérifications:

R2#show ipv6 interface brief
Loopback0                  [up/up]
    FE80::20C:CEFF:FE46:DCA0
    2:2:2:2::2
    2:2:2:2:20C:CEFF:FE46:DCA0

R2#show ipv6 interface lo0
Loopback0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::20C:CEFF:FE46:DCA0
  Global unicast address(es):
    2:2:2:2::2, subnet is 2:2:2:2::/64
    2:2:2:2:20C:CEFF:FE46:DCA0, subnet is 2:2:2:2::/64 [EUI]
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF00:2
    FF02::1:FF46:DCA0
  MTU is 1514 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is not supported
  ND reachable time is 30000 milliseconds
  Hosts use stateless autoconfig for addresses.

Configuration d’une route statique IPv6

R1(config)#ipv6 route 2:2:2:2::/64 12:1:1:12::2

R2(config)#ipv6 route 1:1:1:1::/64 12:1:1:12::1

Vérifications:

R1#show ipv6 route
IPv6 Routing Table - 8 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       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
C   1:1:1:1::/64 [0/0]
     via ::, Loopback0
L   1:1:1:1::/128 [0/0]
     via ::, Loopback0
L   1:1:1:1:20F:F7FF:FEB1:A580/128 [0/0]
     via ::, Loopback0
S 2:2:2:2::/64 [1/0]
     via 12:1:1:12::2
C   12:1:1:12::/64 [0/0]
     via ::, FastEthernet0/0
L   12:1:1:12::1/128 [0/0]
     via ::, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0

R1#ping 2:2:2:2::2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2:2:2:2::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/1/4 ms

Configuration d’une route par défaut

R1(config)#ipv6 route 0::/0 12:1:1:12::2

Vérifications :

R1#show ipv6 route
IPv6 Routing Table - 9 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       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
S   ::/0 [1/0]
     via 12:1:1:12::2
C   1:1:1:1::/64 [0/0]
     via ::, Loopback0
L   1:1:1:1::1/128 [0/0]
     via ::, Loopback0
L   1:1:1:1:20F:F7FF:FEB1:A580/128 [0/0]
     via ::, Loopback0
S   2:2:2:2::/64 [1/0]
     via 12:1:1:12::2
C   12:1:1:12::/64 [0/0]
     via ::, FastEthernet0/0
L   12:1:1:12::1/128 [0/0]
     via ::, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0

Créer un entrée host

R1(config)#ipv6 host R2-Lo0 2:2:2:2::2
R1(config)#exit

R1#ping R2-Lo0

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2:2:2:2::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms

Global unicast Autoconfiguration

Configuration des routeurs R1, R2 et R3

  • Seul R1 à une IPv6 Global unicast
  • Seul R1 à activé le routage IPv6 ( R1(config)#ipv6 unicast-routing )
R1#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::1
    123::1
Loopback0                  [up/up]
    FE80::1
    1:1:1:1::1

R2#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::2
Loopback0                  [up/up]
    FE80::2
    2:2:2:2::2

R3#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::3
Loopback0                  [up/up]
    FE80::3
    3:3:3:3::3

R2 et R3 ont détecté les annonces du routeur R1

R2#show ipv6 routers
Router FE80::1 on FastEthernet0/0, last update 1 min
  Hops 64, Lifetime 1800 sec, AddrFlag=0, OtherFlag=0, MTU=1500
  HomeAgentFlag=0, Preference=Medium
  Reachable time 0 msec, Retransmit time 0 msec
  Prefix 123::/64 onlink autoconfig
    Valid lifetime 2592000, preferred lifetime 604800

Autoconfiguration de R2 et R3

R2(config)#int fa0/0
R2(config-if)#ipv6 address autoconfig

R3(config)#int fa0/0
R3(config-if)#ipv6 address autoconfig

Vérifications:

R2#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::2
    123::2
Loopback0                  [up/up]
    FE80::2
    2:2:2:2::2

R3#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::3
    123::3
Loopback0                  [up/up]
    FE80::3
    3:3:3:3::3

R2 et R3 obtiennent un routeur par défaut puisque leur routage IPv6 n’est pas actif ( comme des hosts)

R3#show ipv6 interface fa0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::3
  Global unicast address(es):
    123::3, subnet is 123::/64 [EUI/CAL/PRE]
      valid lifetime 2591892 preferred lifetime 604692
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF00:3
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  Default router is FE80::1 on FastEthernet0/0

Modification du timer « ND reachable time »

R3(config)#int fa0/0
R3(config-if)#ipv6 nd reachable-time ?
    Reachability time in milliseconds

R3(config-if)#ipv6 nd reachable-time 5000

Vérifications:

R3#show ipv6 interface fa0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::3
  Global unicast address(es):
    123::3, subnet is 123::/64 [EUI/CAL/PRE]
      valid lifetime 2591870 preferred lifetime 604670
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF00:3
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 5000 milliseconds

Configuration d’une association statique IPv6 / Mac Address

R3#conf t
R3(config)#ipv6 neighbor 123::2 Fa0/0 000c.ce46.dca0

R3#show ipv6 neighbors
IPv6 Address                              Age Link-layer Addr State Interfac
123::2                                      - 000c.ce46.dca0  REACH Fa0/0
123::1                                     10 000f.f7b1.a580  STALE Fa0/0
FE80::2                                     2 000c.ce46.dca0  STALE Fa0/0

Activation de IPv6 sur les switch 3560

SW1#conf t
SW1(config)#sdm prefer dual-ipv4-and-ipv6 default
Changes to the running SDM preferences have been stored, but cannot take effect
until the next reload.
Use 'show sdm prefer' to see what SDM preference is currently active.

SW1#wr
Building configuration...
[OK]
SW1#reload
Proceed with reload? [confirm]
This entry was posted in IPv6. Bookmark the permalink.

Comments are closed.