不管是运维实施部署也好,还是网路工程师也好,交换机的配置可能是家常便饭,在工作中你是搞运维的,会配置交换机也是一个炫耀的加分项哦!下面我们就拿H3C的交换机配置,做一个介绍吧!主要讲解交换机的连接,登陆,配置vlan,划分网口access或者trunk,查看配置状态等!
准备工作:
一、将交换机通过console线连接到笔记本电脑
![0a71456ff05dc9e9f12148c3fd22d554.png](https://i-blog.csdnimg.cn/blog_migrate/bc2d9af92952bbecdf6f340a2e1fd0fc.jpeg)
二、通过crt远程管理软件,远程连接
![de483d3e28b2e2cab527437fe11d7000.png](https://i-blog.csdnimg.cn/blog_migrate/a04213c78fa071e21691c6ee62a4ddc4.jpeg)
1、新建一个链接,协议选择为serial
![b7b86b089a213dab679541c4b506eb4e.png](https://i-blog.csdnimg.cn/blog_migrate/7715b2bedff372ef54d93896439a6ac1.jpeg)
2、端口和波特率分别为COM3和9600
![4d80a558ae4ec9c175fcd057654379f8.png](https://i-blog.csdnimg.cn/blog_migrate/23d2be91707a4d79bf595d68ec2f5be4.jpeg)
3、点击完成,并且连接
![9ae46dc793aeb98ff24206b546c6a2ff.png](https://i-blog.csdnimg.cn/blog_migrate/ea20c4581b76fb82a8dd8df7c03c6196.jpeg)
4、按2下enter键即可连接到交换机了
![ee55d383e1a711ce179f499efd03ab17.png](https://i-blog.csdnimg.cn/blog_migrate/2a860d18c218a4acb6e763e55749af41.jpeg)
一、进入系统配置视图
system-view
System View: return to User View with Ctrl+Z.
二、显示vlan配置
[itcloud-test-H3C]display vlan
Total 23 VLAN exist(s). The following VLANs exist: 1(default), 10, 13-15, 21, 25, 30, 66, 68, 106, 108-110, 120-122, 124-125, 135, 222, 500-501,
三、创建vlan
[itcloud-test-H3C]vlan 123
[itcloud-test-H3C-vlan123]quit
四、再次查看vlan是否创建成功
[itcloud-test-H3C]display vlan
Total 24 VLAN exist(s). The following VLANs exist: 1(default), 10, 13-15, 21, 25, 30, 66, 68, 106, 108-110, 120-125, 135, 222, 500-501,
五、为网口划分vlan
[itcloud-test-H3C]interface GigabitEthernet1/0/3
[itcloud-test-H3C-GigabitEthernet1/0/3]port link-type access
[itcloud-test-H3C-GigabitEthernet1/0/3]port access vlan 123
[itcloud-test-H3C-GigabitEthernet1/0/3]quit
六、查看vlan及网口配置
[itcloud-test-H3C]display interface brief
The brief information of interface(s) under route mode:Link: ADM - administratively down; Stby - standbyProtocol: (s) - spoofingInterface Link P