IPV6配置缺省路由与静态路由

拓步图如下:

这里是用华为的模拟仿真软件就行实验

实验步奏:

1.配置ipv6地址,检查网络连通性

2.配置缺省路由

3.配置静态路由

命令提示:

user-interface current 用来进入当前用户界面视图。

idle-timeout 580 进入用户界面视图后,设置时间,设备就不会断时间关闭,而是会按照设置的时间关闭

Int g0/0/0 IPV6 enable //端口下开启ipv6功能

Dis ipv6 int g0/0/0 //显示端口IPV6详情

display ipv6 routing-table protocol static//查看静态路由表

一.配置

在pc1、2中配置好,尤其记得点击应用

开启设备后,要现在视图下开启ipv6,然后再去接口开启ipv6

AR1命令:

sys sys AR1 user-interface current idle-timeout 999 q ipv6 int g0/0/0 ipv6 enable ipv6 add 2001::11 64 int g0/0/1 ipv6 enable ipv6 add 2012::1 64

AR2: sys sys AR2 user-interface current idle-timeout 999 q ipv6 int g0/0/1 ipv6 enable ipv6 add 2012::2 64 int g0/0/0 ipv6 enable ipv6 add 2023::1 64 q

AR3: sys sys AR3 user-interface current idle-timeout 999 q ipv6 int g0/0/0 ipv6 enable ipv6 add 2023::2 64 int g0/0/1 ipv6 enable ipv6 add 2034::1 64 q

AR4: sys sys AR4 ipv6 user-interface current idle-timeout 999 q int g0/0/1 ipv6 enable ipv6 add 2034::2 64 int g0/0/0 ipv6 enable ipv6 add 2008::11 64

q

配置完相互ping通即可。在执行ping命令,要在后头加上ipv6,例:

ping ipv6 2023::1 这样即可

二、配置缺省路由

AR1配置: ipv6 route-static :: 0 2012::2 dis ipv6 routing-table protocol static 查看配置情况

AR4: ipv6 route-static :: 0 2034::1

然后抓包发现,数据过去了,单只是单方面传输。

三、配置默认路由

由于ipv6的特殊性,所以要讲所有网段加入

AR2: ipv6 route-static 2001:: 64 2012::1 ipv6 route-static 2008:: 64 2023::2 ipv6 route-static 2034:: 64 2023::2

AR3: ipv6 route-static 2012:: 64 2023::1 ipv6 route-static 2001:: 64 2023::1 ipv6 route-static 2008:: 64 2034::2

最后ping通即可

AR1也可ping通其他

经验分享 程序员 微信小程序 职场和发展