인터페이스 범위 구성
인터페이스 범위를 구성하려면 계층 수준에서 문을 [edit interfaces]
사용합니다interface-range
. 문은 interface-range
정의에 물리적 네트워킹 인터페이스 이름만 허용합니다. Junos OS 다음 인터페이스 유형에 대한 인터페이스 범위를 지원합니다.
-
A t m:
at-fpc/pic/port
-
채널화:
(coc | cstm)n-fpc/pic/port
-
Dpc:
xe-fpc/pic/port
-
E1/E3:
(e1 | e3)-fpc/pic/port
-
이더넷:
(xe | ge | fe)-fpc/pic/port
-
Isdn:
isdn-fpc/pic/port
-
직렬:
se-fpc/pic/port
-
SONET/SDH:
so-fpc/pic/port
-
T1/T3:
(t1 | t3)-fpc/pic/port
인터페이스 범위를 구성하려면 다음을 수행합니다.
-
interface-range
계층 수준에서 문을[edit interfaces]
사용합니다. 인터페이스 범위에 대해 선택한 이름을 포함합니다.[edit] user@device# edit interfaces interface-range range-name
예를 들어, "range1"이라는 인터페이스 범위를 구성하려면 다음과 같이 하십시오.
[edit] user@device# edit interfaces interface-range range1
-
멤버 범위를 지정하려면 계층 수준에서 문을
[edit interfaces interface-range range-name]
사용합니다member-range start-range to end-range
. 예를 들어,[edit interfaces interface-range range1] user@device# set member-range et-1/0/0 to et-4/0/40
- 개별 멤버를 지정하려면 계층 수준에서 문을
[edit interfaces interface-range range-name]
사용합니다member
. 예를 들어,[edit interfaces interface-range range1] user@device# set member et-0/0/0
- 명령문과 함께
member range of interface names
정규 표현식을 사용하여 인터페이스 범위 멤버 목록을 지정할 수 있습니다. 멤버 문에 대한 범위는 다음을 포함할 수 있습니다.-
*
—모두. 0에서 47까지의 순차 인터페이스를 지정합니다.경고:멤버 문의 와일드카드
*
는 특정 인터페이스 유형에서 지원되는 인터페이스 번호를 고려하지 않습니다. 인터페이스 유형*
에 관계없이 인터페이스 그룹까지 0~47에 이르는 인터페이스 번호가 포함됩니다. 따라서 회원 문에 주의하여 사용*
하십시오. -
num
—번호. 그 수에 따라 하나의 특정 인터페이스를 지정합니다. -
[low-high]
—낮은 것에서 높은 수. 순차적 인터페이스의 범위를 지정합니다. -
[num1, num2, num3]
-숫자, 및num2
은num1
num3
(는) 여러 특정 인터페이스를 지정합니다.
정규 표현식 및 와일드카드는 인터페이스 유형 접두사에 대해 지원되지 않습니다. 예를 들어, 접두사와 을(를
et
xe
) 명시적으로 언급해야 합니다.예를 들어,
[edit interfaces interface-range range1] user@device# set member et-0/*/* set member et-0/[1-10]/0 set member et-0/[1,2,3]/3
-
정의는 interface-range
내부에 문과 member-range
문을 모두 member
포함할 수 있습니다. 정의 내 interface-range
의 member
또는 member-range
문 수에 제한이 없습니다. 그러나 정의 내에 하나 이상의 member
또는 member-range
명령문이 interface-range
존재해야 합니다.
interface-range
또는 문만 member
member-range
갖는 정의와 공통 구성 명령문이 유효하지 않습니다. 그러나 정의의 일부로 interface-range
인터페이스 범위에 공통 구성 문을 선택적으로 추가할 수 있습니다. 예를 들어,
[edit] interfaces { + interface-range range1 { + member-range et-1/0/0 to et-4/0/40; + member et-0/0/0; + member et-0/*/*; + member et-0/[1-10]/0; + member et-0/[1,2,3]/3; /*Common configuration is added as part of interface-range definition*/ mtu 500; ether-options { flow-control; speed { 100m; } 802.3ad primary; } } }
이러한 정의된 인터페이스 범위는 노드가 존재하는 장소에서 interface
다른 구성 계층에서 사용할 수 있습니다. 예를 들어,
protocols { dot1x { authenticator { interface range1 { retries 1; } } } }
이전 예에서 노드는 interface
개별 인터페이스 및 인터페이스 범위를 모두 허용할 수 있습니다.
확장된 구성의 인터페이스 범위를 보려면 명령을 사용합니다 (show | display inheritance)
.
지원되는 계층
기본적으로 interface-range
문을 사용할 수 있는 interface
CLI에서 구성할 수 없습니다. 지원되는 위치는 다음과 같습니다. 그러나 이 목록에 표시된 일부 계층은 제품별입니다.
-
ethernet-switching-options analyzer name input [egress | ingress ] interface
-
ethernet-switching-options analyzer name output interface
-
ethernet-switching-options bpdu-block interface
-
ethernet-switching-options interfaces ethernet-switching-options voip interface
-
ethernet-switching-options redundant-trunk-group group g1 interface
-
ethernet-switching-options secure-access-port interface
-
poe interface vlans pro-bng-mc1-bsd1 interface
-
protocols dot1x authentication interface
-
protocols dvmrp interface
-
protocols esis interface
-
protocols gvrp interface
-
protocols igmp interface
-
protocols igmp-snooping vlan name interface
-
protocols igmp-host client num interface
-
protocols isis interface
-
protocols layer2-control bpdu-block interface
-
protocols layer2-control mac-rewrite interface
-
protocols ldp interface
-
protocols link-management peer control-channel
-
protocols link-management peer lmp-control-channel interface
-
protocols link-management te-link name interface
-
protocols lldp interface
-
protocols lldp-med interface
-
protocols mld interface
-
protocols mld-host client num interface
-
protocols mpls interface
-
protocols mstp interface
-
protocols mstp msti id interface
-
protocols mstp msti vlan id interface
-
protocols oam ethernet link-fault-management interface
-
protocols oam ethernet lmi interface
-
protocols ospf area id interface
-
protocols pim interface
-
protocols rip group name neighbour
-
protocols ripng group name neighbour
-
protocols router-advertisement interface
-
protocols router-discovery interface
-
protocols rstp interface
-
protocols rsvp interface
-
protocols sflow interfaces
-
protocols snmp interface
-
protocols stp interface
-
protocols vstp interface
-
protocols vstp vlan name interface