华为IPV6-DHCPV3通信配置

1.[AR1]ipv6 //开启IPV6功能

2.[AR1]dhcp enable //启用DHCP功能

3.[AR1]dhcpv6 pool AR1 //创建一个名为AR1的地址池

4.[AR1-dhcpv6-pool-AR1]address prefix 2020::/64 //下发地址的前缀为:2020::/64

5.[AR1-dhcpv6-pool-AR1]excluded-address 2020::1 //排除地址(留些地址静态使用或者备用)

6.[AR1-dhcpv6-pool-AR1]dns-server 8::8 //dns服务器地址

[AR1-dhcpv6-pool-AR1]dns-domain-name taobao.com //dns服务器域名

7.[AR1]interface g0/0/0 //进入接口

8.[AR1-GigabitEthernet0/0/0]ipv6 enable //启用ipv6功能

9.[AR1-GigabitEthernet0/0/0]ipv6 address 2020::1 64 //配置接口地址

10.[AR1-GigabitEthernet0/0/0]ipv6 nd autoconfig managed-address-flag //将ra报文中的m为置1

11.[AR1-GigabitEthernet0/0/0]ipv6 nd autoconfig other-flag //将ra报文中的o位置1

12.[AR1-GigabitEthernet0/0/0]dhcpv6 server AR1 //调用刚才配置的地址池

13.[AR1-GigabitEthernet0/0/0]undo ipv6 nd ra halt //触发路由器下发ra报文

华三交换机 使用IPV6地址通过WEB远程登陆交换机

配置关键点
sys
System View: return to User View with Ctrl+Z.
[H3C]sysname SW1
[SW1]vlan 10
[SW1-vlan10]quit
[SW1]int vlan 10
[SW1-Vlan-interface10]ipv6 address 1::1 64
[SW1-Vlan-interface10]quit
[SW1]int GigabitEthernet1/0/3
[SW1-GigabitEthernet1/0/3]port link-type access
[SW1-GigabitEthernet1/0/3]port access vlan 10
[SW1-GigabitEthernet1/0/3]quit
[SW1]local-user weijianing
New local user added.
[SW1-luser-manage-weijianing]password simple weijianing
[SW1-luser-manage-weijianing]service-type http https
[SW1-luser-manage-weijianing]quit
[SW1]ip http enable
[SW1]ip https enable

交换机配置接口的IPv6地址示例

配置思路
配置接口的IPv6地址思路如下:
1、使能SwitchA和SwitchB的IPv6转发能力
2、配置接口的IPv6地址

操作步骤
1、使能Switch的IPv6转发能力
# 配置SwitchA。
[SwitchA] ipv6

2、配置接口的IPv6地址
[SwitchA] vlan 100
[SwitchA-vlan100] quit
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] port link-type hybrid
[SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 100
[SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan 100
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface vlanif 100
[SwitchA-Vlanif100] ipv6 enable
[SwitchA-Vlanif100] ipv6 address fc00:1::1/64
[SwitchA-Vlanif100] quit

[SwitchA] display ipv6 interface vlanif 100

# 配置SwitchB。
[SwitchB] ipv6
[SwitchB] vlan 100
[SwitchB-vlan100] quit
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] port link-type hybrid
[SwitchB-GigabitEthernet0/0/1] port hybrid pvid vlan 100
[SwitchB-GigabitEthernet0/0/1] port hybrid untagged vlan 100
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface vlanif 100
[SwitchB-Vlanif100] ipv6 enable
[SwitchB-Vlanif100] ipv6 address fc00:1::2/64
[SwitchB-Vlanif100] quit
[SwitchB] display ipv6 interface vlanif 100

3、配置文件
SwitchA的配置文件
#
sysname SwitchA
#
ipv6
#
vlan batch 100
#
interface Vlanif100
ipv6 enable
ipv6 address FC00:1::1/64
#
interface GigabitEthernet0/0/1
port link-type hybrid
port hybrid pvid vlan 100
port hybrid untagged vlan 100
#
return

SwitchB的配置文件
#
sysname SwitchB
#
ipv6
#
vlan batch 100
#
interface Vlanif100
ipv6 enable
ipv6 address FC00:1::2/64
#
interface GigabitEthernet0/0/1
port link-type hybrid
port hybrid pvid vlan 100
port hybrid untagged vlan 100
#
return