1. 进入华为S2300交换机配置界面并给交换机命名

<Quidway>sys    //进入system-view视图进行交换机配置
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname Mill2meetingroom-S2300  //设置交换机名字为Mill2meetingroom-S2300(二厂会议室华为S2300)
[Mill2meetingroom-S2300]
2. 批量创建VLAN

[Mill2meetingroom-S2300]vlan batch 2 to 21

Please wait...

Done.//添加VLAN 2 到 VLAN 21(VLAN 1为默认VLAN)

[Mill2meetingroom-S2300-vlan2]
3. 建立端口组并把端口批量加入端口组里,批量修改端口类型(port link-type

[Mill2meetingroom-S2300]port-group accessmeetingroom  //建立端口组accessmeetingroom

[Mill2meetingroom-S2300-port-group-accessmeetingroom]group-member Ethernet 0/0/1

to Ethernet 0/0/22   //添加组成员1到22号端口

[Mill2meetingroom-S2300-port-group-accessmeetingroom]port link-type access

//设置改端口组成员为access口

Execute command [port link-type access ] for port [Ethernet0/0/1] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/2] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/3] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/4] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/5] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/6] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/7] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/8] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/9] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/10] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/11] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/12] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/13] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/14] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/15] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/16] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/17] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/18] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/19] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/20] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/21] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/22] is finished.

[Mill2meetingroom-S2300-port-group-accessmeetingroom]quit //设置成功后退出端口组配置

4. 批量划分端口VLAN
[Mill2meetingroom-S2300]vlan 7

[Mill2meetingroom-S2300-vlan7]port ethernet 0/0/1 to 0/0/16  //把1到16号口划分给VLAN 7

[Mill2meetingroom-S2300-vlan7]quit
[Mill2meetingroom-S2300]vlan 6

[Mill2meetingroom-S2300-vlan6]port ethernet 0/0/17 to 0/0/22 //把1到16号口划分给VLAN 6

[Mill2meetingroom-S2300-vlan6]quit
5. 设置trunk

[Mill2meetingroom-S2300]port-group trunkmeetingroom

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]group-member ethernet 0/0/23

to ethernet 0/0/24

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]port link-type trunk

Error: Link-type trunk conflicts with default VLAN attribute on a port.

Execute command [port link-type trunk] for port [Ethernet0/0/23] is finished.

Error: Link-type trunk conflicts with default VLAN attribute on a port.

Execute command [port link-type trunk] for port [Ethernet0/0/24] is finished.

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]port trunk allow-pass vlan a

ll

Execute command [port trunk allow-pass vlan all] for port [Ethernet0/0/23] is fi

nished.

Execute command [port trunk allow-pass vlan all] for port [Ethernet0/0/24] is fi

nished.

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]negotiation auto

Execute command [negotiation auto] for port [Ethernet0/0/23] is finished.

Execute command [negotiation auto] for port [Ethernet0/0/24] is finished.

6. 设置交换机管理地址192.168.15.24
[Mill2meetingroom-S2300]int vlanif 1
[Mill2meetingroom-S2300-Vlanif1]shutdown //关闭vlanif 1

Info: Interface Vlanif1 has already been shutdown.

[Mill2meetingroom-S2300]interface vlanif 15

[Mill2meetingroom-S2300-Vlanif15]ip address 192.168.15.24 255.255.255.0

[Mill2meetingroom-S2300-Vlanif15]undo shutdown
Info: Interface Vlanif15 is not shutdown.
[Mill2meetingroom-S2300-Vlanif15]quit

[Mill2meetingroom-S2300]ip route-static 0.0.0.0 0.0.0.0 192.168.15.254 preferenc

e 60
 

7. 设置console

[Mill2meetingroom-S2300]user-interface con 0

[Mill2meetingroom-S2300-ui-console0]idle-timeout 0 0

[Mill2meetingroom-S2300-ui-console0]authentication-mode password

[Mill2meetingroom-S2300-ui-console0]set authentication password cipher dabaicai

[Mill2meetingroom-S2300-ui-console0]quit

8. 设置远程登录

[Mill2meetingroom-S2300]user-interface vty 0 4

[Mill2meetingroom-S2300-ui-vty0-4]idle-timeout 0 0

