예: 어그리게이션 이더넷을 통한 정적 기본 VLAN Demux 인터페이스에서 동적 PPPoE 가입자 인터페이스 구성
이 예는 어그리게이션 이더넷 번들에 동적 PPPoE 가입자 인터페이스를 구성하여 가입자 링크 중복을 제공하는 방법을 보여줍니다.
요구 사항
어그리게이션 이더넷을 통한 VLAN demux 인터페이스를 통한 PPPoE에는 다음과 같은 하드웨어와 소프트웨어가 필요합니다.
MX 시리즈 5G 유니버설 라우팅 플랫폼
MPC
Junos OS 릴리스 11.2 이상
이 기능을 구성하기 전에 디바이스 초기화를 제외한 특별한 구성은 필요하지 않습니다.
개요
어그리게이션 이더넷 번들은 라우터와 이더넷 링크로 연결된 네트워킹 디바이스 간의 링크 중복을 지원합니다. 이 예에서는 중간 정적 VLAN demux 인터페이스를 사용하여 어그리게이션 이더넷 인터페이스 ae0
를 통해 동적 PPPoE 가입자에 대한 링크 중복을 구성하는 방법을 설명합니다 demux0.100
. 샘플 작업에는 2개의 멤버 어그리게이션 이더넷 번들을 구성하고, PPPoE 가입자 인터페이스의 기초가 되는 정적 VLAN demux 인터페이스를 구성하고, 동적 PPPoE 가입자 인터페이스를 설정하는 동적 프로필을 구성하는 것이 포함됩니다.
동적 PPPoE 프로필(pppoe-profile
)은 PPPoE 가입자 인터페이스를 생성합니다. 또한 라우터를 PPPoE 서버로 구성하고 인터페이스에 명시적 IP 주소를 할당하지 않고 로컬 주소가 지정된 주소에서 파생될 수 있도록 합니다. 동적 프로필은 pppoe-profile
PPPoE 제품군(demux0.100
) 속성으로 구성된 정적, 중간 VLAN demux 인터페이스(family pppoe
)에 할당됩니다. 이 동적 프로필에는 다음과 같은 사전 정의된 변수가 포함됩니다.
$junos-interface-unit
- 동적 PPPoE 논리적 인터페이스의 논리적 단위 번호를 나타냅니다. 이 사전 정의된 변수는 가입자가 로그인할 때 라우터가 제공하는 장치 번호로 동적으로 대체됩니다.$junos-underlying-interface
- 기본 이더넷 인터페이스의 이름을 나타냅니다. 이 사전 정의된 변수는 가입자가 로그인할 때 라우터가 제공하는 인터페이스 이름으로 동적으로 대체됩니다.
이 예는 가능한 모든 구성 선택을 보여주지 않습니다.
구성
절차
CLI 빠른 구성
어그리게이션 이더넷을 통한 정적 VLAN demux 인터페이스를 통해 동적 PPPoE 가입자의 링크 중복을 빠르게 구성하려면 다음 명령을 복사하여 텍스트 파일에 붙여 넣은 다음 모든 라인브립을 제거한 다음 명령을 복사하여 CLI에 붙여 넣습니다.
[edit] set chassis aggregated-devices ethernet device-count 1 set interfaces ge-5/0/3 gigether-options 802.3ad ae0 set interfaces ge-5/0/3 gigether-options 802.3ad primary set interfaces ge-5/1/2 gigether-options 802.3ad ae0 set interfaces ge-5/1/2 gigether-options 802.3ad backup set interfaces ae0 flexible-vlan-tagging set interfaces ae0 aggregated-ether-options link-protection set interfaces demux0 unit 100 vlan-id 100 set interfaces demux0 unit 100 demux-options underlying-interface ae0 set interfaces demux0 unit 100 family pppoe access-concentrator pppoe-server-1 set interfaces demux0 unit 100 family pppoe duplicate-protection set interfaces demux0 unit 100 family pppoe dynamic-profile pppoe-profile edit dynamic-profiles pppoe-profile edit interfaces pp0 unit $junos-interface-unit set pppoe-options underlying-interface $junos-underlying-interface set pppoe-options server set family inet unnumbered-address lo0.0 top
단계별 절차
다음 예제에서는 구성 계층에서 다양한 수준의 탐색이 필요합니다. 이를 수행하는 방법에 대한 지침은 구성 모드에서 CLI 편집기 사용을 참조하십시오.
어그리게이션 이더넷을 통한 정적 VLAN demux 인터페이스를 통해 동적 PPPoE 가입자에 대한 링크 중복을 구성하려면 다음을 수행합니다.
라우터에서 어그리게이션 이더넷 디바이스 수를 정의합니다.
[edit chassis] user@host# set aggregated-devices ethernet device-count 1
2개의 링크 어그리게이션 이더넷 논리적 인터페이스를 구성하여 정적 VLAN demux 가입자 인터페이스의 기본 인터페이스 역할을 합니다. 이 예에서 LAG 번들은 일대일 액티브/백업 링크 이중화를 위해 구성됩니다. MPC 수준에서 링크 중복을 지원하기 위해 LAG 번들은 두 개의 서로 다른 MPC의 포트에 연결됩니다.
[edit interfaces] user@host# set ge-5/0/3 gigether-options 802.3ad ae0 user@host# set ge-5/0/3 gigether-options 802.3ad primary user@host# set ge-5/1/2 gigether-options 802.3ad ae0 user@host# set ge-5/1/2 gigether-options 802.3ad backup
어그리게이션 이더넷 논리적 인터페이스에서 링크 보호를 활성화하고 단일 및 이중(스택) VLAN 태그에 대한 지원을 구성합니다.
[edit interfaces] user@host# set ae0 aggregated-ether-options link-protection user@host# set ae0 flexible-vlan-tagging
어그리게이션 이더넷 논리적 인터페이스를 통해 VLAN demux 인터페이스를 구성합니다.
[edit interfaces] user@host# set demux0 unit 100 vlan-id 100 user@host# set demux0 unit 100 demux-options underlying-interface ae0
동적 프로필을 포함하여 VLAN demux 인터페이스에서 PPPoE 제품군 속성을 구성합니다.
[edit interfaces] user@host# set demux0 unit 100 family pppoe access-concentrator pppoe-server-1 user@host# set demux0 unit 100 family pppoe duplicate-protection user@host# set demux0 unit 100 family pppoe dynamic-profile pppoe-profile
PPPoE 가입자 인터페이스를 생성하는 동적 프로필을 구성합니다.
[edit dynamic-profiles pppoe-profile] user@host# edit interfaces pp0 unit $junos-interface-unit [edit dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set pppoe-options underlying-interface $junos-underlying-interface user@host# set pppoe-options server user@host# set family inet unnumbered-address lo0.0
결과
구성 모드에서 명령을 입력하여 어그리게이션 디바이스 구성을 확인합니다 show chassis
. 명령을 입력하여 인터페이스 구성을 확인합니다 show interfaces
. 명령을 입력하여 동적 프로필 구성을 확인합니다 show dynamic-profiles
. 출력에 의도한 구성이 표시되지 않으면 이 예의 구성 지침을 반복하여 수정합니다.
[edit] user@host# show chassis aggregated-devices { ethernet { device-count 1; } }
[edit] user@host# show interfaces ge-5/0/3 { gigether-options { 802.3ad { ae0; primary; } } } ge-5/1/2 { gigether-options { 802.3ad { ae0; backup; } } } ae0 { flexible-vlan-tagging; aggregated-ether-options { link-protection; } } demux0 { unit 100 { vlan-id 100; demux-options { underlying-interface ae0; } family pppoe { access-concentrator pppoe-server-1 duplicate-protection; dynamic-profile pppoe-profile; } } }
[edit] user@host# show dynamic-profiles pppoe-profile { interfaces { pp0 { unit $junos-interface-unit { pppoe-options { underlying-interface $junos-underlying-interface; server; } family inet { unnumbered-address lo0.0; } } } } }
디바이스 구성이 완료되면 구성 모드에서 을(를) 입력합니다 commit
.
확인
구성이 제대로 작동하는지 확인하려면 다음 작업을 수행하십시오.
어그리게이션 이더넷 인터페이스 구성 확인
목적
인터페이스 값이 구성과 일치하고 링크가 작동 중이며 트래픽이 흐르는지 확인합니다.
작업
운영 모드에서 명령을 입력합니다 show interfaces redundancy
.
user@host> show interfaces redundancy Interface State Last change Primary Secondary Current status ae0 On primary ge-5/0/3 ge-5/1/2 both up
운영 모드에서 명령을 입력합니다 show interfaces ae0
.
user@host> show interfaces ae0 Physical interface: ae0, Enabled, Physical link is Up Interface index: 128, SNMP ifIndex: 606 Link-level type: Ethernet, MTU: 1522, Speed: 1Gbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0 Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Current address: 00:00:5e:00:53:d0, Hardware address: 00:00:5e:00:53:d0 Last flapped : 2011-03-11 13:24:18 PST (2d 03:34 ago) Input rate : 1984 bps (2 pps) Output rate : 0 bps (0 pps) Logical interface ae0.32767 (Index 69) (SNMP ifIndex 709) Flags: SNMP-Traps 0x4004000 VLAN-Tag [ 0x0000.0 ] Encapsulation: ENET2 Statistics Packets pps Bytes bps Bundle: Input : 371259 2 46036116 1984 Output: 0 0 0 0 Protocol multiservice, MTU: Unlimited Flags: Is-Primary
의미
출력은 show interfaces redundancy
중복 링크 구성을 보여주며 두 링크 인터페이스 모두 작동 중임을 보여줍니다. 출력은 show interfaces ae0
어그리게이션 이더넷 인터페이스가 작동 중이며 트래픽이 논리적 인터페이스에서 수신되고 있음을 보여줍니다.
demux0 인터페이스 구성 확인
목적
VLAN demux 인터페이스가 구성된 PPPoE 제품군 속성과 어그리게이션 이더넷 번들에 멤버 링크를 표시하는지 확인합니다.
작업
운영 모드에서 명령을 입력합니다 show interfaces demux0
.
user@host> show interfaces demux0.100 Logical interface demux0.100 (Index 76) (SNMP ifIndex 61160) Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.100 ] Encapsulation: ENET2 Demux: Underlying interface: ae0 (Index 199) Link: ge-5/0/3 ge-5/1/2 Input packets : 2 Output packets: 18575 Protocol pppoe Dynamic Profile: pppoe-profile, Service Name Table: None, Max Sessions: 16000, Duplicate Protection: On, AC Name: pppoe-server-1
또는 을(를) 입력 show pppoe underlying-interfaces detail
하여 구성된 모든 기본 인터페이스에 대한 상태 및 PPPoE 제품군 구성을 표시할 수 있습니다. 출력은 또한 VLAN당 PPPoE 협상에 대한 정보도 제공합니다.
의미
출력에는 기본 인터페이스의 이름, 어그리게이션 번들의 멤버 링크 및 PPPoE 제품군 구성이 표시됩니다. 출력은 트래픽이 논리적 인터페이스에 존재할 때 패킷 수를 보여줍니다.