Juniper JUNOS OS 10.4 - FOR EX REV 1 Manual page 1682

For ex series ethernet switches
Table of Contents

Advertisement

Complete Software Guide for Junos
Configuration
CLI Quick
Configuration
Step-by-Step
Procedure
Results
1578
®
OS for EX Series Ethernet Switches, Release 10.4
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.
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
To configure virtual routing instances:
Create a VLAN-tagged interface:
1.
[edit]
user@switch# set interfaces ge-0/0/3 vlan-tagging
Create two subinterfaces, on the interface, one for each routing instance:
2.
[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
Create two virtual routers:
3.
[edit]
user@switch# set routing-instances r1 instance-type virtual-router
user@switch# set routing-instances r2 instance-type virtual-router
Set the interfaces for the virtual routers:
4.
[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
user@switch# set routing-instances r2 interface ge-0/0/3.1
Check the results of the configuration:
user@switch> show configuration
interfaces {
ge-0/0/1 {
unit 0 {
family ethernet-switching;
}
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os 10.4

Table of Contents