华为交换机“port-group”命令

合集下载

华为路由器交换机常用命令

华为路由器交换机常用命令

华为路由器交换机常用命令一、设备管理命令1.登录管理命令- ssh [ip地质] -p [端口号]:通过SSH协议登录设备。

- telnet [ip地质]:通过Telnet协议登录设备。

- logout:退出设备。

2.用户管理命令- display current-configuration:显示当前设备配置信息。

- save:保存当前配置。

- undo save:取消保存的配置。

- super:切换到超级用户模式。

- user-interface console 0:配置控制台终端的参数。

- user-interface vty 0 4:配置远程登录终端的参数。

3.设备操作命令- reboot:重启设备。

- reset saved-configuration:恢复出厂配置。

- display version:显示设备的硬件和软件版本信息。

- display device:显示设备的基本信息。

- display interface[接口名称]:显示指定接口信息。

- display ip routing-table:显示IP路由表信息。

二、网络配置命令1.IP配置命令- interface [接口名称]:进入指定接口。

- ip address [IP地质] [子网掩码]:配置接口IP地质。

- undo ip address:取消接口IP地质配置。

- ip route-static [目标网络] [子网掩码] [下一跳地质]:配置静态路由。

- undo ip route-static [目标网络] [子网掩码] [下一跳地质]:取消静态路由配置。

2.VLAN配置命令- vlan [VLAN ID]:创建指定VLAN。

- quit:退出VLAN配置模式。

- interface vlan [VLAN ID]:进入指定VLAN接口。

- ip address [IP地质] [子网掩码]:为VLAN接口配置IP地质。

CISCO交换机与华为交换机链路聚合

CISCO交换机与华为交换机链路聚合

CISCO交换机与华为交换机链路聚合链路聚合有成端口聚合,端口捆绑,英文名port trunking.功能是将交换机的多个低带宽端口捆绑成一条高带宽链路,可以实现链路负载平衡。

避免链路出现拥塞现象。

通过配置,可通过两个三个或是四个端口进行捆绑,分别负责特定端口的数据转发,防止单条链路转发速率过低而出现丢包的现象。

Trunking的优点:价格便宜,性能接近千兆以太网;不需要重新布线,也无需考虑千兆网传输距离极限问题;trunking可以捆绑任何相关的端口,也可以随时取消设置,这样提供了很高的灵活性还可以提供负载均衡能力以及系统容错。

命令:port-group <port-group-number> mode {active|passive|on}no port-group <port-group-number>功能:将物理端口加入Port Channel,该命令的no 操作为将端口从Port Channel 中去除参数:<port-group-number> 为Port Channel 的组号,范围为1~16;active(0)启动端口的LACP 协议,并设置为Active 模式;passive(1)启动端口的LACP 协议,并且设置为Passive 模式;on(2)强制端口加入Port Channel,不启动LACP 协议。

举例:在Ethernet0/0/1 端口模式下,将本端口以active 模式加入port-groupSwitch(Config-Ethernet0/0/1)#port-group 1 mode active命令:interface port-channel <port-channel-number>功能:进入汇聚接口配置模式命令模式:全局配置模式举例:进入port-channel1 配置模式Switch(Config)#interface port-channel 1Switch(Config-If-Port-Channel1)#举例1:如果交换机Switch1 上的1,2,3 端口都是access 口,并且都属于vlan 1,将这三个端口以active 方式加入group 1,Switch2 上6,8,9 端口为trunk 口,并且是allow all,将这三个端口以passive 方式加入group 2,将以上对应端口分别用网线相连。

(完整版)华为交换机命令大全

(完整版)华为交换机命令大全

