1.1以太网接口简介·

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

目录

1以太网接口配置············································································································· 1-1

1.1 以太网接口简介·········································································································· 1-1

1.2 以太网接口配置·········································································································· 1-1

1.2.1 以太网接口基本配置 ··························································································· 1-1

1.2.2 以太网子接口基本配置 ························································································ 1-2

1.2.3 切换以太网接口的二三层工作模式 ········································································· 1-2

1.2.4 配置以太网接口允许超长帧通过 ············································································ 1-3

1.2.5 配置以太网接口dampening功能 ············································································ 1-3

1.2.6 配置以太网接口统计信息的时间间隔 ······································································ 1-5

1.2.7 配置以太网接口的MAC地址 ················································································· 1-5

1.3 以太网接口显示和维护································································································· 1-6

1 以太网接口配置

1.1 以太网接口简介

设备上支持的以太网接口有以下几种:

•三层以太网接口:是一种工作在网络层的接口,可以配置IP地址,可以对接收到的报文进行三层路由转发。

•三层以太网子接口:是一种逻辑接口,工作在网络层,可以配置IP地址,处理三层协议。主要用来实现在三层以太网接口上支持收发VLAN tagged报文。用户可以在一个以太网接口上

配置多个子接口,这样,来自不同VLAN的报文可以从不同的子接口进行转发,为用户提供

了很高的灵活性。关于三层以太网接口上支持收发VLAN tagged报文的详细描述请参见“二

层技术-以太网交换配置指导”中的“VLAN终结”。

1.2 以太网接口配置

1.2.1 以太网接口基本配置

(1) 进入系统视图。

system-view

(2) 进入以太网接口视图。

interface interface-type interface-number

(3) 设置当前接口的描述信息。

description text

缺省情况下,接口的描述信息为“接口名 Interface”,例如:GigabitEthernet1/0/1

Interface。

(4) 设置MTU。

mtu size

缺省情况下,以太网接口的MTU为1500字节。

(5) 配置接口的期望带宽。

bandwidth bandwidth-value

缺省情况下,接口的期望带宽=接口的波特率÷1000(kbps)。

期望带宽供业务模块使用,不会对接口实际带宽造成影响。

(6) 恢复接口的缺省配置。

default

(7) 打开以太网接口。

undo shutdown

缺省情况下,以太网接口处于开启状态。

1.2.2 以太网子接口基本配置

1. 配置限制和指导

以太网子接口只有在关联了VLAN后才能正常收发报文。相关配置请参见“二层技术-以太网交换配置指导”中的“VLAN终结”。

本端设备以太网子接口号、关联的VLAN ID需要分别和相连的对端设备的以太网子接口号、关联的VLAN ID一致,否则报文将不能正确传输。

2. 配置步骤

(1) 进入系统视图。

system-view

(2) 创建以太网子接口,并进入以太网子接口视图。

interface interface-type interface-number.subnumber

(3) 设置以太网子接口的描述字符串。

description text

缺省情况下,描述字符串为“该接口的接口名 Interface”,例如:GigabitEthernet1/0/1.1

Interface。

(4) 设置MTU。

mtu size

缺省情况下,以太网子接口的MTU为1500字节。

(5) 配置接口的期望带宽。

bandwidth bandwidth-value

缺省情况下,接口的期望带宽=接口的波特率÷1000(kbps)。

期望带宽供业务模块使用,不会对接口实际带宽造成影响。

(6) 恢复接口的缺省配置。

default

(7) 打开以太网子接口。

undo shutdown

缺省情况下,以太网子接口处于开启状态。

1.2.3 切换以太网接口的二三层工作模式

1. 功能简介

以太网接口缺省工作在三层模式(route)。

•如果将工作模式设置为二层模式(bridge),则作为一个二层以太网接口使用。

•如果将工作模式设置为三层模式(route),则作为一个三层以太网接口使用。

2. 配置限制和指导

工作模式切换后,除了shutdown命令,该以太网接口下的其它所有命令都将恢复到新模式下的缺省情况。

相关文档
最新文档