Professional Documents
Culture Documents
Address Types:: 2 3.4 X 10 Addresses 2 4.3 X 10 Addresses
Address Types:: 2 3.4 X 10 Addresses 2 4.3 X 10 Addresses
2031:0000:130F:0000:0000:0000:130B:09C0
2031:0:130F :: 130B:9C0
Example: 2001:0bd8:1234::/48
Address Types: In IPv6, a single interface may have multiple addresses of any type:
1- Unicast [one one]
Link Local: FE80:: to FEB0::/12. like Automatic IP Addressing [169.254.x.x/16] in IPv4
-They wont communicate with nodes outside the link.
-auto-configued addresses, neighbour discovery, router discovery, routing protocols.
-eliminate the gateway and global addresses.
Site Local: FEC0:: to FEF0::/12. like Private Addresses Ranges in IPv4
-They wont communicate with outside the site.
Global Unicast: 2000::/3 (i.e. start with 001 binary). Similar to Public Addresses in IPv4
- i.e. routable by internet routers.
Loopback: ::1 (0:0:0:0:0:0:0:1). like 127.0.0.1 in IPv4.
-Every interface has at least one loopback address.
Unspecified: :: (all zeros) is used in the source field of a device that looks for an IP.
Address Assignment
Dynamic
- Stateless Auto-configuration with ipv6 address auto-config command
- DHCP for IPv6 (stateful)
Static
- Manual with ipv6 address command
- EUI-64 with ipv6 address eui-64 command. (the Interface Identifier is calculated from the MAC)
Remember: Interface Identifier is the host portion of an IPv6 address.
The EUI-64 address is calculated in two steps:
1- Invert the 7th bit (U/L bit) in MAC
2- Insert FFFE in the middle at the 24th bit.
Example:Consider the MAC Address 1234.5678.9012:
1=0001 and 2=0010. Inverting the 7th bit gives us: 0001 0000 = 10. The MAC address becomes:
1034.5679.90122 .
The resulted Interface Identifier is: 1034:56FF:FE78:9012
3- Translation:
Using NAT-PT
IPv6 Configuration
Static address
R(config)#ipv6 unicast-routing
(Turn it on, because its not enabled by default)
R(config)#int f0/0
R(config-if)#ipv6 address 155:1::1/64
R(config-if)#ipv6 enable
R#sh ipv6 interface
EUI-64 address
R(config)#ipv6 unicast-routing
R(config)#int f0/0
R(config-if)#mac-address 1234.5678.9012
R(config-if)#ipv6 address 155:1::/64 eui-64
R(config-if)#ipv6 enable
R#sh ipv6 interface