zj2092 发表于 2015-5-25 09:43:52

三层交换机作VLAN间路由配置实例

  
  以下是一个三层交换机3550与二层的2950做的一个Vlan间路由的配置过程:
enable
config t
hostname L3S_3550
enable secret ncie3
exit
-------------更改名称及设置加密的口令
vlan database
vlan 10 name vlan10
vlan 20 name vlan20
vlan 30 name vlan30
exit
show vlan
-------------创建VLAN
int range f0/1 - 3
switchport mode access
switchport access vlan 10
exit
int range f0/4 - 6
switchport mode access
switchport access vlan 20
exit
int range f0/7 - 9
switchport mode access
switchport access vlan 30
--------------把端口划分到VLAN中去
int f0/12
speed 100
duplex full
switchport trunk encapsulation dot1q
swtichprot mode trunk
int vlan 10
no shutdown
ip address 192.168.10.1 255.255.255.0
int vlan 20
no shutdown
ip address 192.168.20.1 255.255.255.0
int vlan 30
no shutdown
ip address 192.168.30.1 255.255.255.0
ip routing
------------------创建干道并定义子接口并开启三层交换机的转发功能
=========================================
enable
config t
hostname L2S_2950
enable secret ncie2
exit
  vlan database
vlan 10 name vlan10
vlan 20 name vlan20
vlan 30 name vlan30
exit
config t
int range f0/1 - 3
switchport access vlan 10
exit
int range f0/4 - 6
switchport access vlan 20
exit
int range f0/7 - 9
switchport access vlan 30
exit
int f0/12
switchport trunk encapsulation dot1q
switchport mode trunk

另外个参考实例说明:
http://www.myplaces.com.cn/index.php/action/viewspace/itemid/18324
页: [1]
查看完整版本: 三层交换机作VLAN间路由配置实例