(原)Cisco三层交换机SVI(VLAN间路由)

泪湿孤枕 提交于 2019-12-03 08:37:30

PC0PC1分别处在不同VLAN,需通过3层交换机SVI接口实现VLAN间通信



2层交换机配置

vlan 11

 exit

vlan 12

 exit


interface Vlan11

 ipaddress 11.1.1.1 255.255.255.0

!

interface Vlan12

 ipaddress 12.1.1.1 255.255.255.0

!

interface FastEthernet0/1

 switchport mode trunk

 switchport trunk allowed vlan all

 noshutdown

 exit


3层交换机配置

vlan 11

 exit

vlan 12

 exit

!

interface Vlan11

 ipaddress 11.1.1.1 255.255.255.0

!

interface Vlan12

 ipaddress 12.1.1.1 255.255.255.0


interface FastEthernet0/1

 switchport trunk encapsulation dot1q

 switchport mode trunk

 switchport trunk allowed vlan all

 noshutdown

 exit


ip routing






易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!