Creating a Profile
You can configure an IP interface dynamically by creating a profile. A profile is a set of characteristics that acts as a pattern that can be dynamically assigned to an IP interface. You can manage a large number of IP interfaces efficiently by creating a profile with a specific set of characteristics. In addition, you can create a profile to assign an IP interface to a virtual router.
A profile can contain one or more of the following characteristics:
- access-route - Enables the creation of host access routes on an interface
- address - Configures an IP address on an interface
- directed-broadcast - Enables directed broadcast forwarding
- mtu - Configures the mtu for a network
- redirects - Enables transmission of ICMP redirect messages
- unnumbered - Configures IP on this interface without a specific address
- virtual-router - Specifies a virtual router to which interfaces created by this profile will be attached
Use the profile command from Global Configuration mode to create or edit a profile. See ERX Physical and Link Layers Configuration Guide, Chapter 21, Configuring Dynamic Interfaces for information on creating profiles and on other characteristics that can be applied to the profile.
host1(config)#profile actonhost1(config-profile)#ip virtual-router warfhost1(config-profile)#ip unnumbered atm 3/0ip access-routes
host1(config)#profile foohost1(config-profile)#ip access-routesip address
- Use to assign an IP address to a profile.
- You must first specify the layer 2 encapsulation before you can set the IP address for serial interfaces.
- Use the no version to remove the IP address assigned to the profile.
ip directed-broadcast
- Use to enable a directed broadcast address in a profile.
- Use the no version to remove the directed broadcast address from the profile.
ip mtu
- Use to assign the MTU size sent on an IP interface.
- Use the no version to remove the assignment from the profile.
ip redirects
- Use to enable the sending of redirect messages if the software is forced to resend a packet through the same interface on which it was received.
- Use the no version to remove the assignment from the profile.
ip unnumbered
- Use to specify the numbered interface with which dynamic unnumbered interfaces created with the profile are associated.
- You can specify an unnumbered interface using RADIUS instead of using the ip unnumbered command in a profile.
- Example
host1(config-profile)#ip unnumbered fastEthernet 0/0ip virtual-router
- Use to assign a virtual router to a profile.
- You can configure a virtual router using RADIUS instead of adding one to the profile by using the ip virtual-router command.
- Use the no version to remove the virtual router assignment.
profile
host1(config)#profile fooAssigning a Profile
To assign a profile to an interface, use the profile command from Interface mode.
profile
- Use to assign a profile to a PPP interface. The profile configuration is used to dynamically create an upper IP interface.
- Example
host1(config-if)#interface serial 2/1host1(config-if)#encapsulation ppphost1(config-if)#profile acton