交换机配置教程 交换机的命令模式

圆圆 0 2026-08-13 13:01:13

本文目录普通交换机常用配置命令华为S5720系列交换机快速配置手册常用命令联想NE系列交换机CNOS系统常用配置手册交换机配置命令有哪些H3C交换机常用配置命令华为交换机基本配置命令(2)H3C交换机基本命令配置H3C交换机常用命令华三交换机配置命令普通交换机常用配置命令

  a、更改远程TELNNET密码  Switch#configure terminal  Switch(config)#line vty 0 4  Switch(config-line)#password qycx123  Switch(config-line)#login  Switch(config-line)#exit  b、更改进入全局配置模式时的密码  Switch#configure terminal  Switch(config)#enable secret qycx123  思科交换机常用命令——创建并划分VLAN  a、创建VLAN  Switch#vlan database  Switch(vlan)#vlan 99 name office (创建vlan 99 并命名为office)  b、将端口划分至vlan  Switch(config)#interface fastEthernet 0/8  Switch(config-if)#switchport mode access  Switch(config-if)#switchport access vlan 99 (将8号快速以太口划分至vlan 99)  思科交换机常用命令——调试命令  a、显示所有配置命令:Switch#show run  b、显示所有接口状态:Switch#show ip int brief  c、显示所有VLAN的信息:Switch#show vlan brief  cisco交换机还是比较常用的,于是我研究了一下Cisco交换机命令的大总结,在这里拿出来和大家分享一下,希望对大家有用。我所针对的都是Cisco的设备而言的,华为的可以跟据手册来查,配置都是差不多的,这里华子就不多写华为的设备了,了解的也不是很多。  Cisco交换机命令之使用Telnet远程式管理  switch(config)#interface vlan 1 进入vlan 1  switch(config-if)#ip address 设置IP地址  switch(config-if)#ip default-gateway 设置默认网关  switch(config)#line vty 0 4 进入虚拟终端  switch(config-line)#login 允许登录  switch(config-line)#password xx 设置登录口令  switch#exit 返回命令  Cisco交换机命令之控制台口令  switch(config)#line console 0 进入控制台口  switch(config-line)#login 允许登录  switch(config-line)#password xx 设置登录口令  switch#exit 返回命令  Cisco交换机命令之基本接口配置  switch(config)#interface f0/1 进入f0/1接口  switch(config-if)#duplex full 配置全双工模式  switch(config-if)#speed 100 配置速率  switch(config-if)#description to ***** 接口描述  switch(config)#ip domain-name ***.com 设置或名服务器  switch(config)#mac-address-table aging-time 设置mac表超时时间  switch#write 保存配置信息  switch#copy running-config startup-config 保存当前配置nvram  switch#erase startup-config 清除配置文件  Cisco交换机命令之交换机VLAN设置:  switch#vlan database 进入VLAN设置  switch(vlan)#vlan 2 建VLAN 2  switch(vlan)#name 名字 建VLAN 2的名称  switch(vlan)#no vlan 2 删vlan 2  注:删除vlan时原属于此vlan的端口处于非激活状态,直到重新分配为止。  switch(config)#int f0/1 进入端口1  switch(config-if)#switchport mode access 当前端口工作莫试  switch(config-if)#switchport access vlan 2 当前端口加入vlan 2  switch(config-if)#switchport mode trunk 设置为干线  switch(config-if)#switchport trunk encapsulation dot1q 设置vlan 中继协议  switch(config-if)#no switchport mode 或 ( switchport mode access) 禁用干线  switch(config-if)#switchport trunk allowed vlan add 1,2 ; 从Trunk中添加vlans  switch(config-if)#switchport trunk allowed vlan remove 1,2 ;从Trunk中删除vlans  switch(config-if)#switchport trunk pruning vlan remove 1,2 ;从Trunk中关闭局部修剪  Cisco交换机命令之以太网通道配置  switch(config)#interface range fasternet0/1 - 2 将fasternet0/1和0/2 口捆绑  switch(config-if)#channel-group 1 mode on 配置以太通道模式  switch(config-if)#port-channel load-balance {dst-mac | src-mac}在链路间实现负载均衡  switch#show etherchannel 1 summary 查看通道信息  switch#show etherchannel load-balance 查看通道信息  Cisco交换机命令之vtp配置  switch(config)#vtp domain 设置vtp域名  switch(config)#vtp password 设置vtp密码  switch(config)#vtp mode server 设置vtp服务器模式  switch(config)#vtp mode client 设置vtp客户机模式  switch(config)#vtp mode transparent 设置vtp 透明模式  switch(config)#vtp version 设置vtp版本  switch(config)#vtp pruning 启用vtp修解  switch(config)#no vtp pruning 关闭vtp修解  注:要想从vtp中减少一台交换机只需将该交换机vtp 名更改  Cisco交换机命令之生成树stp:  switch(config)#spanning-tree vlan 启用stp生成树(基于vlan)  switch(config)#spanning-tree vlan root primary 指定根交换机(基于vlan)  switch(config)#spanning-tree vlan root secondary 指定备用根交换机(基于vlan)  switch(config)#spanning-tree vlan priority 指定交换机优先级(基于vlan)  switch(config)#no spanning-tree vlan priority 将交换机的优先级恢复默认值(基于vlan)  switch(config-if)#spanning-tree vlan cost 指定端口成本(起用trunk的端口模式下)  switch(config-if)#spanning-tree vlan port-prioty 指定交换机端口优先级(基于vlan)  switch(config-if)#spanning-tree portfast 配置速端口(连接终端设备的端口状态)如pc机  switch(config)#spanning-tree uplinkfast 配置上行速端口  switch(config)#spanning-tree vlan hello-time 配置交换机hello时间(基于vlan)  switch(config)#spanning-tree vlan forward-time 修改转发延迟计时器(基于vlan)  switch(config)#spanning-tree vlan max-time 修改最大老化时间(基于vlan)  switch#show spanning-tree summery 检测vlan生成树配置  switch#show spanning-tree vlan detail 浏览详细生成树配置信息  switch#show spanning-tree interface detail 浏览详细生成树端口配置信息  Cisco交换机命令之交换机显示命令:  switch#show vtp status 查看vtp配置信息  switch#show running-config 查看当前配置信息  switch#show vlan 查看vlan配置信息  switch#show interface 查看端口信息  switch#show int f0/0 查看指定端口信息  switch#dir flash: 查看闪存  switch#show version 查看当前版本信息  switch#show mac-address-table aging-time 查看mac超时时间  switch#show cdp cisco设备发现协议 (可以查看聆接设备)  switch#show cdp traffic 杳看接收和发送的cdp包统计信息  switch#show cdp neighbors 查看与该设备相邻的cisco设备  switch#show interface f0/1 switchport 查看有关switchport的配置  switch#show cdp neighbors 查看与该设备相邻的cisco设备

