目录
一、相关知识
1、在多层交换机中配置VLAN间路由选择(IVR),通常配称为交换虚拟接口(SVI)。
2、启用命令:IP routing启用路由选择进程。
3、使用命令:interface VLAN X 为每个VLAN创建一个虚拟接口。
4、给每个虚拟接口分配合适的IP地址
二、拓扑图
三、配置过程
1、ZY-Switch-1交换机配置命令:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname ZY-Switch-1
ZY-Switch-1(config)#vlan 10
ZY-Switch-1(config-vlan)#exit
ZY-Switch-1(config)#vlan 20
ZY-Switch-1(config-vlan)#exit
ZY-Switch-1(config)