热门回答
![](http://static-xiaoguotu.17house.com/zt/style/pc/user_logo/6d334122a81a33d1f4c42bc2e2677a1df786a85d.jpg)
- 2024-06-26melodyhanhan
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no ip domain、loo
Switch(config)#ip routing
Switch(config)#int vlan
Switch(config)#int vlan 10(这个是你的第一个VLAN)
Switch(config、if)#ip add A.B.C.D(这里要写成网关地址)
Switch(config、if)#int vlan 20(这里是你的第二个VLAN)
Switch(config、if)#ip add A.B.C.D(这里要写成网关地址)
如果不写这些,你的接口都是access接口,没有ip地址,开了也没有用,因为找不到网关,整个3层交换上也没有个ip,所以不可能会出现路由。
赞18
![](http://static-xiaoguotu.17house.com/zt/style/pc/user_logo/03a56cf6d37e12568e4e5d9f508838ff1a357a1e.jpg)
- 2024-06-07梧桐春雨
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no ip domain、loo
Switch(config)#ip routing
Switch(config)#int vlan
Switch(config)#int vlan 10(这个是你的第一个VLAN)
Switch(config、if)#ip add A.B.C.D(这里要写成网关地址)
Switch(config、if)#int vlan 20(这里是你的第二个VLAN)
Switch(config、if)#ip add A.B.C.D(这里要写成网关地址)
如果不写这些,你的接口都是access接口,没有ip地址,开了也没有用,因为找不到网关,整个3层交换上也没有个ip,所以不可能会出现路由。
赞262
![](http://static-xiaoguotu.17house.com/zt/style/pc/user_logo/e5de5b09bd56735538195078642f9174691312cd.jpg)
- 2024-06-23静静地过
在configure模式下
ip routing
赞279
![](http://static-xiaoguotu.17house.com/zt/style/pc/user_logo/3e582fc2337e44a47c6ec6caee6c80449f2e45e6.jpg)
- 2024-06-16劳伦斯仿古砖
en
conf t
ip routing
进入交换机后倒入此脚本即可
赞178