华为S5720系列交换机快速配置手册常用命令

1、开启SSH登陆交换机

2、创建VLAN,设置管理IP和DNS,配置默认路由

3、配置Trunk口,配置端口VLAN

4、批量配置交换机端口

5、清除某个端口的配置,启动端口

6、恢复出厂设置及重启

7、配置Eth-Trunk链路聚合

8、配置开启SNMPv2

联想NE系列交换机CNOS系统常用配置手册

联想NE系列交换机CNOS系统常用配置手册目录 1 前言 2 登录交换机 2.1 NE交换机接口介绍 2.2 登录交换机 3 常用交换机配置 3.1 交换机命令模式 3.2 查看交换机接口状态和编号 3.3 VLAN配置 3.4 TRUNK配置 3.5 端口聚合配置 3.6 VLAG配置 1 前言 NE系列交换机作为联想新款交换机,安装联想云优化网络操作系统(CNOS),提供丰富的对外开放的API接口,实现软件定义网络,为软件定义数据中心提供灵活的网络支持。目前NE系列交换机有NE10032,NE1032,NE1032T,NE2572等几款交换机,NE10032交换机支持100G交换机,NE1032为10G光口交换机,NE1032T为10G电口交换机,NE2572为25G光口交换机。本文档以NE1032交换机为例进行配置说明,同时NE系列交换机在配置命令上与G系列交换机有差异,但网络的原理以及配置思路基本是一致的。本文档先从基本的网络配置作为开始,然后逐渐增加交换机高级配置相关内容 2 登录交换机 2.1 NE交换机接口介绍 1.带外管理网络端口该端口为网络RJ45口,实现交换机带外网络管理,通常情况下通过该端口对新的交换机进行初始化配置,通过个人电脑连接该端口进行交换机的配置。 2.Mini USD串口该端口为串行端口,需要通过mini USD串口线连接到交换机,该端口一般情况下不需要使用,只有当交换机的带内和带外管理IP地址不知道情况下需要使用串口进行登录。在交换机出厂时一般是配置了mini USB线,但个人笔记本电脑需要USB转接线与mini USB线进行连接. 3.业务端口对于NE1032交换机业务端口为模块化端口,需要配置相应的模块,如连接10G的光纤端口的服务器,需要在业务端口插入10G SFP光模块实现与服务器的连接。 2.2 登录交换机通过带外管理口登录交换机:带外管理端口默认IP地址为192.168.50.50,登录用户名和密码为admin/admin。该端口IP地址为默认IP地址,也可以根据用户的需要进行修改。 3 常用交换机配置 3.1 交换机命令模式交换机主要有以下几种命令模式: 1.用户模式,在登录交换机默认进入用户模式 提示符: Switch》 2.特权模式提示符: Switch# 通过Switch》enable 命令进入特权模式 该模式下可以查看交换机的状态以及ping操作,不能对交换机进行配置 3.配置模式 提示符: Switch(config)# 通过Switch# configure 进入配置模式在该模式下可以对交换机进行日常操作配置以上命令模式可以通过exit退出上一级模式 3.3 VLAN配置 配置场景 1)在配置模式下创建VLAN登录交换机后进入配置模式后, Switch#configure Switch(config)# vlan 《VLAN ID (1‐3999)》 Switch(config-vlan)# 通过以下命令查看VLAN是否创建成功: 2)将连接服务器(未安装VMWARE等虚拟化软件的服务器)的业务端口加入到VLAN Switch(config)# interface ethernet 1/12  进入接口配置模式,这里1/12为接口编号,通过display interface brief查看接口编号 Switch(config-if)# bridge-port mode access  定义接口为access模式 Switch(config-if)# bridge-port access vlan将端口加入到某个vlan Switch(config-if)#exit 退出接口配置模式 如果VLAN配置错误可以通过一下命令删除VLAN配置 Switch(config)# interface ethernet 1/12 Switch(config-if)no bridge-port access vlan 通过以下命令查看端口VLAN情况 display interface ethernet 1/12 bridge-port 3.4 TRUNK配置 1)配置场景1当交换机和交换机互联时,交换机之间的互联链路需要指定为trunk模式 2)配置场景2当服务器做了虚拟化,通常服务器和交换机之间需要做TRUNK配置 3)TRUNK配置把端口定义为TRUNK端口 Switch(config)# interface ethernet 1/13  Switch(config-if)# bridge-port mode trunk  Switch(config-if)# bridge-port trunk allowed vlan all  允许所有的VLAN通过TRUNK口恢复TRUNK口为非TRUNK口Switch(config)# interface ethernet 1/13 Switch(config-if)# no bridge-port mode 3.5 端口聚合配置 1)配置场景1该场景下LINUX服务器上两个网卡做了bonging mode0的绑定,这是需要在交换机做静态端口聚合,配置如下: Switch(config)# interface ethernet 1/12,1/13 Switch(config-if)# bridge-port mode access Switch(config-if)# bridge-port access vlan XX Switch(config-if)# exit Switch(config)# Switch(config)# interface port-aggregation 《1‐4096》  (聚合端口号,当有多个服务器端口聚合时建立多个聚合端口组时,通过ID号进行区分不同的聚合端口组) Switch(config-if)# bridge-port mode access Switch(config-if)# bridge-port access vlan Switch(config-if)# exit Switch(config)# interface ethernet 1/12, ethernet 1/13, Switch(config-if-range)# aggregation-group 1 mode on Switch(config-if-range)# exit 通过以下命令查看端口聚合: 2)配置场景2 当linux服务器上两个网卡以mode4作为绑定模式,两个网卡与交换机之间通过LACP协议实现链路聚合。(两个交换机互联也可以通过LACP方式实现聚合连接) 交换机配置如下: 将交换机12、13划入到VLAN10中 Switch(config)# interface ethernet 1/12-13 Switch(config-if-range)# bridge-port mode access Switch(config-if-range)# bridge-port access vlan 10 Switch(config-if-range)# exit Switch(config)# Switch(config)# interface port-aggregation 1(聚合端口号,当有多个服务器端口聚合时建立多个聚合端口组时,通过ID号进行区分不同的聚合端口组) Switch(config-if)# bridge-port mode access Switch(config-if)# bridge-port access vlan 10 Switch(config-if)# exit Switch(config)# Switch(config)# interface ethernet 1/12,1/13 Switch(config-if-range)# aggregation-group 1 mode active  (模式为active,启用LACP协商) 3)配置场景3 在两个交换机上做一致的配置: Switch(config)# interface ethernet 1/12-13 Switch(config-if-range)# bridge-port mode trunk Switch(config-if-range)# bridge-port trunk allowed vlan all Switch(config-if-range)# exit Switch(config)# Switch(config)# interface port-aggregation 2 Switch(config-if)# bridge-port mode trunk Switch(config-if)# bridge-port trunk allowed vlan all Switch(config-if)# exit Switch(config)# Switch(config)# interface ethernet 1/12-13 Switch(config-if-range)# aggregation-group 2 mode active(goup 2这个ID需要与上一个命令指定的ID保持一致) 通过以下命令查看端口聚合 Switch(config)# display interface port-aggregation 2 3.6 VLAG配置 配置场景 配置步骤: 1) 配置ISL Switch(config)# interface ethernet 1/13-14 Switch(config-if-range)# bridge-port mode trunk Switch(config-if-range)# bridge-port trunk allowed vlan all Switch(config-if-range)# aggregation-group 10 mode active Switch(config-if-range)# exit Switch(config)# interface port-aggregation 10 Switch(config-if)# shutdown Switch(config-if)# bridge-port mode trunk Switch(config-if)# bridge-port trunk allowed vlan all Switch(config-if)# lacp suspend-individual Switch(config-if)# no shutdown Switch(config-if)# exit Switch(config)# vlag isl port-aggregation 10 Switch(config)# vlag tier-id 10 Switch(config)# vlag enable & 注意 当输入switch(config)#vlag isl port-aggregation 10命令如果出现以下错误提示: % ERROR: interface port-aggregation po10 has individual on, it is not allowed for vLAG ISL。建议如下处理: 进入po10接口模式下先把接口shutdown,然后输入lacp suspend-individual。 2) 配置VLAG Switch(config)# interface ethernet 1/12 Switch(config-if-range)# bridge-port mode trunk Switch(config-if-range)# bridge-port trunk allowed vlan all Switch(config-if-range)# aggregation-group 5 mode active Switch(config-if-range)# exit Switch(config)# interface port-aggregation 5 Switch(config-if)# bridge-port mode trunk Switch(config-if)# bridge-port trunk allowed vlan all Switch(config-if)# exit Switch(config)# vlag instance 1 port-aggregation 5  不同的聚合端口组使用不同的instance ID. Switch(config)# vlag instance 1 enable 在另外一个交换机上配置相同。 通过如下命令查看是否创建VLAG ISL成功: 通过如下命令查看VLAG 是否成功:

