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

来源:互联网 发布:淘宝9块9包邮专区 编辑:程序博客网 时间:2024/05/13 05:34

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