华为交换机基本配置命令详解1、配置文件相关命令[Quidway]display current-configuration 显示当前生效的配置[Quidway]display saved-configuration显示flash中配置文件,即下次上电启动时所用的配置文件reset saved-configuration 檫除旧的配置文件reboot 交换机重启display version 显示系统版本信息2、基本配置[Quidway]super password 修改特权用户密码[Quidway]sysname 交换机命名[Quidway]interface ethernet 1/0/1 进入接口视图[Quidway]interface vlan 1进入接口视图[Quidway-Vlan-interfacex]ip address 10.1.1.11 255.255.0.0配置VLAN的IP地址[Quidway]ip route-static 0.0.0.0 0.0.0.0 10.1.1.1静态路由=网关3、telnet配置[Quidway]user-interface vty 0 4 进入虚拟终端[S3026-ui-vty0-4]authentication-mode password 设置口令模式[S3026-ui-vty0-4]set authentication-mode password simple xmws123设置口令[S3026-ui-vty0-4]user privilege level 3 用户级别4、端口配置[Quidway-Ethernet1/0/1]duplex {half|full|auto} 配置端口工作状态[Quidway-Ethernet1/0/1]speed {10|100|auto} 配置端口工作速率[Quidway-Ethernet1/0/1]flow-control 配置端口流控[Quidway-Ethernet1/0/1]mdi {across|auto|normal} 配置端口平接扭接[Quidway-Ethernet1/0/1]port link-type {trunk|access|hybrid} 设置端口工作模式[Quidway-Ethernet1/0/1]undo shutdown 激活端口[Quidway-Ethernet1/0/2]quit 退出系统视图5、链路聚合配置[DeviceA] link-aggregation group 1 mode manual 创建手工聚合组1[Qw_A] interface ethernet 1/0/1 将以太网端口Ethernet1/0/1加入聚合组1 [Qw_A-Ethernet1/0/1] port link-aggregation group 1[Qw_A-Ethernet1/0/1] interface ethernet 1/0/2 将以太网端口Ethernet1/0/1加入聚合组1[Qw_A-Ethernet1/0/2] port link-aggregation group 1[Qw_A] link-aggregation group 1 service-type tunnel # 在手工聚合组的基础上创建t unnel业务环回组。

华为交换机基本配置命令

华为交换机基本配置命令

华为交换机基本配置命令华为交换机基本配置命令一、单交换机VLAN划分以下是单交换机VLAN划分的基本命令:system:进入系统视图。

system-view:进入系统视图。

quit:退出系统视图。

undovlan20:删除vlan20.XXX:交换机命名。

dispvlan:显示vlan。

vlan20:创建vlan(也可进入vlan20)。

porte1/0/1toe1/0/5:把端口1-5放入VLAN20中。

对于5700系列交换机,单个端口放入VLAN的命令如下:XXX]intg0/0/1XXX]portlink-type access(注:接口类型access,hybrid、trunk)XXX]portdefaultvlan10而批量端口放入VLAN的命令如下:XXX]port-group1XXX-port-group-1]group-XXXXXX-port-group-1]porthybriduntaggedvlan3如果需要删除group(组)vlan200内的15端口,可以使用以下命令:XXX]intg0/0/15XXX-XXX]XXX通过group端口限速设置的命令如下:XXX]Port-group2XXX]group-memberg0/0/2tog0/0/23XXX]qoslroutboundcir2000cbs要显示vlan里的端口20,可以使用以下命令:dispvlan20如果需要进入端口24,可以使用以下命令:inte1/0/24要删除当前VLAN端口10,可以使用以下命令:XXX如果需要显示当前配置,可以使用以下命令:dispcurr如果需要保存配置,可以使用以下命令:save如果需要通过关闭日志信息命令改变DS模块来实现关闭配置后的确认信息显示,可以使用以下命令:info-XXXoff如果需要通过打开日志信息命令改变DS模块来实现打开配置后的确认信息显示,可以使用以下命令:info-XXX二、配置交换机支持XXX以下是配置交换机支持XXX的基本命令:system:进入系统视图。

华为交换机端口汇聚不同版本配置命令汇总

华为交换机端口汇聚不同版本配置命令汇总
S3552G/S3552P/S3528G/S3528P/S3552F:最多可以有7个端口汇聚组,1个汇聚组最多可以有8个端口,百兆端口和千兆端口不能在同一个汇聚组中,组内的端口号必须连续,对起始端口无特殊要求
------------------------------------------------------------------
[Quidway] interface ethernet1/0/2
[Quidway-Ethernet1/0/2] port link-aggregation group 1
------------------------------------------------------------------
汇聚组中只有一个端口时,只能通过删除汇聚的方式将端口从汇聚中删除。手工汇聚时端口的LACP协议自动关闭。汇聚组中的端口可能处于两种状态:selected或unselected,只有selected状态的端口可以转发用户报文。
静态汇聚:创建静态汇聚组-->端口加入汇聚组
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
[Quidway-Ethernet1/0/1] lacp enable
动态汇聚中,端口的LACP协议处于开启状态。只有速率和双工属性相同、连接到同一个设备、有相同基本配置的端口才能被动态汇聚在一起
------------------------------------------------------------------