交换机配置命令有哪些

步骤如下:

登录到控制台,如果你要看VLAN的IP地址,输入 interface vlanif2

ip address 192.168.1.2 255.255.255.0 看到这就是交换机的IP。(上图是一个多层交换机,划分了多个VLAN)。

H3C交换机默认账号h3c,密码h3c。 或者账号admin,密码admin。

输入dis cu 这是查看交换机所有配置的命令,以下是华为交换机配置的一些常用命令:

discur--------显示当前配置

displaycurrent-configuration--------显示当前配置

displayinterfaces--------显示接口信息

displayvlanall--------显示路由信息

displayversion--------显示版本信息

superpassword修改特权用户密码

sysname--------交换机命名

interfaceethernet0/1--------进入接口视图

interfacevlanx--------进入接口视图

ipaddress10.65.1.1255.255.0.0--------配置VLAN的IP地址

iproute-static0.0.0.00.0.0.010.65.1.2--------静态路由=网关

扩展资料:

交换机命令,一种计算机语言,用来控制交换机的语言。

华为H3C Switch命令:

一、模式命令:

1. 用户模式:Switch》

2. 特权模式:Switch》enable

Switch#

3. 全局配置模式:Switch#config terminal

Switch(config)#

4. 接口配置模式:Switch(config)#interface fastethernet0/1

Switch(config-if)#

H3C交换机常用配置命令

