华为s2000交换机配置命令大全

生活常识 2023-04-17 08:44生活常识www.jianfeiren.cn

  华为s2000交换机配置命令大全

  1、 查看版本

  [Quidway]display version

  Huawei Versatile Routing Platform Software

  VRP (R) Software, Version 3.10, RELEASE 0010

  Copyright (c) 2000-2004 HUAWEI TECH CO., LTD.

  Quidway S2016-EI uptime is 0 week,2 days,0 hour,29 minutes

  Quidway S2016-EI with 50M Arm7 Processor

  32M bytes SDRAM

  4096K bytes Flash Memory

  Config Register points to FLASH

  Hardware Version is VER.B

  Bootrom Version is 109

  [Subslot 0] 16 FE Hardware Version is VER.B

  2、建立VLAN

  [Quidway]vlan 57

  [Quidway-vlan57]quit

  [Quidway]vlan 59

  [Quidway-vlan59]quit

  3、配上行端口允许通过的VLAN

  [Quidway]interface eth 0/1

  [Quidway-Ethernet0/1]port link-type trunk

  [Quidway-Ethernet0/1]port trunk permit vlan 59 57

  Please wait... Done.

  [Quidway-Ethernet0/1]quit

  4、配端口上绑定的VLAN

  [Quidway]interface eth 0/2

  [Quidway-Ethernet0/2]port access vlan 59

  [Quidway-Ethernet0/2]quit

  [Quidway]interface eth 0/3

  [Quidway-Ethernet0/3]port access vlan 57

  [Quidway-Ethernet0/3]quit

  5、限定端口上的速率

  [Quidway]interface etn 0/2

  [Quidway-Ethernet0/2]line-rate outbound 37

  [Quidway-Ethernet0/2]quit

  [Quidway]interface eth 0/3

  [Quidway-Ethernet0/3]line-rate outbound 33

  [Quidway-Ethernet0/3]quit

  6、退出保存

  [Quidway]quit

  save

  This will save the configuration in the flash memory.

  The switch configurations will be written to flash.Are you sure?[Y/N]y

  Now saving current configuration to flash memory.

  Please wait for a while...

  Current configuration saved to flash memory successfully.

  交换机的上运行配置

  #

  interface Vlan-interface100

  ip address 220.172.239.102 255.255.255.0

  #

  interface Aux0/0

  #

  interface Ethernet0/1

  port link-type trunk

  port trunk permit vlan 1 57 59 100 102

  #

  interface Ethernet0/2

  port access vlan 59

  #

  interface Ethernet0/3

  port access vlan 57

  #

  interface Ethernet0/4

  port link-type trunk

  port trunk permit vlan 1 102

  #

  interface Ethernet0/5

  #

  interface Ethernet0/6

  #

  interface Ethernet0/7

  #

  interface Ethernet0/8

  #

  interface Ethernet0/9

  #

  interface Ethernet0/10

  #

  interface Ethernet0/11

  #

  interface Ethernet0/12

  #

  interface Ethernet0/13

  #

  interface Ethernet0/14

  #

  interface Ethernet0/15

  #

  interface Ethernet0/16

  #

  interface NULL0

  #

  ip route-static 0.0.0.0 0.0.0.0 222.172.239.1 preference 60

  ip route-static 0.0.0.0 0.0.0.0 220.172.239.1 preference 60

  #

  user-interface aux 0

  user-interface vty 0 4

  #

  return

  [Quidway]

Copyright@2015-2025 Www.jianfeiren.cn减肥人网版板所有All right reserved