教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 互联网资料 >

08-端口基本配置命令(2)

来源:网络收集 时间:2026-07-17
导读: ? ? 目的端口中不能有汇聚组端口,否则系统会将该汇聚组端口从目的端口列表中移除,copy命令也不会对该端口生效。如果用户需要在该端口上同步源端口的配置,则需要将该端口所在的汇聚组配置为目的参数(即配置desti

?

?

目的端口中不能有汇聚组端口,否则系统会将该汇聚组端口从目的端口列表中移除,copy命令也不会对该端口生效。如果用户需要在该端口上同步源端口的配置,则需要将该端口所在的汇聚组配置为目的参数(即配置destination-agg-id)。 目的端口中不能有使能了Voice VLAN特性的端口,否则系统会将该端口从目的端口列表中删除。

# 将端口GigabitEthernet1/1/1的配置拷贝到端口Ethernet1/0/1。

[Sysname]copy configuration source g1/1/1 destination e1/0/1 Copying VLAN configuration...

Copying Protocol based VLAN configuration... Copying LACP configuration... Copying QOS configuration... Copying GARP configuration... Copying STP configuration...

Copying speed/duplex configuration...

Copying speed configuration to interface Ethernet1/0/1 failed

Copying QoS rate limit configuration to interface Ethernet1/0/2 failed

以上提示信息表明,除速率和QoS流量监管拷贝失败外,其余配置均已拷贝成功。

1.1.3 description

【命令】

description text undo description 【视图】

以太网端口视图 【参数】

text:端口描述字符串,目前交换机可以支持的描述字符包括英文标准字符(区分大小写的字母、数字)、英文特殊字符、空格、以及符合unicode编码规范的其他文字和符号,例如中文、韩文或日文。端口描述字符串的取值范围为1~80个字符长度。其中,符合unicode编码规范的其他文字和符号占用两个字符长度。

用户可以在描述字符串中混合输入英文字符和unicode字,混合输入的字符串总长度不能超过规定的长度范围。

如果用户在设置描述字符时需要使用unicode编码的某种文字或符号,则必须具有相应的输入法软件,并使用支持该字符的远程登录软件登录到设备上进行配置。

?

?

【描述】

description命令用来设置端口的描述字符串。undo description命令用来取消端口描述字符串。 缺省情况下,端口描述字符串为空。

配置完成后,可以通过display brief interface命令查看已经配置的描述字符串。

【举例】

# 设置以太网端口Ethernet1/0/1的描述字符串为home。

system-view

System View: return to User View with Ctrl+Z. [Sysname] interface ethernet 1/0/1

[Sysname-Ethernet1/0/1] description home

1.1.4 display brief interface

【命令】

display brief interface [ interface-type [ interface-number ] ] [ | { begin | include | exclude } regular-expression ] 【视图】

任意视图 【参数】

interface-type:端口类型。 interface-number:端口编号。

|:使用正则表达式过滤输出的配置信息。 begin:接口信息以某个字符(串)开始。 include:接口信息当中包括某个字符(串)。 exclude:接口信息当中不包括某个字符(串)。

regular-expression:正则表达式,是长度为1~256个字符的字符串。

有关正则表达式的具体描述,请参见本手册的“配置文件管理”章节。 【描述】

display brief interface命令用来显示接口的简要配置信息,包括:接口类型、连接状态、连接速率、双工属性、链路类型、缺省VLAN ID、描述字符串。

目前,对于除以太网端口外其他的接口类型,系统只显示连接状态信息,其它配置信息均用“--”表示。

相关配置可以参考命令display interface。 【举例】

# 显示Ethernet1/0/1端口的简要配置信息。

display brief interface Ethernet1/0/1 Interface:

Eth - Ethernet GE - GigabitEthernet TENGE - tenGigabitEthernet Loop - LoopBack Vlan - Vlan-interface Cas - Cascade Speed/Duplex:

A - auto-negotiation

Interface Link Speed Duplex Type PVID Description

------------------------------------------------------------------------ Eth1/0/1 DOWN A A hybrid 1 home

表1-2 display brief interface命令显示信息描述表

字段 Interface Link Speed Duplex Type PVID Description 接口类型 以太网端口的当前状态,可以为UP、DOWN或ADMINISTRATIVELY DOWN 连接速率 双工属性 链路类型,可以为Access、Hybrid或Trunk 缺省的VLAN ID 端口的描述字符串 描述

以太网端口的状态包括UP、DOWN和ADMINISTRATIVELY DOWN,具体转换关系请参见如下表格。

表1-3 端口状态转换表

端口的初始状态 初始状态为DOWN 未连接网线 初始状态为ADMINISTRATIVELY DOWN 初始状态为DOWN 已连接网线 初始状态为UP 初始状态为ADMINISTRATIVELY DOWN ADMINISTRATIVELY DOWN 执行shutdown命令后的端口状态 执行undo shutdown命令后的端口状态 DOWN DOWN DOWN UP UP

1.1.5 display interface

【命令】

display interface [ interface-type | interface-type interface-number ] 【视图】

任意视图 【参数】

interface-type:端口类型。

interface-number:端口编号。

参数的具体说明请参见interface命令中的参数解释。 【描述】

display interface命令用来显示端口的配置信息。 在显示端口信息时:

? ?

如果不指定端口类型和端口号,则显示交换机上所有的端口信息;

如果仅指定端口类型,则显示该类型端口的所有端口信息;如果同时指定端口类型和端口号,则显示指定的端口信息。

【举例】

# 显示以太网端口Ethernet1/0/1的配置信息。

display interface ethernet1/0/1 Ethernet1/0/1 current state : DOWN

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0012-a990-2240 Media type is twisted pair, loopback not set Port hardware type is 100_BASE_TX 100Mbps-speed mode, full-duplex mode

Link speed type is force link, link duplex type is force link Flow-control is enabled

The Maximum Frame Length is 9216 Broadcast MAX-pps: 500 Unicast MAX-ratio: 100% Multicast MAX-ratio: 100% Allow jumbo frame to pass PVID: 1

Mdi type: auto

Port link-type: access Tagged VLAN ID : none Untagged VLAN ID : 1

Last 300 seconds input: 0 packets/sec 0 bytes/sec Last 300 seconds output: 0 packets/sec 0 bytes/sec Input(total): 0 packets, 0 bytes

0 broadcasts, 0 multicasts, 0 pauses Input(normal): - packets, - bytes

- broadcasts, - multicasts, - pauses

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

0 frame, - overruns, 0 aborts, 0 ignored, - parity errors Output(total): 0 packets, 0 bytes

0 broadcasts, 0 multicasts, 0 pauses Output(normal): - packets, - b …… 此处隐藏:4068字,全部文档内容请下载后查看。喜欢就下载吧 ……

08-端口基本配置命令(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/442935.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)