华为交换机端口的批量配置命令

华为交换机端口的批量配置命令

华为交换机端口的批量配置命令华为交换机端口的批量配置命令如何在华为交换机上进行批量管理端口呢,例如同时将多个端口加入到一个vlan中,下面yjbys为大家介绍华为交换机批量管理端口的方法!欢迎参考学习!首先在S5700交换机上创建一个端口组(port-group 1),然后设置改组的.成员是哪些端口[A]port-group 1[A-port-group-1]group-member GigabitEthernet 0/0/3 to GigabitEthernet 0/0/10将该组的link-type设置成access[A-port-group-1]port link-type access[A-GigabitEthernet0/0/3]port link-type access[A-GigabitEthernet0/0/4]port link-type access[A-GigabitEthernet0/0/5]port link-type access[A-GigabitEthernet0/0/6]port link-type access[A-GigabitEthernet0/0/7]port link-type access[A-GigabitEthernet0/0/8]port link-type access[A-GigabitEthernet0/0/9]port link-type access[A-GigabitEthernet0/0/10]port link-type access将改组的所有成员加入到vlan2中[A-port-group-1]port default vlan 2[A-GigabitEthernet0/0/3]port default vlan 2[A-GigabitEthernet0/0/4]port default vlan 2[A-GigabitEthernet0/0/5]port default vlan 2[A-GigabitEthernet0/0/6]port default vlan 2[A-GigabitEthernet0/0/7]port default vlan 2[A-GigabitEthernet0/0/8]port default vlan 2[A-GigabitEthernet0/0/9]port default vlan 2[A-GigabitEthernet0/0/10]port default vlan 2[A-port-group-1]验证是否成功[A]display vlan 2--------------------------------------------------------------------------------U: Up; D: Down; TG: Tagged; UT: Untagged;MP: Vlan-mapping; ST: Vlan-stacking;#: ProtocolTransparent-vlan; *: Management-vlan;--------------------------------------------------------------------------------VID Type Ports--------------------------------------------------------------------------------2 common UT:GE0/0/3(D) GE0/0/4(D) GE0/0/5(D) GE0/0/6(D)GE0/0/7(D) GE0/0/8(D) GE0/0/9(D) GE0/0/10(D)VID Status Property MAC-LRN Statistics Description--------------------------------------------------------------------------------2 enable default enable disable VLAN 0002[A]可以看到vlan2中已经有3-10端口了,这样就可以轻松的将多个端口同时的加入到一个vlan中了,你学会了吗?。

华为交换机配置命令华为QuidWay交换机配置命令手册

华为交换机配置命令华为QuidWay交换机配置命令⼿册1、开始建⽴本地配置环境,将主机的串⼝通过配置电缆与以太⽹交换机的Console⼝连接。

在主机上运⾏终端仿真程序(如Windows的超级终端等),设置终端通信参数为:波特率为9600bit/s、8位数据位、1位停⽌位、⽆校验和⽆流控,并选择终端类型为VT100。

以太⽹交换机上电,终端上显⽰以太⽹交换机⾃检信息,⾃检结束后提⽰⽤户键⼊回车,之后将出现命令⾏提⽰符(如<Quidway>)。

键⼊命令,配置以太⽹交换机或查看以太⽹交换机运⾏状态。