H3C交换机常用配置命令汇总

  H3C从核心骨干到边缘接入,10多个系列上百款产品,全部通过中国信息产业部、Tolly Group、MetroEthernet论坛以及IPv6 Ready等权威部门的测]试和认证,下面我准备了一些H3C交换机经常用到的配置命令,提供给大家参考!

  一.用户配置:

  system-view

  super password H3C 设置用户分级密码

  undo super password 删除用户分级密码

  localuser bigheap 123456 1 Web网管用户设置,1(缺省)为管理级用户,缺省admin,admin

  undo localuser bigheap 删除Web网管用户

  user-interface aux 0 只支持0

  idle-timeout 2 50 设置超时为2分50秒,若为0则表示不超时,默认为5分钟

  undo idle-timeout 恢复默认值

  user-interface vty 0 只支持0和1

  idle-timeout 2 50 设置超时为2分50秒,若为0则表示不超时,默认为5分钟

  undo idle-timeout 恢复默认值

  set authentication password 123456 设置telnet密码,必须设置

  undo set authentication password 取消密码

  display users 显示用户

  display user-interface 显示用户界面状态

  二.系统IP配置:

  vlan 20

  management-vlan 20

  interface vlan-interface 20 创建并进入管理VLAN

  undo interface vlan-interface 20 删除管理VLAN接口

  ip address 192.168.1.2 255.255.255.0 配置管理VLAN接口静态IP地址(缺省为192.168.0.234)

  undo ip address 删除IP地址

  ip gateway 192.168.1.1 指定缺省网关(默认无网关地址)

  undo ip gateway

  shutdown 关闭接口

  undo shutdown 开启

  display ip 显示管理VLAN接口IP的相关信息

  display interface vlan-interface 20 查看管理VLAN的接口信息

  debugging ip 开启IP调试功能

  undo debugging ip

  三.DHCP客户端配置:

  ip address dhcp-alloc 管理VLAN接口通过DHCP方式获取IP地址

  undo ip address dhcp-alloc 取消

  display dhcp 显示DHCP客户信息

  debugging dhcp-alloc 开启DHCP调试功能

  undo debugging dhcp-alloc

  四.端口配置:

  interface Ethernet0/3

  shutdown

  speed 100 速率,可为10,100,1000和auto(缺省)

  duplex full 双工,可为half,full和auto(缺省) 光口和汇聚后不能配置

  flow-control 开启流控,默认为关闭

  broadcast-suppression 20 设置抑制广播百分比为20%,可取5,10,20,100,缺省为100,同时组播和未知单播也受此影响

  loopback internal 内环测试

  loopback external 外环测试,需插接自环头,必须为全双工或者自协商模式

  port link-type trunk 设置链路的类型为trunk,可为access(缺省),trunk

  port trunk pvid vlan 20 设置20为该trunk的缺省VLAN,默认为1

  (trunk线路两端的PVID必须一致)

  port access vlan 20 将当前access端口加入指定的VLAN

  port trunk permit vlan all 允许所有的VLAN通过当前的trunk端口,可多次使用该命令

  mdi auto 设置以太端口为自动监测,normal(缺省)为直通线,across为交叉线

  link-aggregation Ethernet 0/1 to Ethernet 0/4 将1-4口加入汇聚组,1为主端口,两端需要同时配置,设置了端口镜像以及端口隔离的端口无法汇聚

  undo link-aggregation Ethernet 0/1 删除该汇聚组

  link-aggregation mode egress 配置端口汇聚模式为根据目的MAC地址进行负荷分担,可选为 ingress,egress和both,缺省为both

  monitor-port Ethernet 0/2 将该端口设置为镜像端口,必须先设置镜像端口,删除时必须先删除被镜像端口,而且它们不能同在一个端口,该端口不能在汇聚组中,设置新镜像端口时,新取代旧,被镜像不变

  mirroring-port Ethernet 0/3 to Ethernet 0/4 both 将端口3和4设置为被镜像端口,both为同时监控接收和发送的报文,inbound表示仅监控接收的报文,outbound表示仅监控发送的报文

  display mirror

  display interface Ethernet 0/3

  reset counters 清除所有端口的统计信息

  display link-aggregation Ethernet 0/3 显示端口汇聚信息

  virtual-cable-test 诊断该端口的电路状况

  五.VLAN配置:

  vlan 2

  undo vlan all 删除除缺省VLAN外的所有VLAN,缺省VLAN不能被删除

  port Ethernet 0/4 to Ethernet 0/7 将4到7号端口加入到VLAN2中,此命令只能用来加access端口,不能用来增加trunk或者hybrid端口

  port-isolate enable 打开VLAN内端口隔离特性,不能二层转发,默认不启用该功能

  port-isolate uplink-port vlan 2 设置4为VLAN2的隔离上行端口,用于转发二层数据,只能配置一个上行端口,若为trunk,则建议允许所有VLAN通过,隔离不能与汇聚同时配置

  display vlan all 显示所有VLAN的详细信息

  S1550E支持基于端口的VLAN,通过创建不同的user-group来实现,一个端口可以属于多个user-group,不属于同一个user-group的端口不能互相通信,最多支持50个user-group

  user-group 20 创建user-group 20,默认只存在user-group 1

  port Ethernet 0/4 to Ethernet 0/7 将4到7号端口加入到VLAN20中,初始时都属于user-group 1中

  display user-group 20 显示user-group 20的相关信息

  六.集群配置:

  S2100只能作为成员交换机加入集群中,加入后系统名改为"集群名_成员编号.原系统名"的格式.

  即插即用功能通过两个功能实现: 集群管理协议MAC组播地址协商和管理VLAN协商

  cluster enable 启用群集功能,缺省为启用

  cluster 进入群集视图

  administrator-address H-H-H name switch H-H-H为命令交换机的MAC,加入switch集群

  undo administrator-address 退出集群

  display cluster 显示集群信息

  management-vlan 2 集群报文只能在管理VLAN中转发,同一集群需在同一个管理VLAN中,需在建立集群之前指定管理VLAN

  debugging cluster

  七.QoS配置:

  QoS配置步骤:设置端口的优先级,设置交换机信任报文的优先级方式,队列调度,端口限速

  priority 7 设置端口优先级为7,默认为0

  priority-trust cos 设置交换机信任报文的优先级方式为cos(802.1p优先级,缺省值),还可以设为dscp方式(dscp优先级方式)

  queue-scheduler hq-wrr 2 4 6 8 设置队列调度算法为HQ-WRR(默认为WRR),权重为2,4,6,8

  line-rate inbound 29 将端口进口速率限制为2Mbps,取1-28时,速率为rate*8*1024/125,即64,128,192...1.792M;29-127时,速率为(rate-27)*1024,即2M,3M,4M...100M,千兆时可继续往下取,128-240时,速率为(rate-115)*8*1024,即104M,112M,120M...1000M

  display queue-scheduler 显示队列调度模式及参数

  display priority-trust 显示优先级信任模式

  八.系统管理:

  mac-address blackhole H-H-H vlan 1 在VLAN1中添加黑洞MAC

  mac-address static H-H-H interface Ethernet 0/1 vlan 1 在VLAN1中添加端口一的一个mac

  mac-address timer aging 500 设置MAC地址表的老化时间为500s

  display mac-address

  display arp

  mac-address port-binding H-H-H interface Ethernet 0/1 vlan 1 配置端口邦定

  display mac-address port-binding

  display saved-configuration

  display current-configuration

  save

  restore default 恢复交换机出厂默认配置,恢复后需重启才能生效

  display version

  reboot

  display device

  sysname bigheap

  info-center enable 启用系统日志功能,缺省情况下启用

  info-center loghost ip 192.168.0.3 向指定日志主机(只能为UNIX或LINUX,不能为Windows)输出信息,需先开启日志功能,缺省关闭

  info-center loghost level 8 设置系统日志级别为8,默认为5.级别说明:1.emergencies 2.alerts 3.critical 4.errors 5.warnings 6.notifications 7.informational 8.debugging

  terminal debugging 启用控制台对调试信息的显示,缺省控制台为禁用

  terminal logging 启用控制台对日志信息的显示,缺省控制台为启用

  terminal trapping 启用控制台对告警信息的显示,缺省控制台为启用

  display info-center 显示系统日志的配置和缓冲区记录的信息

  display logbuffer 显示日志缓冲区最近记录的指定数目的日志信息

  display trapbuffer 显示告警缓冲区最近记录的指定数目的日志信息

  reset logbuffer 清除日志缓冲区的信息

  reset trapbuffer 清除告警缓冲区的信息

  九.网络协议配置:

  NDP即是邻居发现协议,S1550E只能开启或关闭NDP,无法配置,默认有效保留时间为180s,NDP报文发送的间隔60s

  ndp enable 缺省情况下是开启的

  ndp enable 缺省情况下开启

  display ndp 显示NDP配置信息

  display ndp interface Ethernet 0/1 显示指定端口NDP发现的邻居信息

  debugging ndp interface Ethernet 0/1

  HABP协议即Huawei Authentication Bypass Protocol,华为鉴权旁路协议,是用来解决当交换机上同时配置了802.1x和HGMPv1/v2时,未经授权和认证的端口上将过滤HGMP报文,从而使管理设备无法管理下挂的交换机的问题。交换机启动HABP后,将忽略802.1x认证。

  HABP包括服务器和客户端,由服务器定期发送请求,客户端进行应答,并向下进行转发,服务器一般启动在管理设备上,客户机在下挂设备上启动,1550E只支持客户端。

  habp enable 启动HABP特性,缺省即启动,启动后即缺省为客户机模式

  debugging habp 启动HABP调试功能

  NTDP即邻居拓扑发现协议,用来收集网络拓扑信息的协议,与NDP协议一起工作,用于集群管理,S1550E的配置主要包括开启与关闭功能能,开启与关闭调试功能

  ntdp enable 缺省情况下为开启的

  ntdp enable 缺省情况下为使能

  debugging ntdp

  十.SNMP配置:

  S1550E支持SNMPv1,SNMPv2c,主要配置包括:设置团体名,设置系统信息,设置Trap目标主机的地址,允许或禁止发送Trap,禁止SNMP Agent的运行

  snmp-agent community read bigheap 设置bigheap团体,且为只读访问

  snmp-agent max-size 1600 设置Agent能接受/发送的SNMP消息包最大为1600字节,缺省1500

  snmp-agent sys-info contact #27345 location Diqiu version v2c 设置系统信息,版本为v2c,缺省情况下联系信息为"R&D Hangzhou, H3C Technologies co.,Ltd.",位置为"Hangzhou China",v2c版本

  undo snmp-agent 禁止SNMP Agent的`运行,若配置任何SNMP命令将重新启动SNMP Agent

  display snmp-agent community read

  display snmp-agent sys-info contact

  display snmp-agent sys-info location

  display snmp-agent sys-info version

  debugging snmp-agent packet|process

  十一.IGMP Snooping配置:

  IGMP Snooping是运行在二层交换机上的组播约束机制,用于管理和控制组播组.主要负责建立和维护二层MAC地址表,同时根据建立的组播地址表来转发路由器下发的组文,如果不运行IGMP Snooping,则组文将在二层网络中广播

  IGMP Snooping配置包括:启动和关闭IGMP Snooping,配置路由器端口老化时间,配置最大响应查询时间,配置组播组成员端口老化时间,配置端口快速离开,调试功能

  igmp-snooping 启用IGMP Snooping功能,默认为关闭

  igmp-snooping router-aging-time 500 配置路由器端口老化时间为500s,默认为105s

  igmp-snooping max-response-time 15 配置最大响应查询时间为15s,默认为10s

  igmp-snooping host-aging-time 300 配置组播组成员端口老化时间为300s,默认为260s

  igmp-snooping fast-leave 配置快速离开,若收到离开报文,则立即删除端口,不询问

  display igmp-snooping configuration 显示配置信息

  display igmp-snooping statistics 显示包统计信息

  display igmp-snooping group vlan 2 显示VLAN2中IP组播组和MAC组播组的信息

  reset igmp-snooping statistics 清楚统计信息

  debugging igmp-snooping

  十二.系统调试:

  debugging all 开启所有调试开关,此命令为协议调试开关

  terminal debugging 终端调试开关,打开开关,默认为关闭

  debugging drv 主要显示报文的实际内容,默认为关闭

  display debugging 显示调试开关状态

  十三.802.1x配置:

  dot1x 开启802.1x特性,也可在系统视图下使用,使用后全局开启,也可用 interface参数开启指定端口的802.1x特性,缺省全关闭,要启用802.1x,全局和端口的都需开启

  dot1x port-control unauthorized-force 设置工作模式为强制非授权模式,使用 模式与dot1x命令相同,默认为auto,即通过了认证才可以访问,还有authorized-force,为强制授权 模式,允许用户访问

  dot1x port-method portbased 设置接入控制方式为基于端口的,使用模式与 dot1x命令相同,默认为macbase,基于MAC地址的

  dot1x max-user 10 设置端口接入用户的数量最大为10个,使用模式与dot1x命令 相同,默认为128,取值范围为1-128

  dot1x authentication-method eap 设置802.1x的用户认证方法为EAP,即EAP中继,直接用EAP报 文发送到服务器,需服务器支持

  dot1x re-authenticate 开启802.1x重认证功能使交换机以一定时间间隔周期性 的进行认证,使用模式同dot1x命令,缺省情况下所有端口该特性都关闭

  dot1x timer handshake-period 20 reauth-period 7200 quiet-period 30 tx-period 20 supp- timeout 20 server-timeout 200 设置802.1x认证的定时器,handshake-period为认证成功后, 系统以此间隔为周期发送握手请求报文(相当于keepalive消息发送间隔),1-1024s,默认15s.

  reauth-period为重认证超时定时器,1-86400s,默认3600s.

  quiet-period为用户认证失败后,Autheticator的静默定时器,静默后再处理认证,10-120s,默认60s.

  tx-period为传送超时定时器,Supplicant未成功发送认证应答报文,则重发认证请求,10-120s,默认 为30s.

  supp-timeout为认证超时定时器,Supplicant未成功响应,则重发认证请求,10-120s,默认30s.

  server-timeout为服务器未成功响应的超时定时器,100-300s,默认100s.

  reset dot1x statistics 清除802.1x统计信息

  display dot1x statistics 显示802.1x的配置,运行情况和统计信息

  debugging dot1x 打开802.1x的相关模块的调试信息

  十四.RADIUS配置:

  radius scheme system 进入system方案,其各项值为缺省值,1550E只支持默认方案

  primary authentication 10.110.1.1 1812 设置RADIUS服务器地址和UDP端口 号,默认情况下,system方案中服务器IP地址为空,UDP端口号为1812

  key authentication 123 指示RADIUS加密共享密钥为123,默认无共享密钥

  timer 10 设置RADIUS服务器响应超时定时器,1-10s,默认为5s

  retry 10 设置RADIUS服务器最大响应重试次数为10,1-20次,默认为5次

  display radius 显示radius方案信息

  debugging radius packet 打开radius报文调试开关

;

华为交换机基本配置命令(2)

华为交换机基本配置命令大全

  network 192.168.5.0 定义IP

  network 192.168.3.0 定义IP

  disp ip rout 查看路由接口

  R2:

  int e1/0 进入e1/0端口

  ip address 192.168.4.1 255.255.255.0 设置IP

  int e2/0 进入e2/0端口

  ip adress 192.168.5.2 255.255.255.0 设置IP

  rip 设置动态路由

  network 192.168.5.0 定义IP

  network 192.168.4.0 定义IP

  disp ip rout 查看路由接口

  (注意:两台PC机的网关设置PC1 IP:192.168.3.1 PC2 IP:192.168.4.1)

  七、IP访问列表

  int e1/0

  ip address 192.168.3.1 255.255.255.0

  int e2/0

  ip address 192.168.1.1 255.255.255.0

  int e3/0

  ip address 192.168.2.1 255.255.255.0

  acl number 2001 (2001-2999属于基本的访问列表)

  rule 1 deny source 192.168.1.0 0.0.0.255 (拒绝地址192.168.1.0网段的数据通过)

  rule 2 permit source 192.168.3.0 0.0.0.255(允许地址192.168.3.0网段的数据通过)

  以下是把访问控制列表在接口下应用:

  firewall enable

  firewall default permit

  int e3/0

  firewall packet-filter 2001 outbound

  disp acl 2001 显示信息

  undo acl number 2001 删除2001控制列表

  扩展访问控制列表

  acl number 3001

  rule deny tcp source 192.168.3.0 0.0.0.255 destination 192.168.2.0 0.0.0.255 destination-port eq ftp

  必须在r-acl-adv-3001下才能执行

  rule permit ip source an destination any (rule permit ip)

  int e3/0

  firewall enable 开启防火墙

  firewall packet-filter 3001 inbound

  必须在端口E3/0下才能执行

  八、命令的标准访问IP列表(三层交换机):

  允许A组机器访问服务器内资料,不允许访问B组机器(服务器没有限制)

  sys

  vlan 10

  name server

  vlan 20

  name teacher

  vlan 30

  name student

  int e1/0/5

  port access vlan 10

  int e1/0/10

  port access vlan 20

  int e1/0/15

  port access vlan 30

  int vlan 10

  ip address 192.168.10.1 255.255.255.0

  undo sh

  int vlan 20

  ip address 192.168.20.1 255.255.255.0

  int vlan 30

  ip address 192.168.30.1 255.255.255.0

  acl number 2001

  rule 1 deny source 192.168.30.0 0.0.0.255

  rule 2 permit source any

  disp acl 2001 查看2001列表

  int e1/0/10

  port access vlan 20

  packet-filter outbound ip-group 2001 rule 1

  出口

  九、允许A机器访问B机器的FTP但不允许访问WWW,C机器没有任何限制。

  vlan 10

  vlan 20

  vlan 30

  int e1/0/5

  port access vlan 10

  int e1/0/10

  port access vlan 20

  int e1/0/15

  port access vlan 30

  int vlan 10

  ip address 192.168.10.1 255.255.255.0

  undo sh

  int vlan 20

  ip address 192.168.20.1 255.255.255.0

  int vlan 30

  ip address 192.168.30.1 255.255.255.0

  acl number 3001

  rule 1 deny tcp source 192.168.30.0 0.0.0.255 destination 192.168.10.0 0.0.0.255 destination-port eq www

  int e1/0/15

  packet-filter inbound ip-group 3001 rule 1

  进口

  十、NAT地址转换(单一静态一对一地址转换)

  R1:

  sys

  sysname R1

  int e1/0

  ip address 192.168.3.1 255.255.255.0

  int e2/0

  ip address 192.1.1.1 255.255.255.0

  R2:

  sys

  sysname R2

  int e2/0

  ip address 192.1.1.2 255.255.255.0

  int e1/0

  ip address 10.80.1.1 255.255.255.0

  回到R1:

  nat static 192.168.3.1 192.1.1.1

  int e2/0

  nat outbound static

  ip route 0.0.0.0 0.0.0.0 192.1.1.2

  十一、NAT内部整网段地址转换

  R1:

  sys

  sysname R1

  int e1/0

  ip address 192.168.3.1 255.255.255.0

  int e2/0

  ip address 192.1.1.1 255.255.255.0

  acl number 2008

  rule 0 permit source 192.168.3.0 0.0.0.255

  rule 1 deny

  quit

  int e2/0

  nat outbound 2008

  quit

  ip route-static 0.0.0.0 0.0.0.0 192.1.1.2 preference 60

  ↑

  下一个路由接口地址

  R2:

  sys

H3C交换机基本命令配置

H3C交换机基本命令配置大全

  H3C CAS云计算管理平台是为企业数据中心量身定做的虚拟化和云计算管理软件。以下是关于H3C交换机基本命令配置大全,希望大家认真阅读!

  h3c-switch/’ target=’_blank’》H3C交换机配置命令大全H3C交换机

  1、system-view 进入系统视图模式

  2、sysname 为设备命名

  3、display current-configuration 当前配置情况

  4、 language-mode Chinese|English 中英文切换

  5、interface Ethernet 1/0/1 进入以太网端口视图

  6、 port link-type Access|Trunk|Hybrid 设置端口访问模式 7、 undo shutdown 打开以太网端口

  8、 shutdown 关闭以太网端口

  9、 quit 退出当前视图模式

  10、 vlan 10 创建VLAN 10并进入VLAN 10的视图模式

  11、 port access vlan 10 在端口模式下将当前端口加入到vlan 10中

  12、port E1/0/2 to E1/0/5 在VLAN模式下将指定端口加入到当前vlan中

  13、port trunk permit vlan all 允许所有的vlan通过

  H3C路由器

  1、system-view 进入系统视图模式

  2、sysname R1 为设备命名为R1

  3、display ip routing-table 显示当前路由表

  4、 language-mode Chinese|English 中英文切换

  5、interface Ethernet 0/0 进入以太网端口视图

  6、 ip address 192.168.1.1 255.255.255.0 配置IP地址和子网掩码

  7、 undo shutdown 打开以太网端口

  8、 shutdown 关闭以太网端口

  9、 quit 退出当前视图模式

  10、 ip route-static 192.168.2.0 255.255.255.0 192.168.12.2 description To.R2 配置静态路由

  11、 ip route-static 0.0.0.0 0.0.0.0 192.168.12.2 description To.R2 配置默认的路由

  H3C S3100 Switch H3C S3600 Switch H3C MSR 20-20 Router

  1、调整超级终端的显示字号;

  2、捕获超级终端操作命令行,以备日后查对;

  3、 language-mode Chinese|English 中英文切换;

  4、复制命令到超级终端命令行, 粘贴到主机;

  5、交换机清除配置 : reset save ; reboot ;

  6、路由器、交换机配置时不能掉电,连通测试前一定要 检查网络的连通性,不要犯最低级的错误。

  7、192.168.1.1/24 等同 192.168.1.1 255.255.255.0;在配置交换机和路由器时, 192.168.1.1 255.255.255.0 可以写成: 192.168.1.1 24

  8、设备命名规则:地名-设备名-系列号例:PingGu-R-S3600

  H3C华为交换机端口绑定基本配置

  1.端口 MAC

  a)AM命令

  使用特殊的AM User-bind命令,来完成MAC地址与端口之间的绑定。例如:

  am user-bind mac-address 00e0-fc22-f8d3 interface Ethernet 0/1

  配置说明:由于使用了端口参数,则会以端口为参照物,即此时端口E0/1只允许PC1上网,而使用其他未绑定的MAC地址的PC机则无法上网。但是PC1使用该MAC地址可以在其他端口上网。

  b)mac-address命令

  使用mac-address static命令,来完成MAC地址与端口之间的绑定。例如:

  mac-address static 00e0-fc22-f8d3 interface Ethernet 0/1 vlan 1

  mac-address max-mac-count 0

  配置说明:由于使用了端口学习功能,故静态绑定mac后,需再设置该端口mac学习数为0,使其他PC接入此端口后其mac地址无法被学习。

  2.IP MAC

  a)AM命令

  使用特殊的AM User-bind命令,来完成IP地址与MAC地址之间的绑定。例如:

  am user-bind ip-address 10.1.1.2 mac-address 00e0-fc22-f8d3

  配置说明:以上配置完成对PC机的IP地址和MAC地址的全局绑定,即与绑定的IP地址或者MAC地址不同的PC机,在任何端口都无法上网。

  支持型号:S3026E/EF/C/G/T、S3026C-PWR、E026/E026T、S3050C、E050、S3526E/C/EF、S5012T/G、S5024G

  b)arp命令

  使用特殊的arp static命令,来完成IP地址与MAC地址之间的绑定。例如:

  arp static 10.1.1.2 00e0-fc22-f8d3

  配置说明:以上配置完成对PC机的IP地址和MAC地址的全局绑定。

  3.端口 IP MAC

  使用特殊的AM User-bind命令,来完成IP、MAC地址与端口之间的绑定。例如:

  am user-bind ip-address 10.1.1.2 mac-address 00e0-fc22-f8d3 interface Ethernet 0/1

  配置说明:可以完成将PC1的IP地址、MAC地址与端口E0/1之间的绑定功能。由于使用了端口参数,则会以端口为参照物,即此时端口E0/1只允许 PC1上网,而使用其他未绑定的IP地址、MAC地址的PC机则无法上网。但是PC1使用该IP地址和MAC地址可以在其他端口上网。

  mac-address max-mac-count 0;

  进入到端口,用命令mac max-mac-count 0(端口mac学习数设为0)

  mac static 0000-9999-8888 int e0/1 vlan 10;

  将0000-9999-8888绑定到e0/1端口上,此时只有绑定mac的pc可以通过此口上网,同时E0/1属于vlan 10

  就这样,ok了,不过上面两个命令顺序不能弄反,除非端口下没有接pc

  dis vlan 显示vlan

  name text 指定当前vlan的.名称

  undo name 取消

   vlan 2

  name test vlan

  dis users 显示用户

  dis startup 显示启动配置文件的信息

  dis user-interface 显示用户界面的相关信息

  dis web users 显示web用户的相关信息。

  header login 配置登陆验证是显示信息

  header shell

  undo header

  lock 锁住当前用户界面

  acl 访问控制列表 acl number inbound/outbound

  user-interface vty 0 4

   acl 2000 inbound

  shutdown:关闭vlan接口

  undo shutdown 打开vlan接口

  关闭vlan1 接口

   interface vlan-interface 1

   shutdown

  vlan vlan-id 定义vlan

  undo valn vlan-id

  display ip routing-table

  display ip routing-table protocol static

  display ip routing-table statistics

  display ip routing-table verbose 查看路由表的全部详细信息

  interface vlan-interface vlan-id 进入valn

  management-vlan vlan-id 定义管理vlan号

  reset ip routing-table statistics protocol all 清除所有路由协议的路由信息.

  display garp statistics interface GigabitEthernet 1/0/1 显示以太网端口上的garp统计信息

  display voice vlan status 查看语音vlan状态

   broadcast-suppression 20 允许接受的最大广播流量为该端口传输能力的20%.超出部分丢弃.

   broadcast-suppression pps 1000 每秒允许接受的最大广播数据包为1000传输能力的20%.超出部分丢弃.

  display interface GigabitEthernet1/0/1 查看端口信息

  display brief interface GigabitEthernet1/0/1 查看端口简要配置信息

  display loopback-detection 用来测试环路测试是否开启

  display transceiver-information interface GigabitEthernet1/0/50 显示光口相关信息

  duplex auto/full/half

  interface GigabitEthernet1/0/1

  duplux auto 设置端口双工属性为自协商

  port link-type access/hybrid/trunk 默认为access

  port trunk permit vlan all 将trunk扣加入所有vlan中

  reset counters interface GigabitEthernet1/0/1 清楚端口的统计信息

  speed auto 10/100/1000

  display port-security 查看端口安全配置信息

  am user-bind mac-addr 00e0-fc00-5101 ip-addr 10.153.1.2 interface GigabitEthernet1/0/1 端口ip绑定

  display arp 显示arp

  display am user-bind 显示端口绑定的配置信息

  display mac-address 显示交换机学习到的mac地址

  display stp 显示生成树状态与统计信息

  stp instance 0 cost 200 设置生成树实例0上路径开销为200

  stp cost 设置当前端口在指定生成树实例上路径开销。instance-id 为0-16 0表cist 取值范围1-200000

   display system-guard ip-record 显示防攻击记录信息.

  system-guard enable 启用系统防攻击功能

  display icmp statistics icmp流量统计

  display ip socket

  display ip statistics

  display acl all

  acl number acl-number match-order auto/config

  acl-number (2000-2999 是基本acl 3000-3999是高级acl为管理员预留的编号)

  rule deny/permit protocal

  访问控制 acl number 3000

  rule permit tcp source 129.9.0.0 0.0.255.255 destination 202.38.160.0 0.0.255.255 destination-port eq 80 (定义高级acl 3000,允许129.0.0/16网段的主机向202.38.160/24网段主机访问端口80)

  rule permit source 211.100.255.0 0.255.255.255

  rule deny cos 3 souce 00de-bbef-adse ffff-ffff-fff dest 0011-4301-9912 ffff-ffff-ffff

  (禁止mac地址00de-bbef-adse发送到mac地址0011-4301-9912且802.1p优先级为3的报文通过)

  display qos-interface GigabitEthernet1/0/1 traffic-limit 查看端口上流量

  端口速率限制

  line-rate inbound/outbound target-rate

  inbound:对端口接收报文进行速率限制

  outbound: 对端口发送报文进行速率限制

  target-rate 对报文限制速率,单位kbps 千兆口 inbound范围1-1000000 outbound范围20-1000000

  undo line-rate取消限速.

  interface GigabitEthernet1/0/1

  line-rate outbound 128 限制出去速率为128kbps

  display arp | include 77

  display arp count 计算arp表的记录数

  display ndp 显示交换机端口的详细配置信息。

  display ntdp device-list verbose 收集设备详细信息

  display lock

  display users

  display cpu

  display memory

  display fan

  display device

  display power

;

H3C交换机常用命令

H3C交换机常用命令大全

  H3C能够提供业界覆盖最全面的交换机产品。从园区到数据中心、盒式到箱式、从FE、GE到10G和100G,从L2到L4/7,从IPv4到IPv6,从接入到核心,用户都有最丰富的选择和灵活的组合。那么下文我为大家分享的是H3C交换机的常用命令,希望对大家有所帮助!

  1.查看Linux下查看端口状态

  root@root:~# netstat -an|grep -E “6002|6003″

  2.H3C交换机显示当前配置

  display current-configuration

  3.H3C交换机显示arp信息

  dis arp

  4.H3C交换机显示mac列表信息

  dis mac-address

  5.H3C交换机显示端口信息

  display interface

  6.进入系统视图

  system-view

  7.打开路由器的telnet功能

  telnet server enable

  8.设置允许同时配置路由器的用户数

  configure-user count 5

  9.添加本地用户(此处为telnet用户登录时使用的用户名)

  local-user telnet

  10.设置telnet用户登录时所使用的密码

  password simple h3c

  11.设置本地用户的服务类型(此处为telnet)

  service-type telnet

  12.设置本地用户的服务级别

  level 3

  13.退出本地用户视图

  quit

  14.进入用户视图

  user-interface vty 0 4

  15.选择“scheme”认证方式

  authentication-mode scheme

  16.进入某个端口

   interface serial 3/0

  17.为该端口设置ip

  ip address 200.1.1.1 255.255.255.0

  18.对该端口进行复位

  undo shutdown

  19.添加一条静态路由

  ip route-static 192.168.1.0 255.255.255.0 192.168.0.1

  20.添加一条默认路由

  ip route-static 0.0.0.0 0.0.0.0 192.168.0.1

  21.保存配置文件

  save

  22.查看某端口的状态

  display interface GigabitEthernet 0/0

  23.创建vlan

  vlan 10

  24.将某个端口加入到vlan中

  port ethernet 0/1

  25.创建vlan虚拟口

  interface vlan-interface 1

  26.配置ip地址

  ip address 192.168.1.4 255.255.255.0

  27.将端口类型设置为trunk

  port link-type trunk

  28.设置trunk口允许所有vlan通过(需要执行save保存)

  port trunk permit vlan all

  注意:Trunk 可以收发多个vlan的报文,用于交换机与交换机之间的互连

  29.关闭端口

  shutdown

  30.设置端口备注

  description 测试数据

  H3C S系列低端交换机Combo口不工作的解决方法

  一、问题描述:

  Combo接口是一个逻辑接口,一个Combo接口对应设备面板上一个电口和一个光口。电口与其对应的光口是光电复用关系,两者不能同时工作(当激活其中的一个接口时,另一个接口就自动处于禁用状态),用户可根据组网需求选择使用电口或光口。

  在低端交换机系列产品中,带有Combo口特性的交换机型号有:(1)H3C S5600系列;(2)H3C S5100系列;(3)H3C S3100系列;(4)H3C S5500系列;(5)H3C S5510。

  上述设备不同型号、不同版本对于Combo口的切换方法各不相同,容易引起客户和工程师误操作导致配置错误而端口不能UP。

  二、 原因分析:

  不同设备型号、不同软件版本间使用的软件平台各不相同,导致Combo口切换方法不一致。

  三、 解决方法:

  根据现有软件平台版本,Combo口的切换方式有两种,分别是:

  方式一:“shutdown”不使用的端口后,相应的Combo口会自动“undo shutdown”,无需手工操作。

  方式二:“shutdown”不使用的端口后,还要通过“undo shutdown”的操作使能需要使用的’Combo口,也就是说,具有Combo特性的两个端口可以同时处于shutdown状态。

  下面就使用不同软件平台的设备进行说明。

  1. 使用Comware V3.10的系列交换机

  1.1 H3C S5600系列

  1)R1510P24及之前的软件版本,切换Combo口的方法:方式一。

  2)R1602及后续的软件版本,切换Combo口的方法:方式二。

  1.2 H3C S5100系列

  S5100-SI/EI系列现有版本都采用第一种方式,将来发布版本如有变更,会在版本说明书中明确说明。

  1.3 H3C S3100系列

  1)H3C S3100-SI系列

  R0011P02及之前的软件版本不支持Combo口特性。E2102及后续的软件版本,切换Combo口的方法:方式二。

  2)H3C S3100-EI系列

  E2102及后续的软件版本,切换Combo口的方法:方式二。

  2. 使用Comware V5.20的交换机

  H3C S5510交换机和H3CS5500系列交换机Combo口的切换方法一致,即都采用第二种操作方式。

;

华三交换机配置命令

华三交换机配置命令如下:

《H3C》system-view

super password H3C:设置用户分级密码

undo super password:删除用户分级密码

localuser bigheap 123456 1:Web网管用户设置,1(缺省)为管理级用户,缺admin,admin

undo localuser bigheap:删除Web网管用户

user-interface aux 0:只支持0

idle-timeout 2 50:设置超时为2分50秒,若为0则表示不超时,默认为5分钟

undo idle-timeout:恢复默认值

user-interface vty 0:只支持0和1

idle-timeout 2 50:设置超时为2分50秒,若为0则表示不超时,默认为5分钟

undo idle-timeout:恢复默认值

set authentication password 123456:设置telnet密码,必须设置

undo set authentication password:取消密码

display users:显示用户

display user-interface:显示用户界面状态

扩展资料:

H3C Switch命令:

一、模式命令:

1、用户模式:Switch》

2、特权模式:Switch》enable

Switch#

3、全局配置模式:Switch#config terminal

Switch(config)#

4、接口配置模式:Switch(config)#interface fastethernet0/1

Switch(config-if)#

5、Line模式:Switch(config)#line console 0

Switch(config-line)#

二、特权模式下的命令:

1、查看机MAC地址:Switch#show mac-address-table

2、发现(CDP):

Switch#show cdp

Switch#show cdp interface fastethernet0/1

Switch#show cdp neighbors

Switch#show cdp neighbors detail

Switch#show cdp entry

工作原理:

交换机工作于OSI参考模型的第二层,即数据链路层。交换机内部的CPU会在每个端口成功连接时,通过将MAC地址和端口对应,形成一张MAC表。

在今后的通讯中,发往该MAC地址的数据包将仅送往其对应的端口,而不是所有的端口。因此,交换机可用于划分数据链路层广播,即冲突域;但它不能划分网络层广播,即广播域。

参考资料:百度百科—交换机

参考资料:百度百科—交换机命令

上一篇:白丝体操服与腹肌的秘密:揭秘运动装备与健身成效的关联
下一篇:九九夜靖品:揭秘这款新晋咖啡界的“神秘力量”
相关文章
返回顶部小火箭