配置华为NE40E路由器IPv6邻居发现实验

学习精彩网络技术老师:华为HCIA和HCIP数通eNSP实战视频课
学习IPv6全套课程:IPv6组网实战从入门到精通视频课程

学习精彩网络技术老师:华为、华三、锐捷、WLAN、IPv6等全套视频课程

本举例介绍IPv6邻居发现的配置过程。

组网需求

图1所示,路由器通过接口GE1/0/10和PC相连,PC操作系统为WindowsXP。

图1 配置IPv6邻居发现示例

配置思路

采用如下的思路配置IPv6邻居发现:

在接口GE1/0/10上配置链路本地单播地址和EUI-64(Extended User Interface Server)站点本地单播地址。

在接口GE1/0/10上配置需要发布的RA(Router Advertisement)前缀消息并打开RA消息的发布开关。

数据准备

完成此配置,需准备如下的数据:

接口的链路本地单播地址和EUI-64站点本地单播地址

需要发布的RA前缀消息

操作步骤
  1. 使能路由器的IPv6转发能力

<HUAWEI> system-view

[HUAWEI] ipv6

  1. 配置接口的链路本地单播地址

[HUAWEI] interface gigabitethernet 1/0/10

[HUAWEI-GigabitEthernet1/0/10] undo shutdown

[HUAWEI-GigabitEthernet1/0/10] ipv6 enable

[HUAWEI-GigabitEthernet1/0/10] ipv6 address auto link-local

  1. 配置接口的EUI-64站点本地单播地址和RA消息中的前缀

在路由器上配置需要发布的RA前缀消息并打开RA消息的发布开关后,PC才能自动获得路由器RA报文的地址前缀消息。

[HUAWEI-GigabitEthernet1/0/10] ipv6 address 2001:db8::/64 eui-64

[HUAWEI-GigabitEthernet1/0/10] ipv6 nd ra prefix 2001:db8::/64 1000 1000

[HUAWEI-GigabitEthernet1/0/10] undo ipv6 nd ra halt

  1. 验证配置结果

如果配置成功,可以查看配置的链路本地单播地址和EUI-64站点本地单播地址,以及接口状态为Up,IPv6协议状态为Up。

# 显示路由器的接口信息。

[HUAWEI-GigabitEthernet1/0/10] display this ipv6 interface

GigabitEthernet1/0/10 current state : UP

IPv6 protocol current state : UP

IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE7D:A497

  Global unicast address(es):

    2001:db8::2E0:FCFF:FE7D:A497, subnet is 2001:db8::/64

  Joined group address(es):

    FF02::1:FF7D:A497

    FF02::2

    FF02::1

  MTU is 1500 bytes

  ND DAD is enabled, number of DAD attempts: 1

  ND reachable time is 30000 milliseconds

  ND retransmit interval is 1000 milliseconds

  ND advertised reachable time is 0 milliseconds

  ND advertised retransmit interval is 0 milliseconds

  ND router advertisement max interval 600 seconds, min interval 200 seconds

  ND router advertisements live for 1800 seconds  ND stale time is 1200 seconds  Hosts use stateless autoconfig for addresses    

# 显示PC的信息。

Ethernet adapter 1:

        Connection-specific DNS Suffix  . :

        Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethe

rnet NIC #2

        Physical Address. . . . . . . . . : 00-E0-4C-77-A1-B6

        Dhcp Enabled. . . . . . . . . . . : No

        IP Address. . . . . . . . . . . . : 10.1.1.33

        Subnet Mask . . . . . . . . . . . : 255.0.0.0

        IP Address. . . . . . . . . . . . : 2001:db8::78b3:4397:c0c4:f078

        IP Address. . . . . . . . . . . . : 2001:db8::2e0:4cff:fe77:a1b6

        IP Address. . . . . . . . . . . . : fe80::2e0:4cff:fe77:a1b6%6

        Default Gateway . . . . . . . . . : fe80::288:ff:fe10:b%6

        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

                                            fec0:0:0:ffff::2%1

                                            fec0:0:0:ffff::3%1

# 从路由器Ping PC的链路本地地址,注意需要使用-i参数,来指定链路本地地址的接口。

[HUAWEI-GigabitEthernet1/0/10] ping ipv6 fe80::2e0:4cff:fe77:a1b6 -i gigabitethernet1/0/10

PING FE80::2E0:4CFF:FE77:A1B6: 56 data bytes, press CTRL_C to break

Reply from FE80::2E0:4CFF:FE77:A1B6

bytes=56 Sequence=1 hop limit=64 time = 60 ms

Reply from FE80::2E0:4CFF:FE77:A1B6

bytes=56 Sequence=2 hop limit=64 time = 50 ms

Reply from FE80::2E0:4CFF:FE77:A1B6

bytes=56 Sequence=3 hop limit=64 time = 50 ms

Reply from FE80::2E0:4CFF:FE77:A1B6

bytes=56 Sequence=4 hop limit=64 time = 30 ms

Reply from FE80::2E0:4CFF:FE77:A1B6

bytes=56 Sequence=5 hop limit=64 time = 1 ms

--- FE80::2E0:4CFF:FE77:A1B6 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 1/38/60 ms

# 从路由器Ping PC的EUI-64站点本地单播地址。

[HUAWEI-GigabitEthernet1/0/10] ping ipv6 2001:db8::78b3:4397:c0c4:f078

PING 2001:db8::78B3:4397:C0C4:F078 : 56 data bytes, press CTRL_C to break

Reply from 2001:db8::78B3:4397:C0C4:F078

bytes=56 Sequence=1 hop limit=64 time = 30 ms

Reply from 2001:db8::78B3:4397:C0C4:F078

bytes=56 Sequence=2 hop limit=64 time = 50 ms

Reply from 2001:db8::78B3:4397:C0C4:F078

bytes=56 Sequence=3 hop limit=64 time = 50 ms

Reply from 2001:db8::78B3:4397:C0C4:F078

bytes=56 Sequence=4 hop limit=64 time = 20 ms

Reply from 2001:db8::78B3:4397:C0C4:F078

bytes=56 Sequence=5 hop limit=64 time = 40 ms

--- 2001:db8::78B3:4397:C0C4:F078 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 20/38/50 ms

配置文件

HUAWEI的配置文件

#

 sysname HUAWEI

#

ipv6

#

interface GigabitEthernet1/0/10

 undo shutdown

 ipv6 enable

 ipv6 address 2001:db8::/64 eui-64

 ipv6 address auto link-local

 ipv6 nd ra prefix 2001:db8::/64 1000 1000

 undo ipv6 nd ra halt

#

return

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

精彩网络技术

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值