}
}
unit 2 {
vlan-id 103;
family inet {
address 3.1.1.1/24;
}
}
unit 3 {
vlan-id 104;
family inet {
address 4.1.1.1/24;
}
}
unit 4 {
vlan-id 105;
family inet {
address 5.1.1.1/24;
}
}
}
Configuring the Distribution Switch Subinterfaces
CLI Quick
Configuration
To quickly create and configure subinterfaces on the distribution switch, copy the following
commands and paste them into the switch terminal window:
[edit]
set interfaces ge-0/0/0 vlan-tagging
set interfaces ge-0/0/0 unit 0 vlan-id 101 family inet address 1.1.1.2/24
set interfaces ge-0/0/0 unit 1 vlan-id 102 family inet address 2.1.1.2/24
set interfaces ge-0/0/0 unit 2 vlan-id 103 family inet address 3.1.1.2/24
set interfaces ge-0/0/0 unit 3 vlan-id 104 family inet address 4.1.1.2/24
set interfaces ge-0/0/0 unit 4 vlan-id 105 family inet address 5.1.1.2/24
Step-by-Step
Procedure
To configure subinterfaces on the distribution switch:
1.
On the trunk interface of the distribution switch, enable VLAN tagging:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set
vlan-tagging
2.
Bind vlan1's VLAN ID to the logical interface:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set
unit
0 vlan-id 101
3.
Set vlan1's subinterface IP address:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 0 family inet address 1.1.1.2/24
4.
Bind vlan2's VLAN ID to the logical interface:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 1
vlan-id
102
5.
Set vlan2's subinterface IP address:
[edit interfaces ge-0/0/0]
Copyright © 2010, Juniper Networks, Inc.
1130
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
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 ...