IPv6已经给大家介绍很多了,下面来说明下,如何在网络中配置IPv6.(文中的配置是使用Cisco 的路由器为例)1 配置IPv6地址
1.1 激活Ipv6功能
默认情况下,Cisco设备的IPv6流量转发功能是关闭的,需要使用IPv6,必须先开启IPv6流量转发功能。
R1(config)#ipv6 unicast-routing
1.2 配置IPv6地址
interface fa0/0
ipv6 address 2011:1:2:3:1:1:1:1/64
show ipv6 interface brief fa0/0
2 使用EUI-64格式配置地址
R1(config)#interface fa1/0
R1(config-if)#ipv6 address 2022:2:2:22::/64 eui-64
R#show interfaces fa1/0
3 仅启用IPv6功能
interface s1/0
ipv6 enalbe
show ipv6 interface brief s1/0
4 配置无编号地址
interface s1/1
ipv6 unnumbered fa0/0
5 配置静态路由
5.1 Directly Attached Static Routes
ipv6 route 2011:2:2:22::/64 s1/1
5.2 Recursive Static Routes
ipv6 route 2022:2:2:22::/64 2012:1:1:11::2
5.3 Fully Specified Static Routes
ipv6 route 2022:2:2:22::/64 fa0/0 2012:1:1:11::2
推荐使用5.2
5.4 静态路由配置试验
loop0(2011:1:1:11::1/64)--R1--(Fa0/0)---------Fa0/0---R2--Loopback0(2022:2:2:22::2/64)
5.4.1 R1的初始化配置
ipv6 unicast-routing
interface fa0/0
ipv6 address 2012:1:1:11::1/64
interface loopback0
ipv6 address 2011:1:1:11::1/64
5.4.2 R2的初始化配置
interface unicast-routing
interface fa0/0
ipv6 address 2012:1:1:11::2/64
interface loopback0
ipv6 address 2022:2:2:22::2/64
5.4.3 R1上配置静态路由信息
ipv6 route 2022:2:2:22::/64 2012:1:1:11::2
show ipv6 route static
5.4.4 R2上配置静态路由信息
ipv6 route 2011:1:1:11::/64 fa0/0 2012:1:1:11::1
show ipv6 route static
阅读(867) | 评论(1) | 转发(0) |