![H3C华为交换机配置基本命令_第1页](http://file3.renrendoc.com/fileroot_temp3/2022-2/15/324fdb7d-7426-48be-ba29-df4d95f6ba93/324fdb7d-7426-48be-ba29-df4d95f6ba931.gif)
![H3C华为交换机配置基本命令_第2页](http://file3.renrendoc.com/fileroot_temp3/2022-2/15/324fdb7d-7426-48be-ba29-df4d95f6ba93/324fdb7d-7426-48be-ba29-df4d95f6ba932.gif)
![H3C华为交换机配置基本命令_第3页](http://file3.renrendoc.com/fileroot_temp3/2022-2/15/324fdb7d-7426-48be-ba29-df4d95f6ba93/324fdb7d-7426-48be-ba29-df4d95f6ba933.gif)
![H3C华为交换机配置基本命令_第4页](http://file3.renrendoc.com/fileroot_temp3/2022-2/15/324fdb7d-7426-48be-ba29-df4d95f6ba93/324fdb7d-7426-48be-ba29-df4d95f6ba934.gif)
![H3C华为交换机配置基本命令_第5页](http://file3.renrendoc.com/fileroot_temp3/2022-2/15/324fdb7d-7426-48be-ba29-df4d95f6ba93/324fdb7d-7426-48be-ba29-df4d95f6ba935.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、H3c交换机路由器常用命令local-user admin (建立 TELNET用户)password simple adminauthorization-attribute level 3service-type telnetstp enable (开启生成树功能)interface Vlan-interface1 ip address 1.1.1.1 255.255.255.0(为只定 VLAN配置 IP 地址)port access vlan 20 (在端口模式下将接口添加到相关VLAN)(接口的TRUN图已置)port link-type trunkport trunk permit
2、vlan alluser-interface vty 0 4authentication-mode scheme (开启 TELNET 服务的虚拟端口)user-interface vty 5 15description首先配置交换机的管理IP 地址H3cinterface Vlan-interface 1H3c-vlan-interface1ip address 10.0.0.1 255.255.255.0只用密码的用户认证H3cuser-interface vty 0 4H3c-ui-vty0-4authentication-mode passwordH3c-ui-vty0-4set au
3、thentication password simple 123456远程用户缺省的级别都是0 级, Telnet 用户登录后的用户级别H3c-ui-vty0-4user privilege level 3本地用户名和口令的认证H3cuser-interface vty 0 4H3c-ui-vty0-4authentication-mode schemeH3clocal-user H3cH3c-ui-vty0-4password simple huaweiH3c-ui-vty0-4service-type telnet level 31 调整超级终端的显示字号;2捕获超级终端操作命令行,以备日
4、后查对;3复制命令到超级终端命令行,粘贴到主机;4路由器交换机配置时不能掉电,连通测试前一定要检查网络的连通性,不要犯最低级的错误。5在IP 地址写法上: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 246设备命名规则:地名- 设备名 - 系列号例: PingGu-Router-S3600H3c交换机1 system-view 进入系统视图模式2 sysname 为设备命名3 display current-configuration当前配置情
5、况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模式下将指定端口加入到当前vl
6、an中13 port trunk permit vlan all允许所有的vlan 通过14交换机清除配置:<H3C>reset save ; <H3C>reboot15 192.168.1.1/24 等 同 192.168.1.1255.255.255.0 ; 在 配 置 交 换 机 和 路 由 器 时 , 192.168.1.1255.255.255.0 可以写成:192.168.1.1 24H3c路由器1 system-view 进入系统视图模式2 sysname R1 为设备命名为R13 display ip routing-table 显示当前路由表4 lan
7、guage-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
8、 description To.R2配置默认的路由端口表示方法E1/0/1显示系统版本信息:display version显示诊断信息:display diagnostic-information显示系统当前配置:display current-configuration显示系统保存配置:display saved-configuration显示接口信息:display interface显示路由信息:display ip routing-table显示 VLAN信息s: display vlan显示生成树信息:display stp显示 MACM址表:display mac-address显
9、示ARP表信息:display arp显示系统CPU用率:display cpu显示系统内存使用率:display memory显示系统日志:display log显示系统时钟:display clock验证配置正确后,使用保存配置命令:save删除某条命令,一般使用命令:undo一、Console 口登录方式:最简单的配置认证方式为none (默认)# 进入系统视图。<H3C> system-view#进入AUXffi户界面视图。H3C user-interface aux 0# 配置通过AUX用户界面登录交换机的用户不需要进行认证。H3C-ui-aux0 authenticat
10、ion-mode none# 配置通过AUX用户界面登录后可以访问的命令级别为2级。H3C-ui-aux0 user privilege level 2# 配置AUXffl户界面使用白波特率为9600bit/s 。H3C-ui-aux0 speed 9600# 配置AUXffl户界面终端屏幕的一屏显示30行命令。H3C-ui-aux0 screen-length 30# 配置AUXffl户界面的历史命令缓冲区可存放20条命令。H3C-ui-aux0 history-command max-size 20# 配置AUXffl户界面的超时时间为6分钟。H3C-ui-aux0 idle-timeou
11、t 6完成上述配置后,用户需要改变PC机上运行的终端仿真程序的相应配置,使之与交换机上的配置保持一致,才能确保正常登录。2、 Console 口登录方式: 配置进入口令, 认证方式为Password# 进入系统视图。<H3C> system-view# 进入AUXffl户界面视图。H3C user-interface aux 0# 配置通过AUX用户界面登录交换机的用户进行Password认证。H3C-ui-aux0 authentication-mode password# 配置用户的认证口令为明文显示方式,口令为123456。H3C-ui-aux0 set authentica
12、tion password simple 123456# 配置通过AUX用户界面登录后可以访问的命令级别为2级。H3C-ui-aux0 user privilege level 2# 配置AUXffl户界面使用白波特率为9600bit/s 。H3C-ui-aux0 speed 9600/s# 配置AUXffl户界面终端屏幕的一屏显示30行命令。H3C-ui-aux0 screen-length 30# 配置AUXffl户界面的历史命令缓冲区可存放20条命令。H3C-ui-aux0 history-command max-size 20# 配置AUXffl户界面的超时时间为6分钟。H3C-ui-
13、aux0 idle-timeout 6完成上述配置后,用户需要改变PC机上运行的终端仿真程序的相应配置,使之与交换机上的配置保持一致,才能确保正常登录。3、 Console 口登录方式: 配置用户和口令, 认证方式为scheme# 进入系统视图。<H3C> system-view# 创建本地用户guest ,并进入本地用户视图。H3C local-user guest# 配置本地用户的认证口令为明文显示方式,口令为123456。H3C-luser-guest password simple 123456# 配置本地用户的服务类型为Terminal 且命令级别为2 级。H3C-lus
14、er-guest service-type terminal level 2H3C-luser-guest quit#进入AUXffi户界面视图。H3C user-interface aux 0# 配置通过AUX用户界面登录交换机的用户进行Scheme认证。H3C-ui-aux0 authentication-mode scheme# 配置AUXffl户界面使用白波特率为9600bit/s 。H3C-ui-aux0 speed 9600# 配置AUXffl户界面终端屏幕的一屏显示30行命令。H3C-ui-aux0 screen-length 30# 配置AUXffl户界面的历史命令缓冲区可存放
15、20条命令。H3C-ui-aux0 history-command max-size 20# 配置AUXffl户界面的超时时间为6分钟。H3C-ui-aux0 idle-timeout 6完成上述配置后,用户需要改变PC机上运行的终端仿真程序的相应配置,使之与交换机上的配置保持一致,才能确保正常登录。<H3C>H3Csysname LIANXI#交换机命名PG.LIANXIsuper password cipher lianxi# #设置用户窗口进入系统窗口密码为lianxiPG.LIANXIuser-interface vty 0 4# #进入TELNET接口,0 4说明同时可以
16、允许最多五个用户PG.LIANXI -vty0-4authentication-mode password# #设置TELNE偌码访问模式PG.LIANXI -vty0-4set authentication password simple lianxi# #设置 TELNETS问密码为 lianxiPG.LIANXI -vty0-4user privilegelevel 3# #telnet 访问级别为3 级PG.LIANXI -vty0-4quitPG.LIANXIPG.LIANXIvlan 2PG.LIANXI-vlan2port Ethernet 1/0/1PG.LIANXI-vlan
17、2description UpLink.To.H3C S5600PG.LIANXIPG.LIANXIinterface vlan-interface 2PG.LIANXI-Vlan-interface2ip address 211.153.10.154 255.255.255.248PG.LIANXI-Vlan-interface2quitPG.LIANXIPG.LIANXIip route-static 0.0.0.0 0.0.0.0 211.153.10.153 preference 60PG.LIANXIPG.LIANXIinterface Ethernet 1/0/19PG.LIANX
18、I-Ethernet1/0/16port link-type trunkPG.LIANXI-Ethernet1/0/16port trunk permit vlan 601 to 622PG.LIANXI-Ethernet1/0/16quitPG.LIANXIH3c交换机、路由器Console和Telnet密码配置一、H3c交换机密码配置TEUET登鞋主机192.16A 0-1/24伯卜 A(一)CONSOLE 登陆在AUX用户接口视图下,可以设置CONSOLE户登陆的口令认证。有如下三种认证方式None:不需要口令认证Password:需要简单的本地口令认证,包含明文 (simple)和密文
19、(cipher )Scheme通过RADIUS服务器或本地提供用户名和认证口令配置命令如下:<H3C>system-viewH3Cuser-interface aux 0H3C-ui-aux0authentication-mode passwordH3C-ui-aux0set authenticaton password simple 123456推出重新登陆,交换机提示用户输入访问口令Login authentication Password:用户的命令控制级别设置H3C-ui-aux0user privilege level 0H3Csuper password level 1
20、 simple 123456H3Csuper password level 2 simple 123456H3Csuper password level 3 simple 123456(二)Telnet 配置首先配置交换机的管理IP地址H3Cinterface Vlan-interface 1H3C-vlan-interface1ip address 10.0.0.1 255.255.255.0只用密码的用户认证H3Cuser-interface vty 0 4H3C-ui-vty0-4authentication-mode passwordH3C-ui-vty0-4set authentic
21、ation password simple 123456远程用户缺省的级别都是0级,Telnet用户登录后的用户级别H3C-ui-vty0-4user privilege level 3本地用户名和口令的认证H3Cuser-interface vty 0 4H3C-ui-vty0-4authentication-mode schemeH3Clocal-user H3CH3C-ui-vty0-4password simple huaweiH3C-ui-vty0-4service-type telnet level 3二、H3c路由器配置 Console 口和 TelnetCONSOLE! TEL
22、NET-样的,只要配置了会同时启作用,且只能是用户名和密码的方式。Quidwaylocal-user quidway service-type administrator password simple h3cCONSOLE:通过密码:Quidwayuser-interface con 0Quidway-ui-console0authentication-mode passwordQuidway-ui-console0set authentication password simple h3cQuidway-ui-console0user privilege level 3>可以不配置,
23、默认级别是3通过用户名和密码:Quidwayuser-interface con 0Quidway-ui-console0authentication-mode localQuidwaylocal-user quidway password simple h3cQuidwaylocal-user quidway service-type terminalQuidwaylocal-user quidway level 3TELNET:通过密码:Quidwayuser-interface vty 0 4Quidway-ui-vty0-4 authentication-mode passwordQu
24、idway-ui-vty0-4 set authentication password simple h3cQuidway-ui-vty0-4 user privilege level 3通过用户名和密码:Quidwayuser-interface vty 0 4Quidway-ui-vty0-4authentication-mode localQuidwaylocal-user quidway password simple h3cQuidwaylocal-user quidway service-type telnetQuidwaylocal-user quidway level 3VRP
25、3.4CONSOLE:通过密码:Quidwayuser-interface con 0Quidway-ui-console0authentication-mode passwordQuidway-ui-console0set authentication password simple h3cQuidway-ui-console0user privilege level 3>可以不配置,默认级别是3通过用户名和密码:Quidwaylocal-user quidwayQuidway-luser-quidwaypassword simple h3cQuidway-luser-quidways
26、ervice-type terminal level 3Quidwayuser-interface con 0Quidway-ui-console0authentication-mode schemeTELNET:通过密码:Quidwayuser-interface vty 0 4Quidway-ui-vty0-4authentication-mode passwordQuidway-ui-vty0-4set authentication password simple h3cQuidway-ui-vty0-4user privilege level 3通过用户名和密码:Quidwayuser
27、-interface vty 0 4Quidway-ui-vty0-4authentication-mode passwordQuidway-ui-vty0-4set authentication password simple h3cQuidwaylocal-user quidwayQuidway-luser-quidwaypassword simple h3cQuidway-luser-quidwayservice-type telnet level 3通过用户名和密码:Quidwayuser-interface vty 0 4Quidway-ui-vty0-4authentication
28、-mode schemeQuidwaylocal-user quidwayQuidway-luser-quidwaypassword simple h3cQuidway-luser-quidwayservice-type telnet level 1Quidwaysuper password level 3 simple h3cpassMS源列路由器Console登陆认证功能的配置一、组网需求:要求用户从 console登录时输入已配置的用户名huawei3com和对应的口令 huawei3com,用户名和口令正确才能登录成功。二、组网图:TEWT登够主机1S2. 16S. 0.1/24*1a
29、 岫 A三、配置步骤:/创建本地帐号与密码local-user huawei3compassword simple huawei3com/设置服务类型为terminalservice-type terminal/设置用户优先级为 3level 3#/ 设置 scheme认证user-interface con 0authentication-mode scheme#四、配置关键点:1)在配置完成后,需保存配置重新启动设备后生效。display history-command【命令】display history-command【视图】任意视图【参数】无【描述】display history-c
30、ommand 命令用来显示当前用户最近执行过的有效历史命令,以便用户查看之前的配置。这些历史命令存放在历史命令缓冲区,历史命令缓冲区的大小可以通过history-command max-size 命令来设置。历史命令缓冲区充满时,旧的信息会被覆盖。缺省情况下,命令行接口为每个用户保存10条有history-command max-size效历史命令。相关配置可参考“登录交换机”中的命令 【举例】 # 显示当前用户使用过的有效历史命令。<H3C> display history-command system-view quitdisplay history-commandsuper
31、password 【命令】super password level level cipher | simple password undo super password level level 【视图】系统视图【参数】level level :用户的级别,取值范围为13。缺省值为3,即如果不指定具体的级别,表示设置的是进入级别3 的口令。cipher :在配置文件中以密文方式显示口令。simple :在配置文件中以明文方式显示口令。H3C S2126-EI 以太网交换机命令手册,命令行接口第 1 章 命令行接口命令1-5password : 口令字符串。如果验证方式是simple ,则pass
32、word必须是明文口令,取值范围为 116个字符的字符串;如果验证方式是cipher ,则用户在设置password 时有两种方式:一种是输入小于等于16 字符的明文口令,系统会自动转化为24 位的密文形式;另一种是直接输入24 字符的密文口令,此时用户必须知道其对应的明文形式。如:密文 “ _(TT8FY5SQ=AQ'MAF4<1! ” 对应的明文是。【描述】super password 命令用来设置切换低级别用户到高级别用户的口令。undo superpassword 命令用来恢复缺省情况。缺省情况下,没有设置切换低级别用户到高级别用户的口令。需要注意的是,不论配置的是明文口
33、令还是密文口令,验证时必须输入明文形式的口令。【举例】# 配置从低级别切换到级别3 的口令为“0123456789”,显示方式为明文显示。<H3C> system-viewSystem View: return to User View with Ctrl+Z.H3C super password level 3 simple 0123456789lock【命令】lock【视图】用户视图【参数】无【描述】lock 命令用来锁住当前用户界面,防止未授权的用户操作该界面。用户输入lock 命令后,系统提示输入密码,并提示再次输入密码,只有两次输入的密码相同,锁定操作才能成功。如果用户需
34、要结束锁定,请按 <回车>键,然后按照提示输入刚才配置的密码,密码正确则结束锁定,进入系统。需要注意的是:如果用户设定的密码长度超过16 个字符,系统在取消锁定时只匹配前16 个字符。即, 只要密码的前16 个字符正确,系统就取消锁定。缺省情况下,不会自动锁定当前用户界面。【举例】# 锁住当前用户界面。<H3C> lock 回车后,系统提示输入及确认密码,输入的密码为隐藏状态。Password:Again : locked此时用户界面处于锁定状态,再对界面进行操作,系统会提示用户输入密码,输入正确的密码后,才能进入用户视图。set authentication pass
35、word【命令】set authentication password cipher | simple passwordundo set authentication password【视图】用户界面视图【参数】cipher :设置本地认证口令以密文方式存储。simple :设置本地认证口令以明文方式存储password : 口令字符串。如果验证方式是simple , 则 password 必须是明文口令。如果验证方式是cipher ,则用户在设置password 时有两种方式:一种是输入小于等于16 字符的明文口令,系统会自动转化为24位的密文形式;另一种是直接输入24 字符的密文口令,此时
36、用户必须知道其对应的明文形式。如:明文“123456” 对应的密文是 “ OUM!K%F<+$Q=AQ'MAF4<1!。【描述】set authentication password 命令用来设置本地认证的口令。undo setauthentication password 命令用来取消本地认证的口令。需要注意的是,不论配置的是明文口令还是密文口令,验证时必须输入明文形式的口令。说明:用户通过 Modem或Telnet方式登录时,缺省情况下需要进行口令认证。如果没有配置口令,则终端屏幕将显示“Login password has not been set ! ”,并断开与交
37、换机的连接。【举例】# 设置 VTY0 的本地认证明文口令为123。<H3C> system-viewSystem View: return to User View with Ctrl+Z.H3C user-interface vty 0H3C-ui-vty0 set authentication password simple 123 telnet【命令】telnet hostname | ip-address service-port 【视图】用户视图【参数】hostname:远端设备的主机名,为 120个字符的字符串。ip-address :远端设备的IP 地址。servi
38、ce-port :远端设备提供 Telnet服务的TCP端口号,取值范围为065535。【描述】telnet 命令用来使用户可以方便地从当前以太网交换机登录到其它以太网交换机进行远程管理。用户可以使用<Ctrl+K> 组合键或quit 命令来中断本次Telnet 登录。缺省情况下,Telnet 服务的端口号为 23。【举例】#从当前以太网交换机H3C1登录到另外一台以太网交换机H3C2 (IP地址为129.102.0.1 ) 。<H3C1> telnet 129.102.0.1Trying 129.102.0.1 .Press CTRL+K to abortConnec
39、ted to 129.102.0.1 .*Copyright (c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved.*# Without the owner's prior written consent, *# no decompiling or reverse-engineering shall be allowed. *user privilege level【命令】user privilege level levelundo user privilege level【视图】用户界面视图【参数】level :
40、从用户界面登录后可以访问的命令级别,取值范围为03。【描述】user privilege level 命令用来设置从某用户界面登录后可以访问的命令级别。Undo user privilegelevel命令用来恢复缺省情况。缺省情况下, 从AUX用户界面登录后可以访问的命令级别为3级,从VTY用户界面登录后可以访问的命令级别为0 级。命令级别共分为访问、监控、系统、管理4 个级别,分别对应标识0、 1 、 2、 3,简介如下:访问级(0 级) :用于网络诊断等功能的命令。包括ping 、 tracert 、 telnet 等命令,执行该级别命令的结果不能被保存到配置文件中。监控级(1级):用于系
41、统维护、业务故障诊断等功能的命令。包括debugging 、 terminal等命令,执行该级别命令的结果不能被保存到配置文件中。系统级(2级):用于业务配置的命令。包括路由等网络层次的命令,用于向用户提供网络服务。管理级(3级):关系到系统的基本运行、系统支撑模块功能的命令,这些命令对业务提供支撑作用。包括文件系统、XModem下载、用户管理命令、级别设置命令等。有关命令级别的详细信息,请参见“命令行接口”部分。【举例】# 设置从 VTY0 用户界面登录后可以访问的命令级别为1 。<H3C> system-viewSystem View: return to User View
42、with Ctrl+Z.H3C user-interface vty 0H3C-ui-vty0 user privilege level 1# 通过 Telnet 方式从 VTY0 用户界面登录交换机后,可以看到终端上只显示了命令级别为1 级的命令。<H3C> ?User view commands:cluster Run cluster commanddebugging Enable system debugging functionsdisplay Display current system informationmsdp-tracert MSDP trace route t
43、o source RPmtracert Trace route to multicast sourcenslookup Query Internet name serversping Ping functionquit Exit from current command viewreset Reset operationsend Send information to other user terminal interfacessuper Set the current user priority leveltelnet Establish one TELNET connectiontermi
44、nal Set the terminal line characteristicstracert Trace route functionundo Cancel current setting display current-configuration【 命 令 】 display current-configuration configuration configuration-type |interface interface-type interface-number by-linenum | begin | include | exclude regular-expression 【视
45、图】任意视图【参数】configuration configuration-type :显示非接口配置。如果不指定configuration-type ,则显示所有的非接口配置;如果指定configuration-type ,则显示指定功能的配置。configuration-type 的取值与用户当前已配置的功能有关,例如:isp :表示网络服务提供商的配置。radius-template :表示RADIUS模板类型的配置。system :表示系统配置。user-interface :表示用户界面的配置。interface interface-type interface-number:显示接
46、口的配置。interface-type 为接口类型,可以是Aux、 Ethernet 、 LoopBack、 NULL、 Vlan-interface 。interface-number 为接口编号。by-linenum :以带有行编号的形式显示配置信息。| :使用正则表达式过滤显示的配置。begin :显示以指定文字(regular-expression )开始的配置及之后的所有配置。include :显示包含指定文字(regular-expression)的配置。exclude :显示不含指定文字(regular-expression)的配置。【描述】display current-con
47、figuration命令用来显示设备当前的配置。当用户完成一组配置之后,需要验证配置是否生效,则可以执行displaycurrent-configuration 命令来查看当前生效的参数。需要注意的是:如果当前配置的参数与缺省参数相同,则不予显示。对于某些参数,虽然用户已经配置,但如果这些参数对应的功能没有生效,则不予显示。相关配置可参考命令save , reset saved-configuration , displaysaved-configuration 。【举例】# 显示以太网交换机当前的接口的配置信息。# H3C> display current-configuration
48、interface display current-configuration vlan【命令】display current-configuration vlan vlan-id by-linenum 【视图】任意视图H3C S2126-EI 以太网交换机命令手册配置文件管理第 1 章 配置文件管理命令1-6【参数】vlan vlan-id : VLAN编号,取值范围为14094。by-linenum :以带有行编号的形式显示配置信息。【描述】display current-configuration vlan 命令用来显示交换机当前VLAN 的配置信息。如果不指定vlan-id 参数,则显
49、示交换机当前所有VLAN 的配置信息。需要注意的是,如果存在连续编号的VLAN 且这些 VLAN 无任何配置,在显示配置信息时将连续的空配置VLAN 合并。相关配置可参考命令save , reset saved-configuration , displaysaved-configuration 。【举例】# 显示以太网交换机中当前VLAN 的配置信息。# H3C> display current-configuration vlan#vlan 1#vlan 100 to 200# returndisplay vlan【命令】display vlan vlan-id to vlan-id
50、 |all | dynamic|static 【视图】任意视图【参数】vlan-id :指定VLAN ID,取值范围为14094。to :指定多个连续的 VLAN ID, to之后的VLAN编号不能小于to之前的。all :显示所有VLAN 的相关信息。dynamic:显示动态VLAN (指通过GVRP协议注册的VLAN信息。static :显示静态VLAN (指通过手工配置创建的VLAN)信息。【描述】display vlan 命令用来显示VLAN 的相关信息。vlan-id ,则显示指定VLAN 的相关信息。vlan-id ,则显示系统已存在的VLAN 的编号。dynamic 或 stat
51、ic 参数,则显示系统已存在的动态或静态VLAN 数量及 VLAN 编号。相关配置可参考命令vlan 。【举例】# 显示 VLAN1 的信息。# H3C> display vlan 1VLAN ID: 1VLAN Type: staticRoute Interface:idle-timeout【命令】idle-timeout minutes seconds undo idle-timeout【视图】用户界面视图【参数】minutes :分钟数,取值范围为0 35791。seconds:秒数,取值范围为 059。【描述】idle-timeout 命令用来配置用户超时断开连接的时间,如果在所
52、设定的时间内登录到当前用户界面上的用户没有对交换机执行任何操作,则交换机将断开与该用户的连接。undo idle-timeout 命令用来恢复超时断开连接的缺省值。缺省情况下,用户超时断开连接的时间为10 分钟。设置idle-timeout 0即关闭超时中断连接功能。【举例】# 设置AUX0用户界面的超时断开连接时间为1分钟。<H3C> system-viewSystem View: return to User View with Ctrl+Z.H3C user-interface aux 0H3C-ui-aux0 idle-timeout 1 name【命令】name text
53、undo name【视图】VLAN 视图【参数】text : VLAN名称,为132个字符的字符串(可以包含特殊字符及空格)。【描述】name命令用来指定当前 VLAN的名称。undo name命令用来恢复当前 VLAN名称的缺省值。缺省 情况下,VLAN的名称为该 VLAN的VLAN ID,如“ VLAN 0001”。【举例】# 指定 VLAN 2 的名称为“test vlan ”。# H3C> system-viewSystem View: return to User View with Ctrl+Z.H3C vlan 2H3C-vlan2 name test vlanport【命
54、令】port interface-list undo port interface-list【视图】VLAN 视图【参数】interface-list:需要添加到某个VLAN 中或从某个VLAN 中删除的以太网端口列表,表示方式为 interface-list = interface-type interface-number to interface-typeinterface-number &<1-10> 。其中interface-type 为端口类型, interface-number 为端口号。 关键字 to 之后的端口号要大于或等于to 之前的端口号。命令中&<1-10>表示前面的参数最多可以输入10 次。【描述】port 命令用来向VLAN 中添加一个或一组端口。undo port 命令用来从VLAN 中删除
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中国针织衬衫行业市场深度分析及投资策略咨询报告
- 广告公司员工聘用合同范本
- 公司红酒购销合同范本
- 公寓房屋出售合同范本
- 公司监理合同范本
- 2025年手拉单轨行车项目投资可行性研究分析报告
- 分账式合作合同范本
- 2025年度住宅小区建筑工程施工合同索赔风险评估与防控措施
- 2025年度地热能开发打井技术服务协议4篇
- 2025年橡塑运输带项目可行性研究报告
- 数学-河南省三门峡市2024-2025学年高二上学期1月期末调研考试试题和答案
- 2025年春新人教版数学七年级下册教学课件
- 《心脏血管的解剖》课件
- 心肺复苏课件2024
- 2024-2030年中国并购基金行业发展前景预测及投资策略研究报告
- 河道清淤安全培训课件
- 2024各科普通高中课程标准
- 7.3.1印度(第1课时)七年级地理下册(人教版)
- 环保铁1215物质安全资料表MSDS
- “君子教育”特色课程的探索
- AS9100D人力资源管理程序(范本)
评论
0/150
提交评论