Basic configuration IPv6 Cisco IOS

From Teknologisk videncenter
Revision as of 10:58, 31 October 2013 by Rael (talk | contribs) (Fjernet IPv6 enable, da den kun skal bruges hvis man ikke sætter en IPv6 addresse på interfacet. Men vil have IPv6 enabled.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Enabling IPv6 Globally

Start the IPv6 routing process and allow IPv6 CEF switching.

R3(config)#<input>ipv6 unicast-routing</input>
R3(config)#<input>ipv6 cef</input>

Configuring IPv6 address on interface

R3(config)#<input>int fa0/0</input>
R3(config-if)#<input>ipv6 address 2001:16D8:DD85:139::7/64</input>
R3(config-if)#<input>exit</input>
R3(config)#<input>int fa0/1</input>
R3(config-if)#<input>ipv6 address 2001:16D8:DD85:140::1/64</input>
R3(config-if)#<input>ipv6 dhcp relay destination 2001:16D8:DD85:4::166</input>

Showing IPv6 configuration on interface

R3#<input>show ipv6 int fa0/0</input>
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::128C:CFFF:FE2E:916E
  No Virtual link-local address(es):
  Global unicast address(es):
    2001:16D8:DD85:139::7, subnet is 2001:16D8:DD85:139::/64
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF00:7
    FF02::1:FF2E:916E
  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 (using 30000)
  ND advertised reachable time is 0 (unspecified)
  ND advertised retransmit interval is 0 (unspecified)
  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.

Default IPv6 Unicast Route

Notice the 2000::/3 prefix which identifies the total IPv6 Unicast area. It is recomended to use link local address as next-hop address. If using the Global Unicast address Router redirection will not work.

R3(config)#<input>ipv6 route 2000::/3 fastethernet0/0 fe80::221:6bff:fe52:e36</input>

Showing IPv6 Route table

R3#<input>show ipv6 route</input>
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       D - EIGRP, EX - EIGRP external, NM - NEMO, ND - Neighbor Discovery
       l - LISP
       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   2000::/3 [1/0]
     via fastethernet0/0 fe80::221:6bff:fe52:e36
C   2001:16D8:DD85:139::/64 [0/0]
     via FastEthernet0/0, directly connected
L   2001:16D8:DD85:139::7/128 [0/0]
     via FastEthernet0/0, receive
C   2001:16D8:DD85:140::/64 [0/0]
     via FastEthernet0/1, directly connected
L   2001:16D8:DD85:140::1/128 [0/0]
     via FastEthernet0/1, receive
L   FF00::/8 [0/0]
     via Null0, receive

Pinging

ping 2001:200:dff:fff1:216:3eff:feb1:44d7

or

R1#<input>ping www.v6.facebook.com</input>
Translating "www.v6.facebook.com"...domain server (172.16.4.66) [OK]

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2620:0:1CFE:<notice>FACE:B00C</notice>::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 164/168/176 ms

RIP

ipv6 router rip RIPNGR3
!
int fastethernet0/1
 ipv6 address 2001:410:ffff:1::1/64
 ipv6 rip RIPNGR3 enable 
 ipv6 rip default-information originate 
!
int fastethernet0/0 
 ipv6 address 2001:410:ffff:2::1/64
 ipv6 rip RIPNGR3 enable 
 ipv6 rip default-information originate 
!
ipv6 route ::/0 ethernet0