예를 들면 다음과 같습니다. IRB 인터페이스의 MAC 주소 구성
이 예는 MPC(Modular Port Concentrator) 카드가 있는 디바이스에 대한 통합 라우팅 및 브리징(IRB) 인터페이스의 미디어 액세스 제어(MAC) 주소를 구성하는 방법을 보여줍니다. IRB 인터페이스는 브리지 도메인 또는 가상 프라이빗 LAN 서비스(VPLS) 라우팅에 사용되는 레이어 3 라우팅 인터페이스입니다.
요구 사항
이 예에서는 다음과 같은 하드웨어 및 소프트웨어 구성 요소가 필요합니다.
-
MPC 카드가 있는 MX 시리즈 라우터.
-
Junos OS 모든 디바이스에서 릴리스 13.2 이상 실행 중입니다.
개요
릴리스 13.2를 Junos OS 이상에서는 MAC 주소를 IRB 논리 인터페이스에 할당하는 것을 지원합니다. IRB 논리적 인터페이스는 동일한 브리지 도메인 내에서 동시 레이어 2 브리징 및 레이어 3 라우팅을 지원합니다. 브리지 도메인의 인터페이스에 도착하는 패킷은 패킷의 대상 MAC 주소 따라 스위칭되거나 라우팅됩니다. 수동으로 구성된 라우터의 레이어 2 가상 MAC 주소 패킷은 레이어 2 인터페이스로 전환됩니다.
IRB 논리적 인터페이스의 MAC 주소 구성하면 동일한 스위치에서 두 VLAN 사이에 투명 방화벽을 사용할 수 있습니다. 두 VLAN이 동일한 서브넷에 있고 한 VLAN의 트래픽이 방화벽을 통해 다른 VLAN의 호스트로 이동해야 하는 경우, VLAN 태그가 다른 VLAN의 호스트와 통신하도록 변경됩니다.
이 기능이 도입되기 전에 IRB 논리적 인터페이스의 MAC 주소 두 VLAN 모두에서 동일하다면 방화벽은 트래픽을 떨어뜨렸습니다. 이 새로운 기능을 사용하면 서로 다른 VLAN에 대해 서로 다른 MAC 주소를 구성할 수 있어 동일한 스위치에서 두 VLAN 간의 트래픽 교환을 용이하게 할 수 있습니다.
VPLS 멀티호밍의 경우, 보조 PE 라우터에 기본 프로바이더 에지(PE) 라우터의 페일오버가 있는 경우 IRB의 MAC 주소 변경됩니다. 고객 에지(CE) 라우터에 연결된 호스트는 IRB의 IP 및 MAC 주소 대한 주소 확인 프로토콜(ARP)을 변경해야 합니다. 이 기능을 사용하면 기본 및 보조 PE 라우터 모두에서 IRB 인터페이스에 대해 동일한 MAC 주소 구성할 수 있으며 페일오버의 경우 CE 라우터에서 IRB 논리적 인터페이스의 ARP 바인딩을 변경할 필요가 없습니다.
그림 1 은 샘플 토폴로지 를 보여줍니다.
토폴로지