[Mill2meetingroom-S2300-ui-vty0-4]authentication-mode password

[Mill2meetingroom-S2300-ui-vty0-4]set authentication password cipher dabaicai

[Mill2meetingroom-S2300-ui-vty0-4]user privilege level 15

[Mill2meetingroom-S2300-ui-vty0-4]quit

 

9. 查看交换机当前配置

[Mill2meetingroom-S2300]display current-configuration

#

Error:Wrong parameter found

#

sysname Mill2meetingroom-S2300

cluster enable

ntdp enable

ntdp hop 16

ndp enable

vlan batch 1 to 21

#

bpdu enable

[2cha
#H

cluster enable-vty0-4]set aut

ntdp enableassword ciph

ntdp hop 16

ndp enable

#

voice-vlan mac-address 0001-e300-0000 mask ffff-ff00-0000 description Siemens p

hone

voice-vlan mac-address 0003-6b00-0000 mask ffff-ff00-0000 description Cisco pho

ne

voice-vlan mac-address 0004-0d00-0000 mask ffff-ff00-0000 description Avaya pho

ne

voice-vlan mac-address 0060-b900-0000 mask ffff-ff00-0000 description Philips/N

EC phone

voice-vlan mac-address 00d0-1e00-0000 mask ffff-ff00-0000 description Pingtel p

hone

voice-vlan mac-address 00e0-7500-0000 mask ffff-ff00-0000 description Polycom p

hone

voice-vlan mac-address 00e0-bb00-0000 mask ffff-ff00-0000 description 3com phon

e
#

undo http server enable

#
interface Vlanif1                     
shutdown

ip address dhcp-alloc

#
interface Vlanif15

ip address 192.168.15.24 255.255.255.0

#
interface Ethernet0/0/1

port link-type access

port default vlan 7

ntdp enable

ndp enable

#
interface Ethernet0/0/2

port link-type access

port default vlan 7

ntdp enable

ndp enable     
#
interface Ethernet0/0/3

port link-type access

port default vlan 7

ntdp enable

ndp enable
#
interface Ethernet0/0/4

port link-type access

port default vlan 7

ntdp enable

ndp enable
#
interface Ethernet0/0/5

port link-type access

port default vlan 7

ntdp enable

ndp enable
#
interface Ethernet0/0/6

port link-type access

port default vlan 7

ntdp enable

ndp enable
#
interface Ethernet0/0/7

port link-type access

port default vlan 7

ntdp enable

ndp enable
#
interface Ethernet0/0/8

port link-type access

port default vlan 7

ntdp enable

ndp enable
#
interface Ethernet0/0/9

port link-type access

port default vlan 7

ntdp enable

ndp enable
#
interface Ethernet0/0/10

port link-type access

port default vlan 7

ntdp enable

ndp enable   
#
interface Ethernet0/0/11

port link-type access

port default vlan 7

ntdp enable

ndp enable   
#
interface Ethernet0/0/12

port link-type access

port default vlan 7

ntdp enable

ndp enable   
#
interface Ethernet0/0/13

port link-type access

port default vlan 7

ntdp enable

ndp enable   
#
interface Ethernet0/0/14

port link-type access

port default vlan 7

ntdp enable

ndp enable   
#
interface Ethernet0/0/15

port link-type access

port default vlan 7

ntdp enable

ndp enable   
#
interface Ethernet0/0/16

port link-type access

port default vlan 7

ntdp enable

ndp enable   
#
interface Ethernet0/0/17

port link-type access

port default vlan 6

ntdp enable

ndp enable
#
interface Ethernet0/0/18

port link-type access

port default vlan 6

ntdp enable

ndp enable
#
interface Ethernet0/0/19

port link-type access

port default vlan 6

ntdp enable

ndp enable
#
interface Ethernet0/0/20

port link-type access

port default vlan 6

ntdp enable

ndp enable
#
interface Ethernet0/0/21

port link-type access

port default vlan 6

ntdp enable

ndp enable
#
interface Ethernet0/0/22

port link-type access

port default vlan 6

ntdp enable

ndp enable
#
interface Ethernet0/0/23
 port default vlan 1

port trunk allow-pass vlan 1 to 4094

ntdp enable

ndp enable
#
interface Ethernet0/0/24
port default vlan 1

