三层交换机实现 VLAN 互通实例实验目的: 随着企业内部流量的逐步增大, 使用路由器的独臂路由功能来实现不同 vlan 间互访已不能满足企业用户的需求。这时我们可以使用转发速度较快的三层交换机来实现这些功能。通过在三层交换上配置相应的 vlan 地址( 即网关地址), 让不同 vlan 的用户通过三层交换的中继链路实现快速的互访。实验拓扑: 2[1]. ( KB) 2007-6-12 22:43 实验步骤 v在2 层交换机上配置 VLAN SW-2L(config)#vlan 2 SW-2L(config-vlan)#vlan 3 SW-2L(config-vlan)#exit 配置所需要的接口加入到 vlan 中 SW-2L(config)#interface range f0/2 SW-2L(config-if-range)#switchport mode access SW-2L(config-if-range)#switchport access vlan 2 SW-2L(config)#interface range f0/3 SW-2L(config-if-range)#switchport mode access SW-2L(config-if-range)#switchport access vlan 3 v在2 层交换机上配制 Trunk 接口 SW-2L(config)#interface f0/1 SW-2L(config-if)#switchport mode trunk v在3 层交换机上配置与 2 层交换机相同的 VLAN ( 配置步骤与方法相同, 也可以配置一台交换机为 VTP 域服务器,其它交换机为 VTP 域客户端来自动学****vlan 信息) SW-3L(config)#vlan database SW-3L(config-vlan)#vlan 2 SW-3L(config-vlan)#vlan 3 SW-3L(config-vlan)#exit v在3 层交换机上配置中继接口 SW-3L(config)#interface f0/1 SW-3L(config-if)#switchport trunk encapsulation dot1q SW-3L(config-if)#switchport mode trunk v在3 层交换机上启动路由 SW-3L(config)#ip routing v在3 层交换机上配置各 VLAN 的 IP 地址 SW-3L(config)#interface vlan 1 SW-3L(config-if)#ip address SW-3L(config-if)#no shut 以下内容需要回复才能看到 SW-3L(config)#interface vlan 2 SW-3L(config-if)#ip address SW-3L(config-if)#no shut SW-3L(config)#interface vlan 3 SW-3L(config-if)#ip address SW-3L
三层交换机实现VLAN互通实例 来自淘豆网www.taodocs.com转载请标明出处.