Professional Documents
Culture Documents
Virtual Switches
Virtual Switches
Virtual Switches
Routing Instances
MX240
Chassis
default-switch
www.juniper.net | 2
Routing Table
MX240
Chassis
ge-x/y/z.0
inet.0 (default)
Routing Table
inet.0 (default)
One MAC
table per
bridge
domain or
VLAN
IRB Interfaces
MAC Tables
default-switch
Transient
Interfaces
www.juniper.net | 3
Routing Table
inet.0 (default)
instance-name.inet.0
Chassis
[edit]
user@switch# show routing-instances
vr1 {
instance-type virtual-router;
interface ge-1/1/5.0;
interface ge-1/1/6.0;
interface ge-1/1/7.0;
protocols {
ospf {
area 0.0.0.0 {
interface ge-1/1/5.0;
interface ge-1/1/6.0;
interface ge-1/1/7.0;
}
ge-1/1/7.0
ge-1/1/6.0
ge-1/1/5.0
172.22.2.0/24
172.22.2.3/32
*[Direct/0] 20:59:24
> via ge-1/1/5.0
*[Local/0] 20:59:24
Local via ge-1/1/5.0
www.juniper.net | 4
Routing Table
inet.0 (default)
IRB Interfaces
default-switch
instance-name
ge-1/1/4.0
MAC Tables
ge-1/0/5.0
MAC Tables
One MAC
table per
bridge
domain or
VLAN
Interfaces used
in upcoming
examples
www.juniper.net | 5
www.juniper.net | 6
[edit]
user@switch# show interfaces ge-1/0/5
unit 0 {
family bridge {
interface-mode access;
vlan-id 200;
}
}
WARNING!!!
Committing at this point can cause this interface to be added to
the default-switch routing instance, which could introduce a loop
into your topology.
www.juniper.net | 7
[edit]
user@switch# show interfaces ge-1/1/4
unit 0 {
family bridge {
interface-mode trunk;
vlan-id-list [ 100 200 ];
}
}
WARNING!!!
Remember to bind the trunk port to the virtual
switch to prevent the introduction of a loop into
your topology.
www.juniper.net | 8
irb {
unit 1 {
description "GW for VLAN_200";
family inet {
address 172.22.2.254/24;
}
}
}
www.juniper.net | 9
[edit]
user@switch# show routing-instances
virtual-sw-1 {
instance-type virtual-switch;
interface ge-1/0/5.0;
interface ge-1/1/4.0;
bridge-domains {
vlan_100 {
vlan-id 100;
}
vlan_200 {
vlan-id 200;
routing-interface irb.1;
}
}
}
2010 Juniper Networks, Inc. All rights reserved.
www.juniper.net | 10
Bridge domain
vlan_100
VLAN ID
100
Interfaces
ge-1/0/0.0
ge-1/0/4.0
default-switch
vlan_200
200
ge-1/0/2.0
ge-1/0/4.0
virtual-sw-1
vlan_100
100
virtual-sw-1
vlan_200
200
ge-1/1/4.0
ge-1/0/5.0
ge-1/1/4.0
ge-1/1/4.0 and ge-1/0/5.0 have been added
to the correct routing instance, bridge
domains, and VLANs.
2010 Juniper Networks, Inc. All rights reserved.
www.juniper.net | 11
Verify Routing
Ensure that the appropriate routes appear in
the inet.0 routing table
user@switch> show route
inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0
hidden)
+ = Active Route, - = Last Active, * = Both
10.210.12.0/27
10.210.12.1/32
172.22.2.0/24
172.22.2.254/32
*[Direct/0] 1d 22:44:16
> via fxp0.0
*[Local/0] 1d 22:44:16
Local via fxp0.0
*[Direct/0] 00:05:54
> via irb.1
*[Local/0] 00:13:39
Local via irb.1
www.juniper.net | 12
Interconnection Methods
Supported methods:
Internal, logical tunnel interface (Layer 3 only)
Two external, physically looped interfaces (1 cable)
Chassis
Routing Table
Routing Table
instance-name.inet.0
inet.0 (default)
Logical Tunnel =
Physical Loop =
IRB Interfaces
MAC Tables
MAC Tables
default-switch
instance-name
www.juniper.net | 13
ge-1/0/8
up
down
ge-1/0/9
up
down
ge-1/1/0
up
down
user@switch> show interfaces terse
Interface
Admin Link Proto Local
Remote
ge-1/0/8
up
down
ge-1/0/9
up
down
gr-1/0/10
up
up
ip-1/0/10
up
up
lt-1/0/10
up
up
mt-1/0/10
up
up
pd-1/0/10
up
up
pe-1/0/10
up
up
vt-1/0/10
up
up
ge-1/1/0
up
down
2010 Juniper Networks, Inc. All rights reserved.
[edit]
user@switch# show chassis
fpc 1 {
pic 0 {
tunnel-services {
bandwidth 1g;
}
}
}
www.juniper.net | 14
www.juniper.net | 15
MAC Tables
MAC Tables
default -switch
virtual-sw-1
ge-1/0/4.0
ge-1/1/4.0
[edit]
user@switch# show routing-instances
virtual-sw-1 {
instance-type virtual-switch;
interface ge-1/1/4.0;
bridge-domains {
vlan_100 {
vlan-id 100;
}
vlan_200 {
vlan-id 200;
[edit]
user@switch# show interfaces
ge-1/0/4 {
unit 0 {
family bridge {
interface-mode trunk;
vlan-id-list [ 100
200 ];
}
}
}
ge-1/1/4 {
unit 0 {
family bridge {
interface-mode trunk;
vlan-id-list [ 100
200 ];
www.juniper.net | 16
MAC Tables
default -switch
virtual-sw-1
ge-1/0/4.0
ge-1/1/4.0
Bridge domain
vlan_100
VLAN ID
100
Interfaces
ge-1/0/4.0
default-switch
vlan_200
200
ge-1/0/4.0
virtual-sw-1
vlan_100
100
ge-1/1/4.0
virtual-sw-1
vlan_200
200
ge-1/1/4.0
www.juniper.net | 17