Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

在机箱级别和接口级别配置端口速度

了解如何在机箱和接口级别配置端口速度。

在机箱级别配置端口速度

表 1:机箱级别的端口速度配置

配置步骤

通道化单个端口: 将单个端口配置为在特定通道速度下运行。指定端口号和通道速度。

[edit chassis fpc fpc-slot pic pic-slot]

user@host# set port port-number channel-speed speed

要将单个 40 千兆以太网 (et) 端口配置为 10 千兆以太网 (xe) 端口,请指定端口号和通道速度。

[edit chassis fpc 0 pic 0] user@host# set port 3 channel-speed 10g

Channelize 端口块: 对端口块进行通道化。指定端口范围和通道速度。

[edit chassis fpc fpc-slot pic pic-slot]

user@host# set port-range port–range-low port-range-high channel-speed speed

要将 PIC 0 上的端口 0 到 3 配置为 50 千兆以太网端口:

[edit chassis fpc 0 pic 0] user@host# set port-range 0 3 channel-speed 50g

配置每四边形的速度: 仅按四边形(4 个端口组)配置端口速度,而不是单独配置端口速度。指定四端口第一个端口的速度。所有端口在四边形内以单一速度运行。

[edit chassis fpc fpc-slot pic pic-slot]

user@host# set port port–number speed speed

要将端口 4 到 7 配置为 25 千兆以太网端口,您必须将端口 4 配置为 25 千兆以太网端口。

[edit chassis fpc 0 pic 0]

user@host# set port 4 speed 25g

在单个端口上配置速度

[edit chassis fpc fpc-slot pic pic-slot]

user@host# set port port–number speed speed

[edit chassis fpc 0 pic 0]

user@host# set port 3 speed 25g

在接口级别配置速度

表 2:接口级别的端口速度配置

配置步骤

非通道化接口

通道化接口

步骤 1: 要指示端口运行速度,请为所需接口配置 speed 语句。

[edit interfaces interface-name]

user@host# set speed (10G | 25G | 40G | 50G| 100G | 400G)

例如:

[edit interfaces et-1/0/3] user@host# set speed 100g

[edit interfaces interface-name] user@host# set speed (10G | 25G | 40G | 50G| 100G | 400G)

例如:

[edit interfaces et-1/0/3] user@host# set speed 100g

步骤 2:配置一组端口的速度。

[edit ] user@host# wildcard range set interfaces interface-name speed speed

例如:

[edit ] user@host# wildcard range set interfaces et-1/0/[0-5] speed 100g

[edit ] user@host# wildcard range set interfaces interface-name speed speed

例如:

[edit ] user@host# wildcard range set interfaces et-1/0/[7-12] speed 100g

步骤 3: 指定要为每个端口配置的接口数。

不適用

[edit interfaces interface-name] user@host# set number-of-sub-ports number-of-sub-ports

例如:

[edit interfaces et-1/0/3] user@host# set number-of-sub-ports 4

在此示例中,在步骤 1 和步骤 2 中,您将配置 4 个 100GE 通道化接口。

步骤 4: (可选)要控制在物理端口上创建的接口数量,请使用 unused 语句。如果将端口配置为未使用,则无论该端口的端口配置文件配置如何,都不会为该端口创建接口。

[edit] user@host# set interfaces interface-name unused

例如:

[edit] user@host# set interfaces et-2/0/3 unused

在此示例中,未在 FPC 插槽 2 中安装的线卡的端口 3 上创建任何接口(通道化或非通道化)。

[edit] user@host# set interfaces interface-name unused

例如:

[edit] user@host# set interfaces et-2/0/4 unused

在此示例中,未在安装在 FPC 插槽 2 中的线卡的端口 4 上创建任何接口(通道化或非通道化)。

步骤五:验证配置。

et-x/y/z { speed 100g;

unit 0 { ... } ... unit N { ... } } ... et-x/y/z { unused;

et-x/y/z { speed 100g; number-of-sub-ports 4;

et-x/y/z:0 { unit 0{ ... } }

et-x/y/z:1 { unit 0{ ... } }

et-x/y/z:2 { unit 0{ ... } }

et-x/y/z:3 { unit 0{ ... } }

... et-x/y/z:6 { unused;

步骤 6:提交配置。