需要帮助可以随时键⼊"?"2、命令视图(1)⽤户视图(查看交换机的简单运⾏状态和统计信息)<Quidway>:与交换机建⽴连接即进⼊(2)系统视图(配置系统参数)[Quidway]:在⽤户视图下键⼊system-view(3)以太⽹端⼝视图(配置以太⽹端⼝参数)[Quidway-Ethernet0/1]:在系统视图下键⼊interface ethernet 0/1(4)VLAN视图(配置VLAN参数)[Quidway-Vlan1]:在系统视图下键⼊vlan 1(5)VLAN接⼝视图(配置VLAN和VLAN汇聚对应的IP接⼝参数)[Quidway-Vlan-interface1]:在系统视图下键⼊interface vlan-interface 1(6)本地⽤户视图(配置本地⽤户参数)[Quidway-luser-user1]:在系统视图下键⼊local-user user1(7)⽤户界⾯视图(配置⽤户界⾯参数)[Quidway-ui0]:在系统视图下键⼊user-interface3、其他命令设置系统时间和时区<Quidway>clock time Beijing add 8<Quidway>clock datetime 12:00:00 2005/01/23设置交换机的名称[Quidway]sysname TRAIN-3026-1[TRAIN-3026-1]配置⽤户登录[Quidway]user-interface vty 0 4[Quidway-ui-vty0]authentication-mode scheme创建本地⽤户[Quidway]local-user huawei[Quidway-luser-huawei]password simple huawei[Quidway-luser-huawei] service-type telnet level 34、VLAN配置⽅法『配置环境参数』SwitchA端⼝E0/1属于VLAN2,E0/2属于VLAN3『组⽹需求』把交换机端⼝E0/1加⼊到VLAN2 ,E0/2加⼊到VLAN3数据配置步骤『VLAN配置流程』(1)缺省情况下所有端⼝都属于VLAN 1,并且端⼝是access端⼝,⼀个access端⼝只能属于⼀个vlan;(2)如果端⼝是access端⼝,则把端⼝加⼊到另外⼀个vlan的同时,系统⾃动把该端⼝从原来的vlan中删除掉;(3)除了VLAN1,如果VLAN XX不存在,在系统视图下键⼊VLAN XX,则创建VLAN XX并进⼊VLAN视图;如果VLAN XX已经存在,则进⼊VLAN视图。

华为交换机端口汇聚的配置

交换机端口汇聚的配置一、实验目的通过对交换机端口汇聚的配置,了解交换机端口的一些基本配置信息,并掌握相关的重要命令,利用交换机Console口命令对交换机进行配置,明白端口汇聚的作用。

二、实验内容1、修改交换机主机名2、修改交换机端口地址与属性3、配置交换机端口的静态MAC 地址表4、实现交换机的端口汇聚三、网络实验图PC机四、实验步骤(1)、按拓扑图连线连线:按拓扑图将Switch1的E1/0/1与Switch2的E0/1相连,Switch1的E1/0/2与Switch2的E0/2相连,PC机COM口与Switch1的Console口相连,网线与E0/24相连。

