配置以太网接口
了解如何配置特定于快速以太网接口、千兆以太网接口和聚合以太网接口的接口的物理属性。
配置以太网接口属性
要根据需要配置以太网接口属性,请选择相应的命令。
在配置模式下,转到
interfaces
层级以设置接口端口类型,例如 aex、e3、fe、ge、t3。[edit] user@host# set interfaces interface-name
在
[edit interfaces fe-fpc/pic/port]
层次结构级别配置快速以太网接口。[edit interfaces fe-fpc/pic/port] user@host# set fastether-options
在
[edit interfaces ge-fpc/pic/port]
层次结构级别配置千兆以太网接口。[edit interfaces ge-fpc/pic/port] user@host# set gigether-options
在
[edit interfaces aex]
层次结构级别配置聚合以太网接口[edit interfaces aex] user@host# set aggregated-ether-options
配置 10 千兆以太网 DWDM 接口,并在
[edit interfaces ge-fpc/pic/port]
层次结构级别包含
语句。optics-options
[edit interfaces ge-fpc/pic/port] user@host# set optics-options
在 10 千兆以太网接口上配置 LAN 或 WAN,并在
[edit interfaces xe-fpc/pic/port]
层次结构级别包括语framing
句。[edit interfaces ge-fpc/pic/port] user@host# set framing
配置以太网接口的 OAM 802.3ah 支持,并在
[edit protocols]
层次结构级别包括oam
语句。[edit protocols] user@host# set oam
在
[edit interfaces interface-name unit logical-unit-number]
层次结构级别配置特定于千兆以太网 IQ 的逻辑接口,或者[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number]
[edit interfaces interface-name unit logical-unit-number] user@host# set input-vlan-map user@host# set output-vlan-map user@host# set layer2-policer user@host# set vlan-tags inner tpid.vlan-id outer tpid.vlan-id
在
[edit interfaces interface-name]
层次结构级别配置速度。[edit interfaces interface-name] user@host# set speed (10m | 100m | 1g | auto | auto-10m-100m)
在快速以太网 8 端口、12 端口或 48 端口 PIC 接口上配置入口速率限制,并在
[edit interfaces interface-name fastether-options]
层次结构级别包含ingress-rate-limit
语句。[edit interfaces interface-name fastether-options] user@host# set ingress-rate-limit rate
将以太网接口配置为在全双工或半双工模式下运行,并在
[edit interfaces interface-name]
层次结构级别包括link-mode
语句。[edit interfaces interface-name] user@host# set link-mode (full-duplex | half-duplex)rate
在以太网接口上配置组播统计信息收集,并在
[edit interfaces interface-name ge-fpc/pic/port]
层次结构级别包含multicast-statistics
语句。[edit interfaces interface-name ge-fpc/pic/port] user@host# set multicast-statisticsrate
在静态以太网接口上配置 MAC 地址验证,并在
[edit interfaces interface-name unit logical-unit-number family inet address interface-address]
层次结构级别包括语arp ip-address mac mac-address
句。[edit interfaces interface-name] user@host# set unit logical-unit-number family inet user@host# set mac-validate option address address user@host# set arp ip-address mac mac-address