码迷,mobileinhere.cn
首页 > 其他好文 > 详细

配置vlan

时间:2018-07-31 19:34:27      阅读:11      评论:0      收藏:0      [点我收藏+]

标签:range   图片   configure   png   name   fast   ess   .com   com   

技术分享图片

sw1

switch>en
switch#conf t
enter configuration commands, one per line.  end with cntl/z.

switch(config)#hostname r1

r1(config)#line console 0

r1(config-line)#logging synchronous 

r1(config-line)#exec-timeout 00
r1(config-line)#end

r1#conf t
enter configuration commands, one per line.  end with cntl/z.
r1(config)#vlan 2
r1(config-vlan)#name caiwu

r1(config-vlan)#vlan 3
r1(config-vlan)#name it
r1(config-vlan)#end
 
r1(config)#interface range fastethernet 0/1-2

r1(config-if-range)#switchport mode access 

r1(config-if-range)#switchport access vlan 2
r1(config-if-range)#exit

r1(config)#interface range fastethernet 0/3-5

r1(config-if-range)#switchport mode access 

r1(config-if-range)#switchport access vlan 3
r1(config-if-range)#exit
r1(config)#end
r1#
%sys-5-config_i: configured from console by console

r1#show vlan brief 

vlan name                             status    ports
---- -------------------------------- --------- -------------------------------
1    default                          active    fa0/6, fa0/7, fa0/8, fa0/9
                                                fa0/10, fa0/11, fa0/12, fa0/13
                                                fa0/14, fa0/15, fa0/16, fa0/17
                                                fa0/18, fa0/19, fa0/20, fa0/21
                                                fa0/22, fa0/23, fa0/24, gig0/1
                                                gig0/2
2    caiwu                            active    fa0/1, fa0/2
3    it                               active    fa0/3, fa0/4, fa0/5
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    
r1#

 

配置vlan

标签:range   图片   configure   png   name   fast   ess   .com   com   

原文地址:www.cnblogs.com/peter1007/p/9397172.html

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
2014 mobileinhere.cn 版权所有 京icp备13008772号-2
华人娱乐注册