华为路由器交换机配置命令、管理、Layer2、Layer3、IGP(2)

2019-09-01 10:46

undo ntp-service [ ipv6 ] server disable

//使能设备作为NTP服务器的功能。为了防止外部设备同步设备的时钟,配置NTP的相关命令后,设备自动去使能NTP服务器功能

缺省情况下,NTP服务器功能处于去使能状态

ntp-service unicast-server ip-address [ version number | authentication-keyid key-id | source-interface interface-type interface-number | preference | vpn-instance vpn-instance-name | maxpoll max-number | minpoll min-number | burst | iburst | preempt | port port-number ] //配置指定IPv4地址的NTP服务器(单播模式) ntp-service sync-interval interval

//配置客户端更新时间间隔,默认600s

ntp-service source-interface interface-type interface-number [ vpn-instance vpn-instance-name ]

display ntp-service status

//查看NTP的状态信息

配置PoE:

interface TYPE NUMBER poe enable

//或使能lldp enable自动配电 poe max-power PORT-MAX-POWER

poe max-power MAX-POWER slot SLOT-ID

//配置单板最大供电功率

display poe-power

display poe information display lldp local display lldp neighbor display poe power-state

接口配置:

接口基础配置:

set flow-stat interval interval-time //配置接口流量统计时间间隔

display counters [ inbound | outbound ] [ interface x/x ] //查看接口的流量统计计数

reset counters interface xxx

//清除指定接口的统计信息 reset counters if-mib interface xxx //清除网管的接口流量统计信息

clear configuration interface X/X /清除接口配置

combo-port { auto | copper | fiber }

//配置Combo接口工作模式

undo portswitch

//配置接口切换到三层模式

undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

//配置接口批量切换到三层模式

interface xxx

jumboframe enable [ value ]

//配置接口允许通过的最大帧长,最大9216字节。为指定value则为9216字节

mdi { across | auto | normal }

//配置以太网接口MDI类型。默认为auto,即自动识别所连接网线的类型

loopback internal

//配置以太网接口的内环回检测功能。

配置Access接口:

interface GigabitEthernet0/0/1 port link-type access port default vlan 900 stp bpdu-filter enable stp edged-port enable

配置Trunk接口:

interface GigabitEthernet1/8/1/22 port link-type trunk

port trunk allow-pass vlan 888 999 to 1000

配置以太网子接口:

interface type number.sub-number

ip address ip-address { mask | mask-length } [ sub ]

//配置以太网子接口的IP地址。

dot1q termination vid low-pe-vid [ to high-pe-vid ]

//配置子接口对一层Tag报文的终结功能

qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ] //配置子接口对两层Tag报文的终结功能 arp broadcast enable

//使能子接口的ARP广播功能

display interface type x/x.x

display dot1q information termination interface x/x.x

//查看配置了dotlq终结的所有接口的名称以及终结子接口对用户报文终结的规则数量 display qinq information termination interface x/x.x

//查看配置了QinQ终结的所有接口的名称以及终结子接口对用户报文终结的规则数量

配置Eth-trunk子接口:

interface eth-trunk trunk-id quit

interface eth-trunk trunk-id.subnumber

ip address ip-address { mask | mask-length } [ sub ] dot1q termination vid low-pe-vid [ to high-pe-vid ]

qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ] arp broadcast enable

display interface eth-trunk xxx

display dot1q information termination interface xxx display qinq information termination interface xxx

配置loopback接口:

interface loopback number

ip binding vpn-instance INSTANCE ip address ip-address mask ip verify source-address

display interface loopback number

配置NULL接口:

interface null 0

//NULL接口一直处于UP状态,不能转发数据包,也不能配置IP地址或封装其他协议

display interface null 0

Layer2配置:

配置端口安全:

mac-address static mac-address interface-type interface-number vlan vlan-id

//添加静态MAC表项

interface type number port-security enable

//使能端口安全功能

port-security mac-address mac-address vlan vlan-id

//手工配置安全静态MAC地址表项 port-security mac-address sticky

//使能接口Sticky MAC功能

port-security max-mac-num max-number //配置端口安全动态MAC学习限制数量

port-security protect-action { protect | restrict | shutdown } //配置端口安全保护动作。

port-security aging-time time [ type { absolute | inactivity } ]

//配置接口学习到的安全动态MAC地址的老化时间,默认学习的安全动态MAC地址不老化

display mac-address security vlan vlan-id interface verbose display mac-address sticky vlan vlan-id interface verbose

display mac-address

display mac-address flapping record display mac-address blackhole display mac-address summary

配置Eth-Trunk:

eth-trunk load-balance hash-mode { advanced | normal } slot slot-id

//配置X1E单板的hash模式,以便与其它单板组成跨板Eth-Trunk(X1E与比其规格高

单板为advanced模式)

interface eth-trunk trunk-id //取值范围是0~127 mode lacp

//配置Eth-trunk的工作模式,默认为手工负载分担模式

trunkport type { ifnumber1 [ to ifnumber2 ] } &<1-8> [ mode { active | passive } ]

//增加成员接口

或:进入相应成员接口添加

interface interface-type interface-number eth-trunk trunk-id [ mode { active | passive } ]

//将当前接口加入Eth-Trunk,每个Eth-Trunk接口下最多可以包含8个成员接口

load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dst-mac }

//配置Eth-Trunk负载分担方式,默认为src-dst-ip

local-preference enable

//使能Eth-Trunk接口流量本地优先转发功能(集群),默认已使能

lacp priority priority

//配置当前设备的系统LACP优先级。默认32768

interface interface-type interface-number lacp priority priority

//配置当前接口的LACP优先级。默认32768

增强型负载分担方式: system-view

load-balance-profile profile-name

//创建负载分担模板,并进入模板视图。设备全局公用一个负载分担模板

l2 field [ dmac | l2-protocol | smac | sport | vlan ]

//配置指定负载分担模板中二层报文的负载分担模式。缺省为smac、dmac ipv4 field [ dip | l4-dport | l4-sport | protocol | sip | sport | vlan ]

//配置指定负载分担模板中IPV4报文负载分担模式。缺省sip、dip。 ipv6 field [ dip | l4-dport | l4-sport | protocol | sip | sport | vlan ]

//配置指定负载分担模板中IPV6报文负载分担模式。缺省为sip、dip mpls field [ 2nd-label | dip | sip | sport | top-label | vlan ]

//配置指定负载分担模板中的MPLS报文负载分担模式。缺省top-label、2nd-label quit

interface eth-trunk trunk-id

load-balance enhanced profile profile-name

//应用配置的负载分担模板 以上针对已知单播:

unknown-unicast load-balance { dmac | smac | smacxordmac | enhanced }

//对于非已知单播,系统视图下执行此命令来配置其负载分担方式


华为路由器交换机配置命令、管理、Layer2、Layer3、IGP(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2018年中国水处理行业深度调研前景报告目录

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: