Supported Platforms
Configuring VLANs for the DHCPv6 Layer 3 Wholesale Network Solution
You can configure either static or dynamic customer VLANs for use in the DHCPv6 wholesale network solution.
Configuring Static Customer VLANs for the DHCPv6 Layer 3 Wholesale Network Solution
In this example configuration, the access interface (ge-2/3/0) connects to a device (that is, a DSLAM) on the access side of the network. You can define static VLANs for use by access network subscribers.
To configure the static VLANs:
- Edit the access side interface.[edit]user@host# edit interfaces ge-2/3/0
- Specify the use of stacked VLAN tagging.[edit interfaces ge-2/3/0]user@host# set stacked-vlan-tagging
- Edit the interface unit for the first VLAN.[edit interfaces ge-2/3/0]user@host# edit unit 1
- Define the VLAN tags for the first VLAN.[edit interfaces ge-2/3/0 unit 1]user@host# set vlan-tags outer 3 inner 1
- Specify that you want to create IPv6 demux interfaces.[edit interfaces ge-2/3/0 unit 1]user@host# set demux-source inet6
- Edit the family for the first VLAN.[edit interfaces ge-2/3/0 unit 1]user@host# edit family inet6
- (Optional) Define the unnumbered address and the preferred
source address for the first VLAN.[edit interfaces ge-2/3/0 unit 1 family inet6]user@host# set unnumbered-address lo0.1 preferred-source-address 2002:2c28:2c21::1/128
- Repeat steps 2 through 7 for additional VLAN interface units.
Configuring Dynamic Customer VLANs for the DHCPv6 Layer 3 Wholesale Network Solution
To configure dynamic VLANs for the solution:
- Configure a dynamic profile for dynamic VLAN creation.
- Name the profile.[edit]user@host# edit dynamic-profiles VLAN-PROF
- Define the interfaces statement with the internal $junos-interface-ifd-name variable used by the router to match
the interface name of the receiving interface.[edit dynamic-profiles VLAN-PROF]user@host# edit interfaces $junos-interface-ifd-name
- Define the unit statement with the predefined $junos-interface-unit variable:[edit dynamic-profiles VLAN-PROF interfaces “$junos-interface-ifd-name”]user@host# edit unit $junos-interface-unit
- Specify that you want to create IPv6 demux interfaces.[edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set demux-source inet6
- Specify the VLAN ID variable.[edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set vlan-tags outer $junos-stacked-vlan-id
The variable is dynamically replaced with an outer VLAN ID within the VLAN range specified at the [interfaces] hierarchy level.
- Specify the inner VLAN ID variable.[edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set vlan-tags inner $junos-vlan-id
The variable is dynamically replaced with an inner VLAN ID within the VLAN range specified at the [interfaces] hierarchy level.
- Access the family type.[edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# edit family inet6
- (Optional) Specify the unnumbered address and preferred
source address.[edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6]user@host# set unnumbered-address lo.0 preferred-source-address 2002:2c28:2c21::1/128
- Name the profile.
- Associate the dynamic profile with the interface on which
you want the VLANs created.
- Access the interface that you want to use for creating
VLANs.[edit interfaces]user@host# edit interfaces ge-2/3/0
- Specify the use of stacked VLAN tagging.[edit interfaces ge-2/3/0]user@host# set stacked-vlan-tagging
- Specify that you want to automatically configure VLAN
interfaces.[edit interfaces ge-2/3/0]user@host# edit auto-configure
- Specify that you want to configure stacked VLANs.[edit interfaces ge-2/3/0 auto-configure]user@host# edit stacked-vlan-ranges
- Specify the dynamic VLAN profile that you want the interface
to use.[edit interfaces ge-2/3/0 auto-configure stacked-vlan-ranges]user@host# set dynamic-profile VLAN-PROF
- Repeat steps a through e for any other interfaces that you want to use for creating VLANs.
- Access the interface that you want to use for creating
VLANs.
- Specify the Ethernet packet type that the VLAN dynamic
profile can accept.[edit interfaces ge-2/3/0 auto-configure stacked-vlan-ranges dynamic-profile VLAN-PROF]user@host# set accept inet6
- Define VLAN ranges for use by the dynamic profile when
dynamically creating VLAN IDs. For this solution, specify the outer
and inner stacked VLAN ranges that you want the dynamic profile to
use. The following example specifies an outer stacked VLAN ID range
of 3–3 (enabling only the outer range of 3) and an
inner stacked VLAN ID range of 1–3 (enabling a range
from 1 through 3 for the inner stacked VLAN ID).[edit interfaces ge-0/0/0 auto-configure stacked-vlan-ranges dynamic-profile VLAN-PROF]user@host# set stacked-vlan-ranges 3–3,1–3