user@distribution-switch#
set unit 1 family inet address 2.1.1.2/24
6.
Bind vlan3's VLAN ID to the logical interface:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 2 vlan-id 103
7.
Set vlan3's subinterface IP address:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 2 family inet address 3.1.1.2/24
8.
Bind vlan4's VLAN ID to the logical interface:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 3 vlan-id 104
9.
Set vlan4's subinterface IP address:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 3 family inet address 4.1.1.2/24
10.
Bind vlan5's VLAN ID to the logical interface:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 4 vlan-id 105
11.
Set vlan5's subinterface IP address:
[edit interfaces ge-0/0/0]
user@distribution-switch#
set unit 4 family inet address 5.1.1.2/24
Results
user@distribution-switch> show configuration
interfaces {
ge-0/0/0 {
vlan-tagging;
unit 0 {
vlan-id 101;
family inet {
address 1.1.1.2/24;
}
}
unit 1 {
vlan-id 102;
family inet {
address 2.1.1.2/24;
}
}
unit 2 {
vlan-id 103;
family inet {
address 3.1.1.2/24;
}
}
unit 3 {
vlan-id 104;
family inet {
address 4.1.1.2/24;
}
}
1131
Copyright © 2010, Juniper Networks, Inc.
Chapter 51: Examples: Interfaces 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 ...