交换机端口选择命令

交换机端口选择命令

首页维修大全综合更新时间:2024-12-26 13:42:05

交换机端口选择命令

进入命令模式:

依次输入下列命令

switch> enable //这是进入vlan创建超级模式

switch> vlan database //进入VLAN数据库中添加vlan

switch> vlan 100 //添加vlan100

switch> vlan 200 //添加vlan200

switch> exit //退出database

switch> conf t // 进入配置模式

switch> int f0/1 // 就是将要把端口分配

switch> switchport access vlan 100 // 将端口1分配到vlan100

switch> int range f0/2-f0/10 // 就是将要分配端口2到10

switch> switchport access vlan 200 //将端口2到10 分配给vlan200

switch> exit

switch> exit

switch> show vlan //查看配置情况

大概的步骤是:先进入VLAN database 中创建 两个VLAN;

然后再进入VLAN配置模式,进行两个VLAN端口的分配;

最后查看VLAN的配置情况;

在配置是模式下,配置一个端口为trunk :int f0/24 //回车

switchport mode trunk

大家还看了
也许喜欢
更多栏目

© 2021 3dmxku.com,All Rights Reserved.