接口描述、接口模式、接口速率、接口流量的管理配置

网络拓扑

交换机接口学习_接口速率

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo	
[Huawei]undo info	
[Huawei]undo info-center ena	
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysn	
[Huawei]sysname SW-1  
[SW-1]dis	
[SW-1]display info	
[SW-1]display inte	
[SW-1]display interface Ethe	
[SW-1]display interface Ethernet brie	
[SW-1]display interface Ethernet brief 
PHY: Physical
*down: administratively down
(l): loopback
(b): BFD down
InUti/OutUti: input utility/output utility
Interface                   PHY   Auto-Neg Duplex Bandwidth  InUti OutUti Trunk
Ethernet0/0/1               up    enable   half        100M     0%     0%    --
Ethernet0/0/2               down  enable   half        100M     0%     0%    --
Ethernet0/0/3               down  enable   half        100M     0%     0%    --
Ethernet0/0/4               down  enable   half        100M     0%     0%    --
Ethernet0/0/5               down  enable   half        100M     0%     0%    --
Ethernet0/0/6               down  enable   half        100M     0%     0%    --
Ethernet0/0/7               down  enable   half        100M     0%     0%    --
Ethernet0/0/8               down  enable   half        100M     0%     0%    --
Ethernet0/0/9               down  enable   half        100M     0%     0%    --
Ethernet0/0/10              down  enable   half        100M     0%     0%    --
Ethernet0/0/11              down  enable   half        100M     0%     0%    --
Ethernet0/0/12              down  enable   half        100M     0%     0%    --
Ethernet0/0/13              down  enable   half        100M     0%     0%    --
Ethernet0/0/14              down  enable   half        100M     0%     0%    --
Ethernet0/0/15              down  enable   half        100M     0%     0%    --
Ethernet0/0/16              down  enable   half        100M     0%     0%    --
Ethernet0/0/17              down  enable   half        100M     0%     0%    --
Ethernet0/0/18              down  enable   half        100M     0%     0%    --
Ethernet0/0/19              down  enable   half        100M     0%     0%    --
Ethernet0/0/20              down  enable   half        100M     0%     0%    --
Ethernet0/0/21              down  enable   half        100M     0%     0%    --
Ethernet0/0/22              down  enable   half        100M     0%     0%    --
GigabitEthernet0/0/1        up    enable   half       1000M     0%     0%    --
GigabitEthernet0/0/2        down  enable   half       1000M     0%     0%    --
MEth0/0/1                   down  enable   half        100M     0%     0%    --

[SW-1]in	
[SW-1]inte	
[SW-1]interface Gigabi	
[SW-1]interface GigabitEthernet 0/0/1
[SW-1-GigabitEthernet0/0/1]desc	
[SW-1-GigabitEthernet0/0/1]description To_SW-2  //配置接口描述
[SW-1-GigabitEthernet0/0/1]undo	
[SW-1-GigabitEthernet0/0/1]undo nego	
[SW-1-GigabitEthernet0/0/1]undo negotiation auto  //配置为非自协商模式
[SW-1-GigabitEthernet0/0/1]dupl	
[SW-1-GigabitEthernet0/0/1]duplex full  //全双工模式
[SW-1-GigabitEthernet0/0/1]spee	
[SW-1-GigabitEthernet0/0/1]speed 100  //配置速率为100Mb/s
[SW-1-GigabitEthernet0/0/1]flo	
[SW-1-GigabitEthernet0/0/1]flow-control  //打开接口流量控制开关
[SW-1-GigabitEthernet0/0/1]dis	
[SW-1-GigabitEthernet0/0/1]display this  //查看当前接口配置信息
#
interface GigabitEthernet0/0/1
 port media type copper
  flow-control
 description To_SW-2
#
return
[SW-1-GigabitEthernet0/0/1]quit
[SW-1]