计算机网络-H3C网络端口基础信息与配置

一、网络端口基础信息与配置

这个主要是记录一下关于华三的交换机、防火墙和路由器的物理接口的一些基础知识与配置。

1.1 命名规范

H3C的端口命名主要是根据端口的速率来进行区分的。基本都是千兆速率往上的,百兆的端口比较多用于二层傻瓜交换机或者不能CLI管理的。

端口速率 命名
百兆 F
1G GE
10G XGE
40G FGE

1.3 端口号命名

当设备工作在独立运行模式时,以太网接口采用3维编号方式:interface type A/B/C。

  • A:单板在设备上的槽位号。
  • B:单板上的子卡号。如果单板上没有子卡,取值固定为0。
  • C:端口编号。

示例:GE 1/0/1 表示千兆板第一个槽位第一个子卡的第一个端口,其它的如XGE 1/0/1,FGE1/0/1等等。

1.4 端口速率配置

端口速率一般有10/100/1000/10000/40000 使用命令:speed 10/100/1000/auto进行配置,默认为auto自动,不过极端情况下可能需要手动配置。

1.5 端口双工模式配置

端口的双工模式:全双工/半双工 使用命令:duplex full/half/auto 配置,默认auto。

二、端口模式

端口可以进行二层/三层配置。

  • 二层模式(bridge),可以配置access/trunk/hybrid二层接口模式
  • 三层模式(route),可以直接配置三层ip接口地址。

使用命令:port link-mode route/bridge 进行切换。

三、常用配置命令

# 进入接口使用interface 命令
如:interface GE1/0/1

# 进行二/三层接口的转换
port link-mode route/bridge

# 二层接口下才能使用,配置二层的接口模式
port link-type access/trunk/hybrid

# 配置接口地址,三层接口使用
ip address 192.168.1.1 24

# 关闭/启用端口
shutdown/undo shutdown

# 配置接口描述信息,text是文本信息
description text

# 配置端口速率
speed 10/100/1000/auto

# 配置端口双工模式
duplex full/half/auto

# 恢复端口默认配置(清空配置)
default

四、批量配置端口

使用range关键字进行批量端口配置。

# 使用range to批量配置端口。
interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/23

示例: 查询端口信息: display interface brief

[H3C]display interface brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface            Link Protocol Primary IP      Description
InLoop0              UP   UP(s)    --
MGE0/0/0             DOWN DOWN     --
NULL0                UP   UP(s)    --
REG0                 UP   --       --

Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface            Link Speed   Duplex Type PVID Description
FGE1/0/53            DOWN 40G     A      A    1
FGE1/0/54            DOWN 40G     A      A    1
GE1/0/1              DOWN auto    A      A    1
GE1/0/2              DOWN auto    A      A    1
GE1/0/3              DOWN auto    A      A    1
GE1/0/4              DOWN auto    A      A    1
GE1/0/5              DOWN auto    A      A    1
GE1/0/6              DOWN auto    A      A    1
GE1/0/7              DOWN auto    A      A    1
GE1/0/8              DOWN auto    A      A    1
GE1/0/9              DOWN auto    A      A    1
GE1/0/10             DOWN auto    A      A    1
GE1/0/11             DOWN auto    A      A    1
GE1/0/12             DOWN auto    A      A    1
GE1/0/13             DOWN auto    A      A    1
GE1/0/14             DOWN auto    A      A    1
GE1/0/15             DOWN auto    A      A    1
GE1/0/16             DOWN auto    A      A    1
GE1/0/17             DOWN auto    A      A    1
GE1/0/18             DOWN auto    A      A    1
GE1/0/19             DOWN auto    A      A    1
GE1/0/20             DOWN auto    A      A    1
GE1/0/21             DOWN auto    A      A    1
GE1/0/22             DOWN auto    A      A    1
GE1/0/23             DOWN auto    A      A    1
GE1/0/24             DOWN auto    A      A    1
GE1/0/25             DOWN auto    A      A    1
GE1/0/26             DOWN auto    A      A    1
GE1/0/27             DOWN auto    A      A    1
GE1/0/28             DOWN auto    A      A    1
GE1/0/29             DOWN auto    A      A    1
GE1/0/30             DOWN auto    A      A    1
GE1/0/31             DOWN auto    A      A    1
GE1/0/32             DOWN auto    A      A    1
GE1/0/33             DOWN auto    A      A    1
GE1/0/34             DOWN auto    A      A    1
GE1/0/35             DOWN auto    A      A    1
GE1/0/36             DOWN auto    A      A    1
GE1/0/37             DOWN auto    A      A    1
GE1/0/38             DOWN auto    A      A    1
GE1/0/39             DOWN auto    A      A    1
GE1/0/40             DOWN auto    A      A    1
GE1/0/41             DOWN auto    A      A    1
GE1/0/42             DOWN auto    A      A    1
GE1/0/43             DOWN auto    A      A    1
GE1/0/44             DOWN auto    A      A    1
GE1/0/45             DOWN auto    A      A    1
GE1/0/46             DOWN auto    A      A    1
GE1/0/47             DOWN auto    A      A    1
GE1/0/48             DOWN auto    A      A    1
XGE1/0/49            DOWN 10G     F      A    1
XGE1/0/50            DOWN 10G     F      A    1
XGE1/0/51            DOWN 10G     F      A    1
XGE1/0/52            DOWN 10G     F      A    1

本文由 mdnice 多平台发布

你可能感兴趣的:(程序人生)