实验拓扑
pc属于vlan10,网关在switch上;
switch使用vlan20与router三层对接。
实验需求
完成所有设备的配置,使得pc能够访问router的loopback0接口。
实验步骤及配置
switch的配置如下:
[switch] ipv6 #全局激活交换机的ipv6功能[switch] vlan batch 10 20[switch] interface gigabitethernet0/0/1[switch-gigabitethernet0/0/1] port link-type access[switch-gigabitethernet0/0/1] port default vlan 10[switch] interface gigabitethernet0/0/24[switch-gigabitethernet0/0/1] port link-type access[switch-gigabitethernet0/0/1] port default vlan 20[switch] interface vlanif 10[switch-vlanif10] ipv6 enable #激活接口的ipv6功能[switch-vlanif10] ipv6 address 2001::ffff 64 #配置接口的ipv6全局单播地址[switch] interface vlanif 20[switch-vlanif10] ipv6 enable[switch-vlanif10] ipv6 address 2012::1 64[switch] ipv6 route-static :: 0 2012::2 #配置ipv6默认路由
router的配置如下:
[router] ipv6[router] interface gigabitethernet 0/0/0[router-gigabitethernet0/0/0] ipv6 enable[router-gigabitethernet0/0/0] ipv6 address 2012::2 64[router] interface loopback0[router-loopback0] ipv6 enable[router-loopback0] ipv6 address 2001:1 64[router] ipv6 route-static 2001:: 64 2012::1
pc的网卡配置如下:
完成上述配置后,pc即可ping通2001:1。
[router] display ipv6 interface brief*down: administratively down(l): loopback(s): spoofinginterface physical protocolgigabitethernet0/0/0 up up[ipv6 address] 2012::2loopback0 up up(s)[ipv6 address] 2001:1
以上输出的是router的ipv6接口摘要,可以看到我们配置的两个接口ipv6地址。
[router] display ipv6 routing-table protocol staticpublic routing table : staticsummary count : 1static routing table's status : summary count : 1destination : 2001:: prefixlength : 64nexthop : 2012::1 preference : 60cost : 0 protocol : staticrelaynexthop : :: tunnelid : 0x0interface : gigabitethernet0/0/0 flags : rd
以上查看的是router的ipv6路由表(静态路由部分)。
VT6000激光共聚焦扫描显微镜各部分名称和功能
什么是主板SIMM/FLASH/Concurrent PCI
2020年我国工业互联网产业增加值将达到3.78万亿
Pickering推出PXIe版本的频率范围从3GHz到67GHz的PXI射频微波开关模块
专门为急救人员在使用真正临床AED的AED模拟除颤仪
IPv6进阶:IPv6入门实验配置
华为最终是否会加入O-RAN联盟
CPLD在多功能谐波分析仪设计中的应用
人工智能开始对客户体验进行改善和高度定制化
lcr数字电桥工作原理及使用方法_lcr数字电桥作用介绍
液压传感器的构造及工作原理
介绍自适应有限元中几种常见的后验误差
PCB上市企业Trackwise Designs PLC宣布启动公司的出售流程
浅谈各种SiC IGBT器件的制作过程与相关性能
一种实现高性能锂金属电池的简单而有效的策略
苹果延长MacBook Pro显示屏背光服务计划
不被看好的空调业是否还能迎来转折点?
上电时实现延时系统复位的IC,reset IC
《财富》公布中国最具影响力商界领袖榜单
电动汽车锂电池的安全性能以及它的优缺点