交换机的基本配置Word格式文档下载.docx

上传人:b****5 文档编号:20481645 上传时间:2023-01-23 格式:DOCX 页数:12 大小:92.95KB
下载 相关 举报
交换机的基本配置Word格式文档下载.docx_第1页
第1页 / 共12页
交换机的基本配置Word格式文档下载.docx_第2页
第2页 / 共12页
交换机的基本配置Word格式文档下载.docx_第3页
第3页 / 共12页
交换机的基本配置Word格式文档下载.docx_第4页
第4页 / 共12页
交换机的基本配置Word格式文档下载.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

交换机的基本配置Word格式文档下载.docx

《交换机的基本配置Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《交换机的基本配置Word格式文档下载.docx(12页珍藏版)》请在冰豆网上搜索。

交换机的基本配置Word格式文档下载.docx

4)删除Flash中的配置信息

Resetsaved-configuration

5)重新启动交换机

Reboot

6)修改交换机名称

Sysnamexxxx(其中xxx为交换机名)

7)显示系统软件版本

Displayversion

8)显示端口的配置信息

Displayinterface[interface_type|interface_typeinterface_num|interface_name]

9)设置以太网端口的全双工/半双工属性

Duplex{auto|full|half}

Undoduplex

10)设置端口的速率

Speed{10|100|1000|auto}

Undospeed

11)设置以太网端口的网线类型

Mdi{across|auto|normal}

Undomdi

12)设置以太网端口广播风暴抑制比

Broadcast-suppressionpct其中pct代表以太网端口最大广播流量的线速度百分比,取值范围为5-100。

Undobroadcast-suppression

13)开启以太网端口的流量控制特性

Flow-control

Undoflow-control

14)设置以太网端口的链路类型

Portlink-type{access|hybrid|trunk}

Undoportlink-type

15)把access端口加入到指定的VLAN中

Portaccessvlanvlan-id

Undoportaccessvlan

16)添加/修改地址表项

Mac-address{static|dynameic}mac_addressinterface{interface_name|interface_typeinterface_num}vlanvlan_id

Undomac-address{static|dynameic}[[mac_address]interface[interface_name|interface_typeinterface_num]vlanvlan_id]

17)将一组端口设置为汇聚端口

Link-aggregationinterface_name1tointerface_name2{both|ingress}

Undolink-aggregation{master_interface_name|all}

18)低级用户和高级用户相互切换

Superx(x表示用户所在层次)

19)创建VLAN

Vlanvlan_id

Undovlan{vlan_id[tovlan_id]|all}(all表示删除所有vlan)

20)给VLAN接口指定IP地址和掩码

Ipaddressip_addressip_netmask[sub]

Undoipaddress[ip-addressip_netmask[sub]]

21)进行用户界面祝图

User-interface[type]first-number[last-number]

22)设置登录用户的认证方式

Authentication-mode{password|scheme}

Authentication-modenone

23)设置本地认证的口令

Setauthenticationpassword{cipher|simple}xxxxx(cipher为密文、simple为明文)

Undosetauthenticationpassword

24)设置切换低级别用户到高级别用户的密码

Superpassword[levelx]{simple|cipher}xxxx(x或者xxxx都为具体数字)

Undosuperpassword[levelx]

25)添加本地用户

Local-useruser-name

Undolocal-user{user-name|all[service-type{telnet|ftp|lan-access}]}

26)设置指定用户的服务类型

Service-type{telnet[levelx]ftp[ftp-directorydirectory]|lan-access}

Undoservice-type{telnet[level]|ftp[ftp-directory]|lan-access}

★项目实训内容:

任务1:

交换机口令配置与清除

1、交换机Console口令配置步骤:

<

H3C>

system-view

[H3C]user-interfaceaux0

[H3C-ui-aux0]authentication-modepassword(设置验证模式为password)

[H3C-ui-aux0]setauthenticationpasswordsimple123456(设置验证口令为明文123456)

[H3C-ui-aux0]quit

[H3C]quit

save

Displaycurrent-configuration(验证密码是否设置成功)

reboot(重新启动交换机)

2、交换机Console口令清除步骤:

如果口令丢失,那么重新启动交换机,在出现PressCtrl-BtoenterBootMenu…提示时,按下Ctrl+B,然后输入BootROM口令,才能进入Boot菜单。

选择第四项“Deletefilefromflash”,删除指定文件vrpcfg.txt。

3、修改登录用户的命令控制级别:

用户登录后,其对命令的控制有一定的级别,共分为4个等级,最低级别为0,最高级别为3,默认值为3;

当不指定用户级别表示从当前级别切换到级别3。

不同的级别下只能使用等于或低于自己级别的命令。

其操作步骤如下:

[H3C]user-interfaceaux0

[H3C-ui-aux0]userprivilegelevel0

[H3C]superpasswordlevel1simpleh3c1

[H3C]superpasswordlevel2simpleh3c2

[H3C]superpasswordlevel3simpleh3c3

Displaycurrent-configuration(验证用户权限密码是否设置成功)

任务二:

1、交换机端口基本配置

[H3C]sysnameswitch1

[switch1]vlan10

[switch1-vlan10]quit

[switch1]interfaceEthernet1/0/1

[switch1-Ethernet1/0/1]duplexfull

[switch1-Ethernet1/0/1]speed100

[switch1-Ethernet1/0/1]mdiacross

[switch1-Ethernet1/0/1]flow-control

[switch1-Ethernet1/0/1]broadcast-suppression10

[switch1-Ethernet1/0/1]portlink-typeaccess

[switch1-Ethernet1/0/1]portaccessvlan10

2、交换机VLAN端口基本配置

[Switch1]vlan10(创建VLAN)

[Switch1-vlan10]portEthernet1/0/1toEthernet1/010(将端口加入到VLAN中)

[Switch1-vlan10]quit

[Switch1]interfacevlan-interface10(创建VLAN的虚接口)

[Switch1-vlan-interface10]ipaddress192.168.10.1255.255.255.0(创建VLAN接口IP地址)

[Switch1-vlan-interface10]quit

[Switch1]displayvlanall(查看VLAN信息)

任务三:

仅使用密码的交换机Telnet配置

◇操作内容:

本任务主要介绍H3C以太网交换机的Telnet配置方法,用户利用Telnet登录交换机时仅使用密码验证方式的交换机配置方法。

◇组网环境:

H3CS3600以太网交换机两台,操作系统为VRPsoftwareVersion,专用配置电缆1根,网线两根,PC机一台。

◇组网拓朴图:

配置步骤:

1、交换机VLAN端口配置

(1)交换机Switch1的相关配置

[H3C]sysnameswitch1

[switch1]vlan100

[switch1-vlan100]portEthernet1/0/10

[switch1-vlan100]quit

[switch1]interfaceVlan-interface100

[switch1-vlan-interface100]ipaddress192.168.10.1255.255.255.0

[switch1-vlan-interface100]quit

[switch1-vlan10]portEthernet1/0/2

[switch1-vlan10]quit

[switch1]interfaceVlan-interface10

[switch1-vlan-interface10]ipaddress192.168.1.1255.255.255.0

[switch1-vlan-interface10]quit

[switch1]displayvlanall

(2)交换机Switch2的相关配置

[H3C]sysnameswitch2

[switch2]vlan10

[switch2-vlan10]portEthernet1/0/2

[switch2-vlan10]quit

[switch2]interfaceVlan-interface10

[switch2-vlan-interface10]ipaddress192.168.1.2255.255.255.0

[switch2-vlan-interface10]quit

[switch2]iproute-staic0.0.0.00.0.0.0192.168.1.1

[switch2]displayvlanall

2、交换机Telnet密码验证设置

(1)在交换机1上的相关配置

[switch1]user-interfacevty04

[switch1-ui-vty0-4]authentication-modepassword

[switch1-ui-vty0-4]setauthenticationpasswordsimpleaaa

[switch1-ui-vty0-4]userprivilegelevel3

[switch1-ui-vty0-4]quit

[switch1]

(2)在交换机2上的相关配置

[switch2]user-interfacevty04

[switch2-ui-vty0-4]authentication-modepassword

[switch2-ui-vty0-4]setauthenticationpasswordsimpleaaa