(2)、设置Switch1的E1/0/1和E1/0/2端口<Quidway>sysSystem View: return to User View with Ctrl+Z. [Quidway]sysname switch1[switch1]interface ethernet 1/0/1[switch1-Ethernet0/1]speed 100[switch1-Ethernet0/1]duplex full[switch1-Ethernet0/1]int e1/0/2[switch1-Ethernet0/2]speed 100[switch1-Ethernet0/2]duplex full[switch1-Ethernet0/2]quit(3)、设置Switch2的E0/1和E0/2端口<Quidway>sysSystem View: return to User View with Ctrl+Z. [Quidway]sysname switch2[switch2]interface ethernet 0/1[switch2-Ethernet0/1]speed 100[switch2-Ethernet0/1]duplex full[switch2-Ethernet0/1]int e0/2[switch2-Ethernet0/2]speed 100[switch2-Ethernet0/2]duplex full[switch2-Ethernet0/2]quit(4)、汇聚交换机的E0/1和E0/2端口交换机Switch1上端口汇聚[switch1-Ethernet1/0/2]quit[switch1]link-aggregation group 1 mode static[switch1]interface e1/0/1[switch1-Ethernet1/0/1]port link-aggregationgroup 1[switch1-Ethernet1/0/1]interface e1/0/2[switch1-Ethernet1/0/2]port link-aggregationgroup 1交换机Switch2上端口汇聚[switch2]link-aggregation e0/1 to e0/2 both(5)、配置交换机1的VLAN1地址[switch1]int vlan-interface 1[switch1-Vlan-interface1]%Apr 2 00:01:27:508 2000 switch1 L2INF/5/VLANIFLINK STATUS CHANGE:- 1 - Vlan-interface1: is UP[switch1-Vlan-interface1]ip address192.168.1.1 255.255.255.0[switch1-Vlan-interface1]%Apr 2 00:01:41:967 2000 switch1IFNET/5/UPDOWN:- 1 -Line protocol on the interface Vlan-interface1 is UP[switch1-Vlan-interface1]quit[switch1]disp int vlan 1Vlan-interface1 current state :UP Line protocol current state :UP IP Sending Frames' Format is PKTFMT_ETHNT_2,Hardware address is 000f-e220-938b Internet Address is 19Description : HUAWEI, Quidway Series,Vlan-interface1 Interface The Maximum Transmit Unit is 1500(6)、配置交换机2的VLAN1地址[switch2]interface vlan-interface 1[switch2-Vlan-interface1]ip address192.168.1.2 255.255.0[switch2-Vlan-interface1]quit[switch2]disp interface vlan 1Vlan-interface1 current state :UPDLine protocol current state :UP[switch2-Ethernet1/0/2]IP Sending Frames' Format is PKTFMT_ETHNT_2,Hardware address is 000f-e220-938bNGE:- 1-8:01:04 2000 switch2 ARP/4/DUPIFIP:Duplicateaddress 192.168.1.2 on VLInternet Address is 192.168.1.2/24 Primary227634, ifAdminStatus is 1, ifOperStatuN1,Description : HUAWEI, Quidway Series,Vlan-interface1 Interface-Vlan-interfas is 2%Apr 1 23:57:54:1000 2000 switch2The Maximum Transmit Unit is 1500(7)、测试汇聚结果[switch1]ping 192.168.1.2PING 192.168.1.2: 56 data bytes, press CTRL_Cto break Reply from 192.168.1.2: bytes=56 Sequence=1ttl=254 time=27 ms Reply from 192.168.1.2: bytes=56 Sequence=2ttl=254 time=7 ms Reply from 192.168.1.2: bytes=56 Sequence=3ttl=254 time=7 msReply from 192.168.1.2: bytes=56 Sequence=4ttl=254 time=20 ms Reply from 192.168.1.2: bytes=56 Sequence=5ttl=254 time=14 ms--- 192.168.1.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received0.00% packet lossround-trip min/avg/max = 7/15/27 ms(8)、验证端口汇聚[switch1]display mac-addressMAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)000f-e21a-ec6f 1 Learned Ethernet1/0/1 AGING0016-ec0b-d89b 1 Learned Ethernet1/0/1 AGING00e0-4c90-3da5 1 Learned Ethernet1/0/24 AGING--- 2 mac address(es) found --- [switch1]int e1/0/1[switch1-Ethernet1/0/1]shutdown[switch1-Ethernet1/0/1]#Apr 2 00:07:49:321 2000 switch1 L2INF/2/PORTLINK STATUS CHANGE:- 1 - Trap 1.3.6.1.6.3.1.1.5.3: portIndex is 4227626, ifAdminStatus is 2, ifOperStatu s is 2#Apr 2 00:07:49:514 2000 switch1LAGG/2/AggPortInactive:- 1 -Trap 1.3.6.1.4.1.2 011.5.25.25.2.2: TrapIndex 31465473 AggregationGroup 1: port member Ethernet1/0 /1 is INACTIVE!#Apr 2 00:07:49:731 2000 switch1LAGG/2/AggPortRecoverActive:- 1 -Trap 1.3.6.1.4.1.2011.5.25.25.2.2: TrapIndex 31465474A t1/0/2 is now ACTIVE!%Apr 2 00:07:49:947 2000 switch1 L2INF/5/PORTLINK STATUS CHANGE:- 1 -Ethernet1/0/1: is DOWN[switch1-Ethernet1/0/1]quit[switch1]ping 192.168.1.2PING 192.168.1.2: 56 data bytes, press CTRL_C to breakReply from 192.168.1.2: bytes=56 Sequence=1 ttl=254 time=9 msReply from 192.168.1.2: bytes=56 Sequence=2 ttl=254 time=13 msReply from 192.168.1.2: bytes=56 Sequence=3 ttl=254 time=19 msReply from 192.168.1.2: bytes=56 Sequence=4 ttl=254 time=8 msReply from 192.168.1.2: bytes=56 Sequence=5 ttl=254 time=10 ms--- 192.168.1.2 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 8/11/19 ms[switch1]disp mac-addressMAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)000f-e21a-ec6f 1 Learned Ethernet1/0/2 AGING0016-ec0b-d89b 1 Learned Ethernet1/0/2 AGING00e0-4c90-3da5 1 Learned Ethernet1/0/24 AGING--- 3 mac address(es) found ---五、实验小结由显示的MAC地址看出,此时MAC地址000f-e21a-ec6f、0016-ec0b-d89b都在E0/2端口所连接的网段上。