port trunk allow-pass vlan 1 to 4094

ntdp enable

ndp enable
#
interface GigabitEthernet0/0/1
 port default vlan 1

ntdp enable

ndp enable
#
interface GigabitEthernet0/0/2

port default vlan 1

ntdp enable

ndp enable
#
interface NULL0
aaa

authentication-scheme default

authorization-scheme default
accounting-scheme default

domain default

domain default_admin

#

ip route-static 0.0.0.0 0.0.0.0 192.168.15.254

#
user-interface con 0
authentication-mode password

set authentication password cipher EJ<VT&QM)6+Q=^Q`MAF4<1!!

idle-timeout 0 0
user-interface vty 0 4

user privilege level 15

set authentication password cipher EJ<VT&QM)6+Q=^Q`MAF4<1!!

idle-timeout 0 0
#

port-group accessmeetingroom

group-member Ethernet0/0/1
group-member Ethernet0/0/2
group-member Ethernet0/0/3
Ethernet0/0/4
group-member Ethernet0/0/5
group-member Ethernet0/0/6
group-member Ethernet0/0/7
group-member Ethernet0/0/8
group-member Ethernet0/0/9
group-member Ethernet0/0/10

group-member Ethernet0/0/11

group-member Ethernet0/0/12
group-member Ethernet0/0/13
group-member Ethernet0/0/14

group-member Ethernet0/0/15

group-member Ethernet0/0/16
group-member Ethernet0/0/17
group-member Ethernet0/0/18
group-member Ethernet0/0/19

group-member Ethernet0/0/20

group-member Ethernet0/0/21
group-member Ethernet0/0/22
#

port-group trunkmeetingroom

group-member Ethernet0/0/23
group-member Ethernet0/0/24
#
Return
10. 错误处理

出现的错误提示的原因在于设置trunk口时首先需要取消端口默认VLAN(port default vlan), 也就是VLAN 1

[Mill2meetingroom-S2300]port-group trunkmeetingroom

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]undo port default vlan

Execute command [undo port default vlan] for port [Ethernet0/0/23] is finished.

Execute command [undo port default vlan] for port [Ethernet0/0/24] is finished.

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]port link-type trunk

Execute command [port link-type trunk] for port [Ethernet0/0/23] is finished.

Execute command [port link-type trunk] for port [Ethernet0/0/24] is finished.

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]port trunk allow-pass vlan a
ll

Execute command [port trunk allow-pass vlan all] for port [Ethernet0/0/23] is fi

nished.

Execute command [port trunk allow-pass vlan all] for port [Ethernet0/0/24] is fi

nished.
[Mill2meetingroom-S2300-port-group-trunkmeetingroom]negotiation auto

Execute command [negotiation auto] for port [Ethernet0/0/23] is finished.

Execute command [negotiation auto] for port [Ethernet0/0/24] is finished.

[Mill2meetingroom-S2300-port-group-trunkmeetingroom]quit
11. 保存配置
[Mill2meetingroom-S2300]quit
<Mill2meetingroom-S2300>save

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

Now saving the current configuration to the device.

Jan  1 2008 01:36:17 Mill2meetingroom-S2300 %%01CFM/4/SAVE(l): When deciding whe

ther to save configuration to the device, the user chose Y.................

Info: The current configuration was saved to the device successfully.

重新查看S2300配置,trunk口已经配置完毕。
<Mill2meetingroom-S2300>disp cu
#

interface Ethernet0/0/23

port link-type trunk
 port trunk allow-pass vlan 1 to 4094
 ntdp enable
 ndp enable
#

interface Ethernet0/0/24

 port link-type trunk
 port trunk allow-pass vlan 1 to 4094
 ntdp enable
 ndp enable

转载于:https://blog.51cto.com/martinjulibo/985451

