Search This Blog

Tuesday, August 16, 2011

AutoConfiguration & Stateless DHCP

(server) R1 (server)  fa0/0 --------------------------- fa0/0 R2 (client)


R1# conf t
R1(config)# ipv6 unicast-routing
R1(config)# int fa0/0
R1(config-if)# no shut
R1(config-if)# ipv6 address 2011:ABCD::/64 eui-64
R1(config-if)# ipv6 nd prefix 2011:ABCD::/64
R1(config-if)# no ipv6 nd suppress-ra
(have to unsuppress sending on RA on the link)

Let's check the result!

R2# conf t
R2(config)# int fa0/0
R2(config-if)# no shut
R2(config-if)# ipv6 address autoconfig
R2(config-if)# do show ipv6 int fa0/0
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::C001:7FF:FEDA:0
Global unicast address(es):
2011:ABCD::C001:7FF:FEDA:0, subnet is 2011:ABCD::/64 [PRE]

Success!!
Next, we provide DHCP and DOMAIN information to client.

R1# conf t
R1(config)# ipv6 dhcp pool DHCP_POOL
R1(config-dhcp)# dns-server 2011:ABCD::BAD1
R1(config-dhcp)# domain-name test.com
R1(config-dhcp)# int fa0/0
R1(config-if)# ipv6 dhcp server DHCP_POOL
R1(config-if)# ipv6 nd other-config-flag
(other-config-flag is set for other stateful information such as non-IPv6 info like DNS and Domain name in this case)

R2# show ipv6 dhcp int fa0/0
FastEthernet0/0 is in client mode
State is IDLE
List of known servers:
Reachable via address: 2011:ABCD::C000:7FF:FEDA:0
DUID: 00030001C20007DA0000
Preference: 0
Configuration parameters:
DNS server: 2011:ABCD::BAD1
Domain name: test.com
Rapid-Commit: disabled

No comments:

Post a Comment