RuiJie命令行划VLAN

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

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