华为S2300交换机基本配置相关推荐

  1. 华为S5348交换机基本配置

    华为S5348交换机基本配置 物理端口与MAC地址绑定 登录到S5348交换机,并用system-view命令进入系统视图. 使用mac-address命令对物理端口所允许通过的mac地址进行绑定,具 ...

  2. 华为新版交换机端口配置由TRUNK改为ACCESS

    在华为新版交换机端口配置由TRUNK改为ACCESS遇到的现象: 在接口模式下直接修改TRUNK,报错: [Quidway-GigabitEthernet0/0/7]port link-type ac ...

  3. ensp 堆叠_华为CE6800交换机堆叠配置

    #堆叠线缆连接 CE6800-1 40ge 1/0/1 to CE6800-2 40ge 1/0/1 CE6800-1 40ge 1/0/2 to CE6800-2 40ge 1/0/2 #通过CON ...

  4. 华为路由器交换机eNSP配置命令

    华为交换机基础配置命令参考 交换机可以隔离冲突域,路由器可以隔离广播域,这两种设备在企业网络中应用越来越广泛.随着越来越多的终端接入到网络中,网络设备的负担也越来越重,这时网络设备可以通过华为专有的V ...

  5. 华为光纤交换机zone配置

    需求: 划分2个zone,接入两个不同业务群集. 环境: 华为光纤交换机SNS2124 IOIO:串口,只用于串口登录 admin/Hawei12#$ 有网络图标的口:管理口,管理地址10.77.77 ...

  6. 华为S5700交换机的配置(上)

    Quidway 华为S5700交换机的使用 1. 了解华为交换机的外观和众多的接口的 2. 准备串口线(console线和com口转usb的线,在电脑有vga接口的情况下使用console线就可以)和 ...

  7. 【华为S5735交换机telnet配置不成解决案例】

    笔者近期刚拿到一台华为S5735S-24T4X交换机,想配置telnet登录来管理设备,之前配置过华为交换机路由器的telnet和ssh,尤其是在模拟器是配置过多次,认为这是一个简单的事情.按说不在话 ...

  8. 华为S交换机堆叠配置大全

    作为网络管理员的我们都会面对配置交换机的工作,毕竟几乎所有中小企业都建立了自己的网络,连接各个计算机的最常见的设备就是交换机.因此维护交换机这样的工作就落到了网络管理员的身上. 可能有的读者会说 -- ...

  9. 华为S6720交换机堆叠配置

    环境:华为S6720交换机两台.专用堆叠线2条 1.配置 [switchA]stack slot 0 priority 200 [switchA]interface stack-port 0/1 [s ...

最新文章

  1. U-Net 3+: 全尺度的跳跃连接的 UNet
  2. 大话中文文本分类之TextRNN
  3. vue2.0无限滚动加载数据插件
  4. (SpringMVC)概述和简单使用
  5. 学习的过程和挖矿其实很像
  6. CRC冗余校验举例和原理
  7. python编程实现撤销上一步操作_78行Python代码实现现微信撤回消息功能
  8. 【Spring】Could not commit JPA transaction RollbackException: Transaction marked as rollbackOnly
  9. 浙大计算机学院2021复试名单,浙江大学2021年硕士研究生各院复试细则及复试名单汇总...
  10. 第九章 搭建Hadoop 2.2.0版本HDFS的HA配置
  11. 报表的查询条件只能在数据上方吗?
  12. DIP 电源跌落瞬时中断(Voltage dips)
  13. 枪林弹雨显示服务器正在维修,枪林弹雨Patcher 已停止工作解决方法教程
  14. Go命令行调用Python运行ParlAI模型,同步输入输出并调用百度翻译API翻译
  15. 【IOI2018】【luoguP4898】 seats 排座位 (线段树)
  16. 什么是长连接?长连接、短连接、三次握手
  17. 开一个羽毛球馆有哪些支出?
  18. ural 2032 Conspiracy Theory and Rebranding 整点三角形
  19. 微信小程序实现人脸识别注册登录
  20. 世界是由什么组成的java_世界是由什么组成的?

热门文章

  1. 【编程工具】程序中出现中文乱码的解决方法
  2. MODBUS功能码解释
  3. c语言编码孔融分梨,孔融分梨的故事
  4. Pytorch-《Deep learning with pytorch》1.2.2 使用GAN将“马变成斑马”
  5. 斑马线及让行的变迁与启示
  6. python对txt分段处理_使用python对txt格式的小说进行处理
  7. discuz论坛与其它网站登录注册整合
  8. 个人永久性免费-Excel催化剂功能第84波-批量提取OUTLOOK邮件附件
  9. TCP/IP 网络模型
  10. SAP中五个报废率的计算逻辑