[switch2-ui-vty0-4]userprivilegelevel3

[switch2-ui-vty0-4]quit

[switch2]

3、修改PC机IP地址并进行Telnet登录

(1)修改PC机IP地址

PC机IP地址为192.168.10.2,掩码为255.255.255.0,网关为192.168.10.1

(2)利用telnet进行远程登录switch1

C:

\>

telnet192.168.1.1

(3)利用telnet进行远程登录switch2

telnet192.168.1.2

知识拓展:

使用用户名和密码的交换机的Telnet配置

◆在Console口连接交换机1的超级终端上操作(删除任务3配置的相关内容):

[switch1-ui-vty0-4]undosetauthenticationpassword

[switch1-ui-vty0-4]undouserprivilegelevel

◆在交换机Switch1上进行用户名和密码验证配置

[switch1-ui-vty0-4]authentication-modescheme

[switch1]local-userh3c创建本地用户

[switch1-luser-h3c]service-typetelnet配置为telnet用户

[switch1-luser-h3c]passwordsimple123

[switch1-luser-h3c]superpasswordlevel3simplexyz

◆在PC机上进行Telnet登录结果显示

Username:

h3c

Password;

123

switch1>

任务四:

配置交换机端口的MAC地址表和端口汇聚

◆操作内容:

修改交换机端口地址与属性,配置交换机端口的静态MAC地址表、实现交换机的端口汇聚等。

◆组网环境:

◆网络拓扑图:

◆配置步骤:

1、设置h3c1的E1/0/1和E1/0/2端口

h3c>

[h3c]sysnameh3c1

[h3c1]interfaceEthernet1/0/1

[h3c1-Ethernet1/0/1]speed100

[h3c1-Ethernet1/0/1]duplexfull

[h3c1-Ethernet1/0/1]interfaceEthernet1/0/2

[h3c1-Ethernet1/0/2]speed100

[h3c1-Ethernet1/0/2]duplexfull

[h3c1-Ethernet1/0/2]quit

[h3c1]vlan10

[h3c1-vlan10]portEthernet1/0/1toEthernet1/0/10

[h3c1-vlan10]quit

[h3c1]link-aggregationgroup1(组)modemanual

[h3c1]Interfacee1/0/1

[h3c1-Ethernet1/0/1]portLink-aggregationgroup1

[h3c1-Ethernet1/0/1]quit

[h3c1]Interfacee1/0/2

[h3c1-Ethernet1/0/2]portLink-aggregationgroup1

[h3c1]displaylink-aggregation

[h3c1]interfacevlan-interface10

[h3c1-vlan-interface10]ipaddress192.168.10.1255.255.255.0

[h3c1-vlan-interface10]quit

[h3c1]displayinterfacevlan10

[h3c1]mac-addressstatic(pc机的mac地址)interfacee1/0/10vlan10

2、设置h3c2的E1/0/1和E1/0/2端口

[h3c]sysnameh3c2

[h3c2]interfaceEthernet1/0/1

[h3c2-Ethernet1/0/1]speed100

[h3c2-Ethernet1/0/1]duplexfull

[h3c2-Ethernet1/0/1]interfaceEthernet1/0/2

[h3c2-Ethernet1/0/2]speed100

[h3c2-Ethernet1/0/2]duplexfull

[h3c2-Ethernet1/0/2]quit

[h3c2]vlan10

[h3c2-vlan10]portEthernet1/0/1toEthernet1/0/10

[h3c2-vlan10]quit

[h3c2]link-aggregationg1-416ms

[h3c2]displaylink-aggregation

[h3c2]interfacevlan-interface10

[h3c2-vlan-interface10]ipaddress192.168.10.2255.255.255.0

[h3c2-vlan-interface10]quit

[h3c2]displayinterfacevlan10

3、测试结果

(1)[h3c1]ping192.168.10.2(结果是连通的)

(2)将E1/0/1端口关闭,再进行测试

[h3c1]interfacee1/0/1

[h3c1-Ethernet1/0/1]shutdown

[h3c1]ping192.168.10.2(结果仍然是连通的)

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 农林牧渔 > 林学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1