• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

03-接口管理配置举例

目录

00-S12500_以太网接口典型配置举例

本章节下载 00-S12500_以太网接口典型配置举例  (126.72 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S12500/S12500/Configure/Typical_Configuration_Example/H3C_S12500-R7129-6W100/03/201309/796600_30005_0.htm

00-S12500_以太网接口典型配置举例


1  简介

本文档介绍了以太网接口配置举例。

2  配置前提

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文假设您已了解以太网接口特性。

3  配置举例

3.1  组网需求

图1所示,由于Server 1网卡的特殊限制,接口GigabitEthernet3/0/2只能协商为半双工模式;且其他服务器的网卡速率均为1000Mbps,GigabitEthernet3/0/1接口的速率为1000Mbps。要求实现:

·     通过配置接口速率,避免在GigabitEthernet3/0/1接口上发生拥塞;

·     通过配置接口强制双工模式,使得Device与Server 1能全双工工作。

图1 接口基本配置组网图

 

3.2  配置思路

·     如果不指定接口速率和自协商速率范围,接口(GigabitEthernet3/0/2、GigabitEthernet3/0/3和GigabitEthernet3/0/4)和服务器速率协商的结果将为1000Mbps,这样就可能造成出接口(GigabitEthernet3/0/1)拥塞。此时可以手工配置接口GigabitEthernet3/0/2、GigabitEthernet3/0/3和GigabitEthernet3/0/4的速率为100Mbps,来避免出接口的拥塞。

·     由于接口GigabitEthernet3/0/2与Server 1网卡只能自协商为半双工模式 ,因此通过命令行配置此接口 固定工作在全双工模式。

3.3  使用版本

本举例是在S12500-CMW710-R7129版本上进行配置和验证的。

3.4  配置注意事项

·     缺省情况下,GE接口的双工模式为auto(自协商)状态,10GE接口的双工模式为全双工状态;

·     以太网接口不支持配置half(半双工)模式;

·     建议一条链路两端的接口速率和双工模式配置一致,如果配置不同,接口可能无法正常工作。

3.5  配置步骤

# 配置接口GE3/0/2的速率为100Mbps,双工模式为全双工。

<Device> system-view

[Device] interface GigabitEthernet 3/0/2

[Device-GigabitEthernet3/0/2] undo shutdown

[Device-GigabitEthernet3/0/2] speed 100

[Device-GigabitEthernet3/0/2] duplex full

[Device-GigabitEthernet3/0/2]quit

# 配置接口GE3/0/3的速率为100Mbps。

[Device] interface GigabitEthernet 3/0/3

[Device-GigabitEthernet3/0/3] undo shutdown

[Device-GigabitEthernet3/0/3] speed 100

[Device-GigabitEthernet3/0/3]quit

# 配置接口GE3/0/4的速率为100Mbps。

[Device] interface GigabitEthernet 3/0/4

[Device-GigabitEthernet3/0/4] undo shutdown

[Device-GigabitEthernet3/0/4] speed 100

[Device-GigabitEthernet3/0/4] quit

3.6  验证配置

# 查看以太网接口GigabitEthernet3/0/2的运行状态和相关信息。

[Device]display interface GigabitEthernet 3/0/2

GigabitEthernet3/0/2 current state: UP

Line protocol current state: UP

IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3822-d60f-e000

Description: GigabitEthernet3/0/2 Interface

Loopback is not set

Media type is twisted pair, Port hardware type is 1000_BASE_T

100Mbps-speed mode, full-duplex mode

Link speed type is force link, link duplex type is force link

Flow-control is not enabled

The Maximum Frame Length is 9216

Allow jumbo frame to pass

Broadcast MAX-ratio: 100%

Multicast MAX-ratio: 100%

Unicast MAX-ratio: 100%

PVID: 1

Mdi type: automdix

Port link-type: access

 Tagged Vlan:   none

 UnTagged Vlan: 1

Port priority: 2

Last clearing of counters: Never

 Peak value of input: 0 bytes/sec, at 2012-09-03 15:51:35

 Peak value of output: 10 bytes/sec, at 2012-09-03 16:05:41

 Last 300 seconds input:  0 packets/sec 0 bytes/sec 0%

 Last 300 seconds output:  0 packets/sec 10 bytes/sec 0%

 Input (total):  9 packets, 1107 bytes

          0 unicasts, 0 broadcasts, 9 multicasts, - pauses

 Input (normal):  9 packets, 1107 bytes

          0 unicasts, 0 broadcasts, 9 multicasts, 0 pauses

 Input:  0 input errors, 0 runts, 0 giants, 0 throttles

          0 CRC, 0 frame, 0 overruns, - aborts

          - ignored, - parity errors

 Output (total): 46 packets, 5658 bytes

          0 unicasts, 0 broadcasts, 46 multicasts, - pauses

 Output (normal): 46 packets, 5658 bytes

          0 unicasts, 0 broadcasts, 46 multicasts, 0 pauses

 Output: 0 output errors, - underruns, - buffer failures

          0 aborts, 0 deferred, 0 collisions, 0 late collisions

          - lost carrier, - no carrier

# 查看以太网接口GigabitEthernet3/0/3的运行状态和相关信息。

[Device]display interface GigabitEthernet 3/0/3

GigabitEthernet3/0/3 current state: UP

Line protocol current state: UP

IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3822-d60f-e000

Description: GigabitEthernet3/0/3 Interface

Loopback is not set

Media type is twisted pair, Port hardware type is 1000_BASE_T

100Mbps-speed mode, full-duplex mode

Link speed type is force link, link duplex type is autonegotiation

Flow-control is not enabled

The Maximum Frame Length is 9216

Allow jumbo frame to pass

Broadcast MAX-ratio: 100%

Multicast MAX-ratio: 100%

Unicast MAX-ratio: 100%

PVID: 1

Mdi type: automdix

Port link-type: access

 Tagged Vlan:   none

 UnTagged Vlan: 1

Port priority: 2

Last clearing of counters: Never

 Peak value of input: 0 bytes/sec, at 2012-09-03 15:51:35

 Peak value of output: 10 bytes/sec, at 2012-09-03 15:54:18

 Last 300 seconds input:  0 packets/sec 0 bytes/sec 0%

 Last 300 seconds output:  0 packets/sec 10 bytes/sec 0%

 Input (total):  4 packets, 492 bytes

          0 unicasts, 0 broadcasts, 4 multicasts, - pauses

 Input (normal):  4 packets, 492 bytes

          0 unicasts, 0 broadcasts, 4 multicasts, 0 pauses

 Input:  0 input errors, 0 runts, 0 giants, 0 throttles

          0 CRC, 0 frame, 0 overruns, - aborts

          - ignored, - parity errors

 Output (total): 40 packets, 4920 bytes

          0 unicasts, 0 broadcasts, 40 multicasts, - pauses

 Output (normal): 40 packets, 4920 bytes

          0 unicasts, 0 broadcasts, 40 multicasts, 0 pauses

 Output: 0 output errors, - underruns, - buffer failures

          0 aborts, 0 deferred, 0 collisions, 0 late collisions

          - lost carrier, - no carrier

# 查看以太网接口GigabitEthernet3/0/4的运行状态和相关信息。

[Device]display interface GigabitEthernet 3/0/4

GigabitEthernet3/0/4 current state: UP

Line protocol current state: UP

IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3822-d60f-e000

Description: GigabitEthernet3/0/4 Interface

Loopback is not set

Media type is twisted pair, Port hardware type is 1000_BASE_T

100Mbps-speed mode, full-duplex mode

Link speed type is force link, link duplex type is autonegotiation

Flow-control is not enabled

The Maximum Frame Length is 9216

Allow jumbo frame to pass

Broadcast MAX-ratio: 100%

Multicast MAX-ratio: 100%

Unicast MAX-ratio: 100%

PVID: 1

Mdi type: automdix

Port link-type: access

 Tagged Vlan:   none

 UnTagged Vlan: 1

Port priority: 2

Last clearing of counters: Never

 Peak value of input: 0 bytes/sec, at 2012-09-03 15:55:39

 Peak value of output: 0 bytes/sec, at 2012-09-03 15:51:35

 Last 300 seconds input:  0 packets/sec 0 bytes/sec 0%

 Last 300 seconds output:  0 packets/sec 0 bytes/sec 0%

 Input (total):  146 packets, 17958 bytes

          0 unicasts, 0 broadcasts, 146 multicasts, - pauses

 Input (normal):  146 packets, 17958 bytes

          0 unicasts, 0 broadcasts, 146 multicasts, 0 pauses

 Input:  0 input errors, 0 runts, 0 giants, 0 throttles

          0 CRC, 0 frame, 0 overruns, - aborts

          - ignored, - parity errors

 Output (total): 4 packets, 492 bytes

          0 unicasts, 0 broadcasts, 4 multicasts, - pauses

 Output (normal): 4 packets, 492 bytes

          0 unicasts, 0 broadcasts, 4 multicasts, 0 pauses

 Output: 0 output errors, - underruns, - buffer failures

          0 aborts, 0 deferred, 0 collisions, 0 late collisions

          - lost carrier, - no carrier

3.7  配置文件

#

interface GigabitEthernet3/0/2

port link-mode bridge

speed 100

duplex full

#

interface GigabitEthernet3/0/3

port link-mode bridge

speed 100

#

interface GigabitEthernet3/0/4

port link-mode bridge

speed 100

#

4  相关资料

·     《H3C S12500系列路由交换机  接口管理配置指导》中的“以太网接口”

·     《H3C S12500系列路由交换机  接口管理命令参考》中的“以太网接口”

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们