이 예에서는 IRB 논리적 인터페이스의 MAC 주소 구성합니다.
구성
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브러브를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 변경한 다음 계층 수준에서 명령을 CLI [edit]
로 복사해 붙여 넣습니다.
라우터 R0
set interfaces ge-1/3/8 vlan-tagging set interfaces ge-1/3/8 encapsulation flexible-ethernet-services set interfaces ge-1/3/8 unit 10 encapsulation vlan-bridge set interfaces ge-1/3/8 unit 10 vlan-id 10 set interfaces irb unit 10 family inet address 10.1.10.1/24 set interfaces irb unit 10 family mpls set interfaces irb unit 10 mac 00:00:00:00:00:01 set interfaces lo0 unit 10 family inet address 192.168.255.10/32 set protocols rsvp interface irb.10 set protocols mpls label-switched-path R0-1-R2 to 192.168.255.2 set protocols mpls label-switched-path R0-1-R2 install 192.168.255.2/32 active set protocols mpls label-switched-path R0-1-R2 no-cspf set protocols mpls interface irb.10 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 192.168.255.10 set protocols bgp group ibgp neighbor 192.168.255.2 set protocols ospf area 0.0.0.0 interface irb.10 set protocols ospf area 0.0.0.0 interface lo0.10 passive set protocols ldp interface irb.10 set protocols ldp interface lo0.10 set routing-options autonomous-system 400 set bridge-domains lsbd1 vlan-id 10 set bridge-domains lsbd1 interface ge-1/3/8.10 set bridge-domains lsbd1 routing-interface irb.10
라우터 R1
set interfaces ge-1/3/8 vlan-tagging set interfaces ge-1/3/8 encapsulation flexible-ethernet-services set interfaces ge-1/3/8 unit 10 encapsulation vlan-bridge set interfaces ge-1/3/8 unit 10 vlan-id 10 set interfaces ge-1/2/8 vlan-tagging set interfaces ge-1/2/8 encapsulation flexible-ethernet-services set interfaces ge-1/2/8 unit 40 encapsulation vlan-bridge set interfaces ge-1/2/8 unit 40 vlan-id 40 set interfaces irb unit 20 family inet address 10.1.10.2/24 set interfaces irb unit 20 family mpls set interfaces irb unit 20 mac 00:00:00:00:00:02 set interfaces irb unit 30 family inet address 10.1.12.1/24 set interfaces irb unit 30 family mpls set interfaces irb unit 30 mac 00:00:00:00:00:03 set interfaces lo0 unit 20 family inet address 192.168.255.1/32 set protocols rsvp interface irb.20 set protocols rsvp interface irb.30 set protocols mpls interface irb.30 set protocols mpls interface irb.20 set protocols ospf area 0.0.0.0 interface irb.20 set protocols ospf area 0.0.0.0 interface irb.30 set protocols ospf area 0.0.0.0 interface lo0.20 passive set protocols ldp interface irb.20 set protocols ldp interface irb.30 set protocols ldp interface lo0.20 set routing-options autonomous-system 400 set bridge-domains lsbd2 vlan-id 10 set bridge-domains lsbd2 interface ge-1/3/8.10 set bridge-domains lsbd2 routing-interface irb.20 set bridge-domains lsbd3 vlan-id 40 set bridge-domains lsbd3 interface ge-1/2/8.40 set bridge-domains lsbd3 routing-interface irb.30
라우터 R2
set interfaces ge-1/2/8 vlan-tagging set interfaces ge-1/2/8 encapsulation flexible-ethernet-services set interfaces ge-1/2/8 unit 40 encapsulation vlan-bridge set interfaces ge-1/2/8 unit 40 vlan-id 40 set interfaces irb unit 40 family inet address 10.1.12.2/24 set interfaces irb unit 40 family mpls set interfaces irb unit 40 mac 00:00:00:00:00:04 set interfaces lo0 unit 30 family inet address 192.168.255.2/32 set protocols rsvp interface irb.40 set protocols mpls label-switched-path R2-1-R0 to 192.168.255.10 set protocols mpls label-switched-path R2-1-R0 no-cspf set protocols mpls interface irb.40 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 192.168.255.2 set protocols bgp group ibgp neighbor 192.168.255.10 set protocols ospf area 0.0.0.0 interface irb.40 set protocols ospf area 0.0.0.0 interface lo0.30 passive set protocols ldp interface irb.40 set protocols ldp interface lo0.30 set routing-options autonomous-system 400 set bridge-domains lsbd4 vlan-id 40 set bridge-domains lsbd4 interface ge-1/2/8.40 set bridge-domains lsbd4 routing-interface irb.40
IRB 인터페이스의 MAC 주소 구성
단계별 절차
다음 예는 구성 계층에서 다양한 수준의 탐색이 필요합니다. CLI 탐색에 대한 정보는 CLI 사용자 가이드의 구성 모드에서 CLI 편집기 사용을 참조하십시오.
주니퍼 네트웍스 라우터 R1 및 R2에 대해 이 절차를 반복하여 각 라우터에 대한 적절한 인터페이스 이름, 주소 및 기타 매개 변수를 수정합니다.
라우터 R0에서 IRB 인터페이스의 MAC 주소 구성하려면,
-
물리적 인터페이스를 구성합니다.
[edit interfaces ge-1/3/8]
user@R0# set vlan-tagging user@R0# set encapsulation flexible-ethernet-services user@R0# set unit 10 encapsulation vlan-bridge user@R0# set unit 10 vlan-id 10 -
IRB 논리적 인터페이스를 구성합니다.
[edit interfaces irb]
user@R0# set unit 10 family inet address 10.1.10.1/24 user@R0# set unit 10 family mpls user@R0# set unit 10 mac 00:00:00:00:00:01 [edit interfaces] user@R0# set lo0 unit 10 family inet address 192.168.255.10/32 -
RSVP 프로토콜을 구성합니다.
[edit protocols rsvp]
user@R0# set interface irb.10 -
MPLS 프로토콜을 구성합니다.
[edit protocols mpls]
user@R0# set label-switched-path R0-1-R2 to 192.168.255.2 user@R0# set label-switched-path R0-1-R2 install 192.168.255.2/32 active user@R0# set label-switched-path R0-1-R2 no-cspf user@R0# set interface irb.10 user@R0# set interface irb.10 -
BGP 프로토콜을 구성합니다.
[edit protocols BGP]
user@R0# set group ibgp type internal user@R0# set group ibgp local-address 192.168.255.10 user@R0# set group ibgp neighbor 192.168.255.2 -
OSPF 프로토콜을 구성합니다.
[edit protocols ospf]
user@R0# set area 0.0.0.0 interface irb.10 user@R0# set area 0.0.0.0 interface lo0.10 passive -
LDP 프로토콜을 구성합니다.
[edit protocols ldp]
user@R0# set interface irb.10 user@R0# set interface lo0.10 -
AS(Autonomous System) 번호를 구성합니다.
[edit routing-options]
user@R0# set autonomous-system 400 -
브리지 도메인을 구성합니다.
[edit]
user@R0# set bridge-domains lsbd1 vlan-id 10 user@R0# set bridge-domains lsbd1 interface ge-1/3/8.10 user@R0# set bridge-domains lsbd1 routing-interface irb.10
결과
구성 모드에서, 및 show bridge-domains, show protocols 명령을 입력show interfaces하고 구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정합니다.
user@R0# show interfaces ge-1/3/8 { unit 10 { encapsulation vlan-bridge; vlan-id 10; } } irb { unit 10 { family inet { mtu 1450; address 10.1.10.1/24; } family mpls; mac 00:00:00:00:00:01; } } lo0 { unit 10 { family inet { address 192.168.255.10/32; } } } user@R0# show protocols rsvp { interface irb.10; } mpls { label-switched-path R0-1-R2 { to 192.168.255.2; install 192.168.255.2/32 active; no-cspf; } interface irb.10; } bgp { group ibgp { type internal; local-address 192.168.255.10; neighbor 192.168.255.2; } } ospf { area 0.0.0.0 { interface irb.10; interface lo0.10 { passive; } } } ldp { interface irb.10; interface lo0.10; } user@R0# show bridge-domains lsbd1 { vlan-id 10; interface ge-1/3/8.10; routing-interface irb.10; }
디바이스 구성이 완료되면 구성을 커밋합니다.
user@host# commit
확인
구성이 제대로 작동하는지 확인합니다.
IRB 인터페이스의 MAC 주소 확인
목적
지정된 MAC 주소 IRB 인터페이스에 할당되었는지 확인합니다.
실행
운영 모드에서 디바이스에서 show interfaces irb
명령을 실행합니다.
user@host # show interfaces irb
Physical interface: irb, Enabled, Physical link is Up Interface index: 132, SNMP ifIndex: 505 Type: Ethernet, Link-level type: Ethernet, MTU: 1514 Device flags : Present Running Interface flags: SNMP-Traps Link type : Full-Duplex Link flags : None Current address: 80:71:1f:c2:58:f0, Hardware address: 80:71:1f:c2:58:f0 Last flapped : Never Input packets : 0 Output packets: 0 Logical interface irb.10 (Index 326) (SNMP ifIndex 634) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 MAC: 00:00:00:00:00:01 Bandwidth: 1000mbps Routing Instance: LS1/default Bridging Domain: lsbd1+10 Input packets : 55202 Output packets: 69286 Protocol inet, MTU: 1450 Flags: Sendbcast-pkt-to-re, Is-Primary, User-MTU Addresses, Flags: Is-Preferred Is-Primary Destination: 10.1.10/24, Local: 10.1.10.1, Broadcast: 10.1.10.255 Addresses, Flags: Is-Preferred Destination: 10.1.12/24, Local: 10.1.12.1, Broadcast: 10.1.12.255 Protocol mpls, MTU: 1500, Maximum labels: 3 Flags: Is-Primary Protocol multiservice, MTU: 1500 Logical interface irb.20 (Index 358) (SNMP ifIndex 635) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 MAC: 00:00:00:00:00:02 Bandwidth: 1000mbps Routing Instance: LS2/default Bridging Domain: lsbd2+10 Input packets : 66044 Output packets: 68464 Protocol inet, MTU: 1450 Flags: Sendbcast-pkt-to-re, Is-Primary, User-MTU Addresses, Flags: Is-Preferred Is-Primary Destination: 10.1.10/24, Local: 10.1.10.2, Broadcast: 10.1.10.255 Addresses, Flags: Is-Preferred Destination: 10.1.12/24, Local: 10.1.12.2, Broadcast: 10.1.12.255 Protocol mpls, MTU: 1500, Maximum labels: 3 Flags: Is-Primary Protocol multiservice, MTU: 1500 Logical interface irb.30 (Index 360) (SNMP ifIndex 636) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 MAC: 00:00:00:00:00:03 Bandwidth: 1000mbps Routing Instance: LS2/default Bridging Domain: lsbd3+40 Input packets : 26948 Output packets: 53605 Protocol inet, MTU: 1500 Flags: Sendbcast-pkt-to-re Addresses, Flags: Is-Preferred Is-Primary Destination: 10.1.12/24, Local: 10.1.12.2, Broadcast: 10.1.12.255 Addresses, Flags: Is-Preferred Destination: 10.1.10/24, Local: 10.1.10.1, Broadcast: 10.1.10.255 Protocol mpls, MTU: 1500, Maximum labels: 3 Protocol multiservice, MTU: 1500 Logical interface irb.40 (Index 355) (SNMP ifIndex 632) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 MAC: 00:00:00:00:00:04 Bandwidth: 1000mbps Routing Instance: LS3/default Bridging Domain: lsbd4+40 Input packets : 40575 Output packets: 31128 Protocol inet, MTU: 1500 Flags: Sendbcast-pkt-to-re, Is-Primary Addresses, Flags: Is-Preferred Is-Primary Destination: 10.1.12/24, Local: 10.1.12.1, Broadcast: 10.1.12.255 Protocol mpls, MTU: 1500, Maximum labels: 3 Flags: Is-Primary Protocol multiservice, MTU: 1500
의미
출력은 MAC 필드에서 수동으로 구성된 MAC 주소 보여줍니다.
논리적 인터페이스에 대한 MAC 주소 구성하지 않은 경우 출력에는 이 값이 포함되지 않습니다. 그러나 디바이스는 데이터 전송 중에 물리적 인터페이스의 MAC 주소 사용합니다.