码迷,mamicode.com
首页 > 其他好文 > 详细

H3C Huawei 交换机 IPv6环境配置

时间:2017-12-14 18:03:21      阅读:828      评论:0      收藏:0      [点我收藏+]

标签:outbound   current   mtu   服务器   ack   prefix   pos   lob   man   

# 使能IPv6报文转发功能。

<Sysname> system-view

[Sysname] ipv6

# 使能DHCPv6服务器功能。

<Sysname> system-view

[Sysname] ipv6 dhcp server enable

#创建前缀池
ipv6 dhcp prefix-pool prefix-pool-number prefix prefix/prefix-len assign-len assign-len


# 创建DHCPv6地址池1,并进入DHCPv6地址池视图。

<Sysname> system-view

[core-S5500-IRF]ipv6 dhcp prefix-pool 6 prefix FEC0:FEC0:FEC0:1010::/64 assign-len 64

[Sysname] ipv6 dhcp pool 6

[Sysname-dhcp6-pool-6] prefix-pool 64
[Sysname-dhcp6-pool-6] domain-name cnicg-ipv6

 

[core-S5500-IRF-Vlan-interface80]dis this
#
interface Vlan-interface80
undo ipv6 nd ra halt
ipv6 nd autoconfig other-flag
ipv6 address FEC0:FEC0:FEC0:1010::1/64
ipv6 address auto link-local
ip address 10.10.0.1 255.255.252.0
packet-filter 3050 inbound
packet-filter 3050 outbound
ip policy-based-route PBR2248to50m
ipv6 dhcp server apply pool 6 allow-hint preference 255 rapid-commit
#

[core-S5500-IRF]dis ipv6 interface vlan 80
Vlan-interface80 current state :UP
Line protocol current state :UP
IPv6 is enabled, link-local address is FE80::86D9:31FF:FEC3:CF81
Global unicast address(es):
FEC0:FEC0:FEC0:1010::1, subnet is FEC0:FEC0:FEC0:1010::/64
Joined group address(es):
FF02::1:FF00:0
FF02::1:FF00:1
FF02::1:FFC3:CF81
FF02::2
FF02::1
FF02::1:2
FF05::1:3
MTU is 1500 bytes

[core-S5500-IRF-Vlan-interface33]dis th
#
interface Vlan-interface33
ipv6 address FEC0:FEC0:FE19:2168::3/64
ipv6 address auto link-local
ip address 192.168.1.3 255.255.255.0
#

ipv6 route-static FEC0:FEC0:FEC1:7216::3 64 Vlan-interface 33 FEC0:FEC0:FE19:2168::7

#Huawei-S5700 ipv6配置

[IDC-S5700-iStack]dhcpv6 pool 6
[IDC-S5700-iStack-dhcpv6-pool-6]dis this
#
dhcpv6 pool 6
address prefix FEC0:FEC0:FEC1:7216::/64
dns-domain-name niot-ipv6
#

在接口视图下使能DHCPv6服务器
[IDC-S5700-iStack]dhcp enable

执行命令ipv6,全局使能IPv6功能
[IDC-S5700-iStack]ipv6

[IDC-S5700-iStack-Vlanif40]dis this
#
interface Vlanif40
ipv6 enable
ip address 172.16.17.3 255.255.0.0
ipv6 address FEC0:FEC0:FEC1:7216::3/64
ipv6 address auto link-local
undo ipv6 nd ra halt
ipv6 nd autoconfig other-flag
dhcpv6 server 6
#

[IDC-S5700-iStack-Vlanif33]dis this
#
interface Vlanif33
ipv6 enable
ip address 192.168.1.7 255.255.255.0
ipv6 address FEC0:FEC0:FE19:2168::7/64
ipv6 address auto link-local
#

ipv6 route-static FEC0:FEC0:FEC0:1010::1 64 Vlanif 33 FEC0:FEC0:FE19:2168::3

#检查配置结果
display dhcpv6 duid
display dhcpv6 pool 6
display dhcpv6 server [ database | [ statistics ] [ interface interface-type interface-number ] ]

 

ipv6 nd autoconfig managed-address-flag命令用来配置被管理地址的配置标志位为1,即主机通过有状态自动配置(例如DHCPv6服务器)获取IPv6地址。

ipv6 nd autoconfig other-flag命令用来配置其他信息配置标志位为1,即主机通过有状态自动配置(例如DHCPv6服务器)获取除IPv6地址外的其他信息。

ipv6 nd ra halt命令用来抑制RA消息的发布。
undo ipv6 nd ra halt命令用来取消对RA消息发布的抑制。

H3C Huawei 交换机 IPv6环境配置

标签:outbound   current   mtu   服务器   ack   prefix   pos   lob   man   

原文地址:http://www.cnblogs.com/fatt/p/8038746.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!