![Juniper JUNOS OS 10.3 - SOFTWARE Manual Download Page 1451](http://html.mh-extra.com/html/juniper/junos-os-10-3-software/junos-os-10-3-software_manual_20327931451.webp)
•
Configured the necessary VLANs. See “Configuring VLANs for EX Series Switches (CLI
Procedure)” on page 1378 or “Configuring VLANs for EX Series Switches (J-Web
Procedure)” on page 1375.
Overview and Topology
In a large office, you may need multiple VLANs to properly manage your traffic. This
configuration example shows a simple topology to illustrate how to connect a single EX
Series switch with a virtual routing instance for each of two VLANs, enabling traffic to
pass between those VLANs.
In the example topology, the LAN is segmented into two VLANs, each associated with
an interface and a routing instance on the EX Series switch.
Configuration
CLI Quick
Configuration
To quickly create and configure virtual routing instances, copy the following commands
and paste them into the switch terminal window:
[edit]
set interfaces ge-0/0/3 vlan-tagging
set interfaces ge-0/0/3 unit 0 vlan-id 1030 family inet address 103.1.1.1/24
set interfaces ge-0/0/3 unit 1 vlan-id 1031 family inet address 103.1.1.1/24
set routing-instances r1 instance-type virtual-router
set routing-instances r1 interface ge-0/0/1.0
set routing-instances r1 interface ge-0/0/3.0
set routing-instances r2 instance-type virtual-router
set routing-instances r2 interface ge-0/0/2.0
set routing-instances r2 interface ge-0/0/3.1
Step-by-Step
Procedure
To configure virtual routing instances:
1.
Create a VLAN-tagged interface:
[edit]
user@switch#
set interfaces ge-0/0/3
vlan-tagging
2.
Create two subinterfaces, on the interface, one for each routing instance:
[edit]
user@switch#
set
interfaces
ge-0/0/3 unit 0 vlan-id 1030 family inet address
103.1.1.1/24
user@switch#
set interfaces ge-0/0/3 unit 1 vlan-id 1031 family inet address
103.1.1.1/24
3.
Create two virtual routers:
[edit]
user@switch#
set routing-instances r1
instance-type
virtual-router
user@switch#
set routing-instances r2 instance-type virtual-router
4.
Set the interfaces for the virtual routers:
[edit]
user@switch#
set
routing-instances
r1 interface ge-0/0/1.0
user@switch#
set routing-instances r1 interface ge-0/0/3.0
user@switch#
set routing-instances r2 interface ge-0/0/2.0
1355
Copyright © 2010, Juniper Networks, Inc.
Chapter 58: Examples: Bridging and VLAN Configuration
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...