DHCP v3 中继模式
#基础配置
1:SW1-S配置
[SW1]VLAN 10 [SW1-vlan10]port g1/0/1 [SW1-Vlan-interface10]ipv6 address 100::1 64
[SW1]ipv6 route-static 2000::0 96 100::2 //打通网络
2:SW2-C配置
[SW2-C]vlan 10 [SW2-C-vlan10]int g1/0/1 [SW2-C-GigabitEthernet1/0/1]port access vlan 10 [SW2-C-GigabitEthernet1/0/1]int vlan 10 [SW2-C-Vlan-interface10]ipv6 address 100::2 64
[SW2-C]vlan 100 [SW2-C-vlan100]port g1/0/2 [SW2-C-vlan100]int vlan 100 [SW2-C-Vlan-interface100]ipv6 address 2000::1 96 [SW2-C-Vlan-interface100]undo ipv6 nd ra halt
#DHCP v6配置
1:Server配置
[SW1]dhcp enable [SW1]ipv6 dhcp pool 1 [SW1-dhcp6-pool-1]network 2000::/96 [SW1-dhcp6-pool-1]gateway-list 2000::1 [SW1-dhcp6-pool-1]dns-server 1000::1 [SW1-Vlan-interface10]ipv6 dhcp select server
2:Relay 配置
[SW2-C]dhcp enable [SW2-C-Vlan-interface100]ipv6 nd autoconfig managed-address-flag [SW2-C-Vlan-interface100]ipv6 nd autoconfig other-flag [SW2-C-Vlan-interface100]ipv6 dhcp select relay [SW2-C-Vlan-interface100]ipv6 dhcp relay server-address 100::1
3:查看地址分配
<SW1>dis ipv6 dhcp server ip-in-use Pool: 1 IPv6 address Type Lease expiration 2000::2 Auto(C) Feb 11 10:39:10 2024