7月 02, 2020

Juniper EX2300 VLAN 設定

在 Juniper 交換器中要讓不同 VLAN 可以互通,首先要瞭解什麼是 IRB(Integrated Routing and Bridging) 介面:
When Should I Use an IRB Interface or RVI?
To forward packets between VLANs, you normally need a router that connects the VLANs. However, you can accomplish this forwarding on a switch without using a router by configuring an integrated routing and bridging (IRB) interface.
  • Allow traffic to be routed between VLANs.
  • Provide Layer 3 IP connectivity to the switch.
配置架構: [L3 IRB.X] -- [VLAN.X] -- [PHY port] 其中 X 為邏輯介面,不同 VLAN 對應之。

root# show interfaces irb | display set
set interfaces irb unit 70 family inet address 192.168.70.254/24
set interfaces irb unit 80 family inet address 192.168.80.254/24
root# show vlans | display set
set vlans vlan70 vlan-id 70
set vlans vlan70 l3-interface irb.70  /* 把 vlan70 與 irb.70 綁定 */
set vlans vlan80 vlan-id 80
set vlans vlan80 l3-interface irb.80
root# show interfaces | display set
set interfaces ge-0/0/0  unit 0 family ethernet-switching vlan members vlan70
set interfaces ge-0/0/1  unit 0 family ethernet-switching vlan members vlan70

set interfaces ge-0/0/12 unit 0 family ethernet-switching vlan members vlan80
set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members vlan80

Junos: 18.1R3.3

沒有留言:

張貼留言