In this example configuration, the access interface (ge-1/3/0) connects to a device (that is, a DSLAM) on the access side of the network. This procedure enables the dynamic creation of up to 5 customer VLANs (C-VLANs) for use by the access network subscribers.
To configure dynamic VLANs for the solution:
- [edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name"
unit "$junos-interface-unit"]
- user@host# set proxy-arp
- [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.
- [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.
- [edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name"
unit "$junos-interface-unit"]
- user@host# set family inet
- [edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name"
unit "$junos-interface-unit" family inet]
- user@host# set mac-validate strict
- [edit dynamic-profiles VLAN-PROF interfaces "$junos-interface-ifd-name"
unit "$junos-interface-unit" family inet]
- user@host# set unnumbered-address lo.0 preferred-source-address 33.33.0.1
- [edit interfaces]
- user@host# edit interfaces ge-1/3/0
- [edit interfaces ge-1/3/0]
- user@host# edit auto-configure
- [edit interfaces ge-1/3/0 auto-configure]
- user@host# edit stacked-vlan-ranges
- [edit interfaces ge-1/3/0 auto-configure stacked-vlan-ranges]
- user@host# set dynamic-profile VLAN-PROF
![]() |
Note: This release supports only INET (IPv4) Ethernet packet types. |
- [edit interfaces ge-1/3/0 auto-configure stacked-vlan-ranges
VLAN-PROF]
- user@host# set accept inet
- [edit interfaces ge-0/0/0 auto-configure vlan-ranges]
- user@host# set ranges 3,1–5