admin 管理员组

文章数量: 1086019


2024年4月28日发(作者:echarts官网legend)

一、在SwA上分别创建VLAN2和VLAN3,并把端口划归相应的VLAN

Switch>enable //进入特权模式

Switch#vlan database //进入vlan配置模式

% Warning: It is recommended to configure VLAN from config mode,

as VLAN database mode is being deprecated. Please consult user

1 / 10

documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 2 name NetA //划分vlan 2名称为NetA

VLAN 2 added:

Name: NetA

Switch(vlan)#vlan 3 name NetB //划分vlan 3名称为NetB

VLAN 3 added:

Name: NetB

Switch(vlan)#exit

APPLY completed.

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int f0/1 //进入交换机的Fastethernet0/1接口

2 / 10


本文标签: 进入 模式 端口 官网 名称