首页 电脑常识文章正文

网络交换机配置命令(局域网智能交换机配置命令)

电脑常识 2024年05月29日 11:56 56 游客

一、交换机的端口介绍

二、以太网交换机的端口讲解

三、以太网交换机配置命令

1.交换机端口配置

网络交换机配置命令(局域网智能交换机配置命令)

1.1.1创建VLAN

system-view

网络交换机配置命令(局域网智能交换机配置命令)

[H3C]interfacevlan-interface1

[H3C-VLAN-VLAN-interface1]ipaddress192.168.0.1

[H3C-VLAN-interface1]undoshutdown

网络交换机配置命令(局域网智能交换机配置命令)

[H3C-VLAN-interface1]undoshutdown

[H3C-VLAN-interface1]portlink-typeaccess

[H3C-VLAN-interface1]ipaddress192.168.0.124

[H3C-VLAN-interface1]undoshutup

[H3C-VLAN-interface1]portlink-typeaccess

[H3C-VLAN-interface1]portdefaultundo

[H3C-VLAN-interface1]undoshutdown

[H3C-VLAN-interface1]portlink-typeaccess

[H3C-VLAN-interface1]undoshutdown

[H3C-VLAN-interface1]portlink-typeaccess

[H3C-VLAN-interface1]portdefaultundo

[H3C-VLAN-interface1]undoshutdown

[H3C-VLAN-interface1]portdefaultundo

[H3C-VLAN-interface1]undoshutup

2.交换机端口配置

2.1交换机基本配置

system-view

[H3C]interfaceGigabitEthernet1/0/1

[H3C-GigabitEthernet1/0/1]portlink-typeaccess

[H3C-GigabitEthernet1/0/1]portdefault

[H3C-GigabitEthernet1/0/1]portlink-typeaccess

[H3C-GigabitEthernet1/0/1]portdefaultvlan10

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portlink-typeaccess

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portlink-typeaccess

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]portdefaultvlan20

[H3C-GigabitEthernet1/0/1]quit

3.交换机连接

3.1连接模式

system-view

[H3C]interfaceVlan-interfaceEthernet1/0/1

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

[H3C-Vlan-interfaceEthernet1/0/1]portlink-typeaccess

3.2连接端口

[H3C]interfaceGigabitEthernet1/0/2

[H3C-GigabitEthernet1/0/2]portlink-typetrunk

[H3C-GigabitEthernet1/0/2]porttrunk

[H3C-GigabitEthernet1/0/2]porttrunkpermit

[H3C-GigabitEthernet1/0/2]quit

[H3C-GigabitEthernet1/0/2]quit

[H3C-GigabitEthernet1/0/2]porttrunkpermit

[H3C-GigabitEthernet1/0/2]quit

4.配置WDS和PC

3.1配置WDS

[H3C]save//配置rcstate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

3.2PC配置

[H3C]save//配置irqdns

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

[H3C-Save]service-typestate

4.4查看端口状态

3.2查看当前telnet参数

[H3C]displayinterfaceGigabitEthernet1/0/2

[H3C-GigabitEthernet1/0/2]displayinterfaceGigabitEthernet1/0/3

[H3C-GigabitEthernet1/0/3]displayinterfaceGigabitEthernet1/0/4

[H3C-GigabitEthernet1/0/4]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/4]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/3]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/3]displayinterfaceGigabitEthernet1/0/4

[H3C-GigabitEthernet1/0/4]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/3]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/3]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/3]displayinterfaceGigabitEthernet1/0/4

[H3C-GigabitEthernet1/0/4]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/3]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/4]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/6

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/6

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/6

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/6

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/6

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5]displaycurrent-configure1.0.0/7

[H3C-GigabitEthernet1/0/5]displayinterfaceGigabitEthernet1/0/5

[H3C-GigabitEthernet1/0/5][H3C-GigabitEthernet1/0/5][H3C-GigabitEthernet1/0/5][H3C-GigabitEthernet1/0/5][H3C-GigabitEthernet1/0/5]

[H3C-GigabitEthernet1/0/5][H3C-GigabitEthernet1/0/5][H3C-GigabitEthernet1/0/5][H3C-GigabitEthernet1/0/5]

五、故障

标签: 网络

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 3561739510@qq.com 举报,一经查实,本站将立刻删除。

Copyright © www.jszcfw.com All Rights Reserved. 滇ICP备2023005829号 图片来源于网络,如有侵权请联系删除