码迷,mamicode.com
首页 > 其他好文 > 详细

RuiJie命令行划VLAN

时间:2017-09-09 18:16:57      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:conf   --   mode   模式   fast   ethernet   net   run   eth   

en  //进入用户模式
conf t  //进入全剧模式
vlan 101  //划VLAN
exit  //退出,划VLAN
vlan 102  //划VLAN
exit  //退出,划VLAN---------------------------------------一下都是
vlan 103
exit
vlan 104
exit
vlan 105
exit
vlan 106
exit
vlan 107
exit
vlan 108
exit
vlan 109
exit
vlan 110
exit
vlan 111
exit
vlan 112
exit
vlan 113
exit
vlan 114
exit
vlan 115
exit
vlan 116
exit

//结束,划VLAN


interface fastEthernet 0/2  //进入2号口接口模式
switch mode access
switch access vlan 101  //给101划分到2接口
exit
interface fastEthernet 0/3  //进入3号口接口模式
switch mode access
switch access vlan 102  /给101划分到3接口
exit
interface fastEthernet 0/4
switch mode access
switch access vlan 103
exit
interface fastEthernet 0/5
switch mode access
switch access vlan 104
exit
interface fastEthernet 0/6
switch mode access
switch access vlan 105
exit
interface fastEthernet 0/7
switch mode access
switch access vlan 106
exit

interface fastEthernet 0/8
switch mode access
switch access vlan 107
exit
interface fastEthernet 0/9
switch mode access
switch access vlan 108
exit
interface fastEthernet 0/10
switch mode access
switch access vlan 109
exit
interface fastEthernet 0/11
switch mode access
switch access vlan 110
exit
interface fastEthernet 0/12
switch mode access
switch access vlan 111
exit
interface fastEthernet 0/13
switch mode access
switch access vlan 112
exit
interface fastEthernet 0/14
switch mode access
switch access vlan 113
exit

interface fastEthernet 0/15
switch mode access
switch access vlan 114
exit
interface fastEthernet 0/16
switch mode access
switch access vlan 115
exit
interface fastEthernet 0/17
switch mode access
switch access vlan 116
exit

//接口模式结束


interface fastEthernet 0/1      //进入1号接口模式
switch mode trunk  //串口模式
switch trunk allowed vlan 101
switch trunk allowed vlan 102
switch trunk allowed vlan 103
switch trunk allowed vlan 104
switch trunk allowed vlan 105
switch trunk allowed vlan 106
switch trunk allowed vlan 107
switch trunk allowed vlan 108
switch trunk allowed vlan 109
switch trunk allowed vlan 110
switch trunk allowed vlan 111
switch trunk allowed vlan 112
switch trunk allowed vlan 113
switch trunk allowed vlan 114
switch trunk allowed vlan 115
switch trunk allowed vlan 116
exit
exit
wr

RuiJie命令行划VLAN

标签:conf   --   mode   模式   fast   ethernet   net   run   eth   

原文地址:http://www.cnblogs.com/ZHENGJUNupperclassman/p/7498698.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!