华为交换机常见命令

一、清空配置:<HUAWEI> reset saved-configuration(清楚下次启动时使用的配置文件信息)然后重启设备,重启设备室提示保存信息,选择“NO”。

<HUAWEI> reset saved-configurationWarning: The action will delete thesaved configuration in the device.The configuration will be erased toreconfigure. Continue? [Y/N]:yWarning: Now clearing the configuration inthe device.Info: Succeeded in clearing the configuration in the device.<HUAWEI> rebootInfo: The system is now comparing the configuration, pleasewait.Warning: The configuration has been modified, and it will be saved tothe next startup saved-configuration file flash:/vrpcfg.zip. Continue?[Y/N]:n //此处请选择“N”Info: If want to reboot with saving diagnosticinformation, input 'N' and then execute 'reboot save diagnostic-information'.System will reboot! Continue?[Y/N]:y二、通过STelnet/Telnet登录交换机设置新的Console口登录密码# 以登录用户界面的认证方式为密码认证,密码为Huawei@123为例,配置如下。

华为交换机配置命令

华为交换机的基本操作命令设置日期和时间——时间对于交换机来说非常重要,时间不对很多功能无法实现<Huawei>clock timezone BJ add 08:00:00 ——在用户视图下输入此命令<Huawei>clock datetime 13:45:30 2017-09-20 ----设置当前时间和日期,24小时制<Huawei>system-view------进入系统视图[Huawei] -----------进入系统视图后<>变成了[ ]创建Vlan并把端口加入VLAN[ Huawei]vlan 2 ------------在系统视图下操作,创建Vlan 2[Huawei-vlan2] ? ? ? ? ? ? ? ? ? #--创建了vlan2并进入vlan2[Huawei-vlan2]quit ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #--退出vlan2[Huawei]vlan batch 3 to 20 ? ? ?? ? ? ? #--批量创建vlan ?3到30Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]vlan batch 21 22 25 ? ? ? #--批量创建vlan,创建了21,22,25三个vlanInfo: This operation may take a few seconds. Please wait for a moment...done. [Huawei]undo vlan 21 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#--删除vlan ?21 [Huawei]undo vlan batch 22 25 ? ? ? ?? ? ? ? ?#--批量删除vlan,删除22 和25 ? Warning: The configurations of the VLAN will be deleted. Continue?[Y/N]:y ? ? ? ? ? #--询问是否真的删除Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]interface GigabitEthernet 0/0/2 ? ? ? ? ? ? ? ? ? ?#--进入G0/0/2端口[Huawei-GigabitEthernet0/0/2]port link-type access ? ?#--更改端口的连接类型为access [Huawei-GigabitEthernet0/0/2]port default vlan 2 ? ? ? ?#--更改端口的默认vlan为vlan 2 [Huawei]port-group 3-10 ? ? ? ? ? ? #--创建了一个名为3-10的端口组,并进入这个组[Huawei-port-group-3-10]group-member GigabitEthernet 0/0/3 to GigabitEthernet0/0/10 ? ? ? ? ?#-- 在组内,将G0/0/3 到G0/0/10端口抓进来[Huawei-port-group-3-10]port link-type access ? ? ? ? ? ? ? ? ? ? ? ? #--一条命令可以修改端口组内所有端口的属性[Huawei-GigabitEthernet0/0/3]port link-type access?[Huawei-GigabitEthernet0/0/4]port link-type access?[Huawei-GigabitEthernet0/0/5]port link-type access?[Huawei-GigabitEthernet0/0/6]port link-type access?[Huawei-GigabitEthernet0/0/7]port link-type access?[Huawei-GigabitEthernet0/0/8]port link-type access?[Huawei-GigabitEthernet0/0/9]port link-type access?[Huawei-GigabitEthernet0/0/10]port link-type access?[Huawei-port-group-3-10][Huawei-port-group-3-10]port default vlan 3[Huawei-GigabitEthernet0/0/3]port default vlan 3[Huawei-GigabitEthernet0/0/4]port default vlan 3[Huawei-GigabitEthernet0/0/5]port default vlan 3[Huawei-GigabitEthernet0/0/6]port default vlan 3[Huawei-GigabitEthernet0/0/7]port default vlan 3[Huawei-GigabitEthernet0/0/8]port default vlan 3[Huawei-GigabitEthernet0/0/9]port default vlan 3[Huawei-GigabitEthernet0/0/10]port default vlan 3[Huawei-port-group-3-10][Huawei]undo port-group 3-10 ? ? ? ? ? ? ? ? ?#--如不再需要这个端口组,可以解散?[Huawei]display port vlan ? ? ? ? ? ? ? ? ? ? ? ? ? #--显示端口和Vlan的关系Port ? ? ? ? ? ? ? ? ? ?Link Type ? ?PVID ?Trunk VLAN List-------------------------------------------------------------------------------GigabitEthernet0/0/1 ? ?hybrid ? ? ? 1 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/2 ? ?access ? ? ? 2 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/3 ? ?access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/4 ? ?access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/5 ? ?access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/6 ? ?access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/7 ? ?access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/8 ? ?access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/9 ? ?access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/10 ? access ? ? ? 3 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/11 ? hybrid ? ? ? 1 ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??GigabitEthernet0/0/12 ? hybrid ? ? ? 1 ? ? - ? ? ? ? ?###################################################################### ####设置Vlanif的IP地址交换机是二层设备,不能直接给某个端口指定IP地址,但可以给Vlan interface这个虚拟的接口设置IP 地址[Huawei]interface vlanif 1 ? ? ? ? #--进入vlanif 1[Huawei-Vlanif1]###################################################################### ####?保存交换机的设置?<Huawei>save ? ? ? ? ? ? ? ?#--在用户视图下,输入saveThe current configuration will be written to the device.Are you sure to continue?[Y/N]y ? ? #--这里提示是否继续保存配置Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:Apr 23 2017 15:21:07-08:00 Huawei %%01CFM/4/SAVE(l)[0]:The user chose Y when deciding whether to save the configuration to the device. ? ? ? ? ?#--首次保存时,会在此处暂停,等待输入文件名.如不输入,直接回车,则配置信息会默认保存成vrpcfg.zip,并设置为下一次启动时使用的文件.如果输入了自定义的文件名,则这个文件被设置成下次启动时使用的文件.Now saving the current configuration to the slot 0.Save the configuration successfully.<Huawei>?##################################################################### #####两台交换机互连,所使用的端口类型,设置为trunk(也可设置成hybrid。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

华为交换机“port-group”命令
简介:
Port-group是端口组的意思。

前面的总结中,关于端口的处理是以一个端口作为例子来说的。

而在实际应用中,如果我们一个端口一个端口的去配置,显然很麻烦。

Port-group命令就是将要进行同样操纵的端口添加到一个组里,在这个组里进行操作就行了。

当然和vlan一样,Port-group也是可以编号的,可以编多少个应该没有上限。

现在我们来对一台华为S2700的1-23端口(第24口接外网)进行限速,每个端口限制下载速度不超过1M/S。

注意:这里8192=1024*8,单位是kbps。

也就是1M下载速度等于8M的带宽。

就是这样,将要处理的端口加入到一个组里,对这个组进行操作后,系统会自动对组里的成员进行操作。

这样在处理多个端口时就变得很方便了。

现在我要将1,5,10,15,20这5个端口模式改成access模式
当然,port-group下的子命令有很多,根据不同需求选择不同功能。

相关文档
最新文档