Example: Configuring a Profile for Dynamic Interfaces
This example shows different ways to configure
profiles.
Requirements
This example uses the following software and hardware
components:
- JunosE Release 7.1.0 or higher-numbered releases
- E Series router (ERX7xx models, ERX14xx models, the ERX310
router, the E120 router, or the E320 router)
- ASIC-based line modules that support Fast Ethernet or
Gigabit Ethernet
Overview
Currently, profiles support bridged Ethernet, IP, IPv6, L2TP,
Multilink PPP, PPP, PPPoE, and VLANs. You create a profile with a
specific set of characteristics. You then assign the profile to multiple
interfaces instead of creating separate interfaces with identical
attributes. After you create a profile, you can assign it to static
ATM 1483, static PPP, or static VLAN major interfaces on different
devices.
Configuring and Assigning Profiles
This example explains various ways to assign
the created profiles to multiple interfaces.
Creating Profiles
Step-by-Step Procedure
To create profiles with various characteristics assigned:
- Create a new profile with IP characteristics only.
host1(config)#profile ProfileA host1(config-profile)#ip mtu 1024 host1(config-profile)#exit
- Create a new profile with both IP and PPP characteristics.
host1(config)#profile ProfileB host1(config-profile)#ip mtu 512 host1(config-profile)#ppp authentication chap host1(config-profile)#ppp keepalive 120 host1(config-profile)#exit
- Create a new profile with IP, PPP, and PPPoE characteristics.
host1(config)#profile ProfileC host1(config-profile)#ip mtu 1400 host1(config-profile)#ppp authentication chap host1(config-profile)#ppp keepalive 60 host1(config-profile)#pppoe sessions 64 host1(config-profile)#exit
Assigning Distinct Profiles for Each Encapsulation
Step-by-Step Procedure
Distinct profiles are assigned for each encapsulation,
where the configuration of dynamic layers varies according to which
incoming encapsulation the ATM 1483 subinterface detects.
- Assign the created profiles for each encapsulation.
host1(config)#interface atm 4/0.1host1(config-subif)#atm pvc 10 10 22 aal5autoconfig host1(config-subif)#profile ip ProfileAhost1(config-subif)#profile ppp ProfileBhost1(config-subif)#profile pppoe ProfileChost1(config-subif)#subscriber ip user atm1
domain isp1 password atm1pw
- Enable autodetection for the encapsulation types with
the default lockout time range.
host1(config-subif)#auto-configure iphost1(config-subif)#auto-configure ppphost1(config-subif)#auto-configure pppoehost1(config-subif)#exit
Assigning a Single Profile for All Encapsulations
Step-by-Step Procedure
The same profile is assigned for all encapsulations.
The configuration of dynamic layers is the same regardless of incoming
encapsulations detected by ATM. Only relevant profile attributes are
used for whichever dynamic interface layers are actually constructed.
- Assign the same profile for all encapsulations.
host1(config)#interface atm 4/0.2host1(config-subif)#atm pvc 200 0 200 aal5autoconfig host1(config-subif)#profile any ProfileChost1(config-subif)#subscriber ip user atm2
domain isp2 password atm2pw
- Enable autodetection for the encapsulation types with
the default lockout time range.
host1(config-subif)#auto-configure iphost1(config-subif)#auto-configure ppphost1(config-subif)#auto-configure pppoehost1(config-subif)#exit
Assigning a Profile Using any Wildcard
Step-by-Step Procedure
The profile is implicitly assigned via the any encapsulation wildcard. Configuration of dynamic
layers is the same regardless of incoming encapsulation detected by
ATM.
- Assign the profile using the any keyword.
host1(config)#interface atm 4/0.3host1(config-subif)#atm pvc 300 0 300 aal5autoconfig host1(config-subif)#profile any ProfileChost1(config-subif)#subscriber ip user atm2
domain isp3 password atm3pw
- Enable autodetection for the IP encapsulation type with
a lockout time range of 3600–7200 seconds (1–2 hours).
host1(config-subif)#auto-configure ip lockout-time
3600 7200
- Enable autodetection for other encapsulation types with
the default lockout time range.
host1(config-subif)#auto-configure ppphost1(config-subif)#auto-configure pppoehost1(config-subif)#exit
Assigning a Profile for bridgedEthernet Encapsulation
Step-by-Step Procedure
The profile is assigned for the bridgedEthernet encapsulation
type.
- Assign the profile for the bridgedEthernet encapsulation.
host1(config)#interface atm 4/0.3host1(config-subif)#atm pvc 300 0 300 aal5autoconfig host1(config-subif)#profile bridgedEthernet
ProfileAhost1(config-subif)#subscriber bridgedEthernet
user atm3 domain isp1 password fjdkei
- Enable autodetection for the bridged Ethernet encapsulation
type with a lockout time range of 3600–21600 seconds (1–6
hours).
host1(config-subif)#auto-configure bridgedEthernet
lockout-time 3600 21600
Published: 2012-06-26