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-routeEnables the creation of host access routes on an interface
- addressConfigures an IP address on an interface
- auto-configureConfigures the interface for auto-configure mode
- auto-detectConfigures the interface for auto-detect mode
- directed-broadcastEnables directed broadcast forwarding
- filter-options-allEnables filtering of packets with IP options on an interface
- igmpConfigures an IGMP interface
- ignore-df-bitSpecifies that the don't-fragment bit is ignored
- inactivity-timerConfigures inactivity time for IP interfaces
- inspectionAssociates an inspection list to the interface for firewalling
- mtuConfigures the maximum transmission unit for a network
- natConfigures the interface as inside or outside for Network Address Translation (NAT)
- policyAssigns a policy to the ingress or egress of an interface
- redirectsEnables transmission of ICMP redirect messages
- route-mapsConfigures the interface for route-map processing
- source address validationVerifies that a packet has been sent from a valid source address
- tcp adjust-mssAdjusts maximum packet sizes on TCP connections when path MTU detection is not sufficient
- unnumberedConfigures IP on this interface without a specific address
- virtual-routerSpecifies 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 JUNOSe Link Layer Configuration Guide, Chapter 15, Configuring Dynamic Interfaces for information about creating profiles and on other characteristics that can be applied to the profile.
host1(config)#profile actonhost1(config-profile)#ipvirtual-router warfhost1(config-profile)#ip unnumbered atm 3/0ip access-routes
host1(config)#profile foohost1(config-profile)#ip access-routesUse the no version to remove the access route. ip 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.
- Example
host1(config-if)#ip address 192.56.32.2 255.255.255.0Use the no version to remove the IP address assigned to the profile. ip directed-broadcast
host1(config-if)#ip directed-broadcastUse the no version to remove the directed broadcast address from the profile. ip inspection
host1(config-profile)#ip inspection list1Use the no version to remove the inspection list association to this interface. ip mtu
host1(config-if)#ip mtu 5000Use 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.
- Example
host1(config-if)#ip redirectsUse the no version to remove the assignment from the profile. ip tcp adjust-mss
- Use to modify the maximum segment size (MSS) for TCP SYN packets traveling through the interface. The router compares the MSS value of incoming or outgoing packets against the MSS adjustment value. For any packet that contains an MSS value larger than the MSS adjustment value, the router replaces the MSS option with the configured adjustment value. If the packet does not contain an MSS value, the router assumes a value of 536 for the packet MSS on which to base the comparison.
- Example
host1(config-if)#ip tcp adjust-mss 5000Use the no version to remove the MSS 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/0Use the no version to remove the assignment from the profile. ip 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.
- Example
host1(config-profile)#ip virtual-router VR1Use the no version to remove the virtual router assignment. profile
host1(config)#profile fooUse the no version to remove a profile. Assigning 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 actonUse the no version to remove the assignment from the interface.