H3CNE实验:配置交换机接口

第1步:配置交换机端口

<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]interface GigabitEthernet3/1/1
[H3C-GigabitEthernet3/1/1]description to PC1
[H3C-GigabitEthernet3/1/1]duplex ?
auto Enable port's duplex negotiation automatically
full Full-duplex
half Half-duplex [H3C-GigabitEthernet3/1/1]duplex full
[H3C-GigabitEthernet3/1/1]speed ?
10 Specify speed as 10 Mbps
100 Specify speed as 100 Mbps
1000 Specify speed as 1000 Mbps
auto Enable port's speed negotiation automatically [H3C-GigabitEthernet3/1/1]speed 1000
[H3C-GigabitEthernet3/1/1]mdi ?
across Crossover cable type
auto Automatic detection type
normal Straight through cable type [H3C-GigabitEthernet3/1/1]mdi auto
[H3C-GigabitEthernet3/1/1]quit
[H3C]interface GigabitEthernet 3/1/2
[H3C-GigabitEthernet3/1/2]shutdown
[H3C-GigabitEthernet3/1/2]interface GigabitEthernet 3/1/3
[H3C-GigabitEthernet3/1/3]undo shutdown
Interface GigabitEthernet3/1/3 is not shut down

(1) interface interface-type interface-number——配置进入以太网端口视图。

(2) description to text——配置当前接口的描述信息。

默认情况下,当前端口的描述信息为“端口名 Interface”。

(3) duplex { auto | full | half }——配置端口的双扣模式。

默认情况下,以太网端口的双攻模式为auto,即自协商。

注意:SFP光接口不支持设置双攻模式为half。

(4) speed { 10 | 100 | 1000 | auto }——配置以太网端口的速率。

默认情况下,以太网端口的MDI模式为auto,即通过协商决定物理引脚接收和发送报文。

(5) mdi { across | auto | normal }——配置以太网端口的MDI模式。

默认情况下,以太网端口的MDI模式为auto,即通过协商决定物理引脚接收和发送报文。

以太网双绞线缆两种:直通线缆和交叉线缆。

(6) undo shutdown——开启交换机的端口。

默认情况下,H3C交换机的端口是开启的。建议使用shutdown命令关闭不适用的接口。

undo shutdown命令也可以激活Combo端口。默认情况下,Combo接口中编号较小的物理端口处于激活状态。

Combo端口是逻辑端口,对应H3C设备上的一个以太网电口和一个SFP光口。

第2步:查看端口相关的信息

(1) display interface [ interface-type ]命令显示以太网端口的运行状态和相关信息。

(2) display interface [ interface-type ] brief命令显示以太网端口的概要信息。

(3) display port combo命令显示设备上存在的Combo口及其光口和电口的对应关系。

上一篇:用bootstrap做一个背景可轮转的登录界面


下一篇:.NET Core迁移技巧之web.config配置文件