Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Support
Technical Documentation
Content Explorer New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
File Format Help
 
Glossary
 
Portable Libraries
 
 
Home > Support > Technical Documentation > JunosE Software > Example: Configuring Static Subscriber Interfaces
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...
 

Related Documentation

  • Subscriber Interfaces Overview
  • Characteristics of Subscriber Interfaces
  • How MAC Address Validation State Inheritance Works
  • Example: Configuring Dynamic Subscriber Interfaces
  • Example: Configuring Dynamic Subscriber Interfaces Using Loopback Interfaces
  • interface fastEthernet
  • interface ip
  • ip address
  • ip demux-type da-prefix
  • ip destination-prefix
  • ip share-interface
  • ip share-nexthop
  • ip source-prefix
  • ip unnumbered
  • virtual-router
 

Example: Configuring Static Subscriber Interfaces

You can configure static subscriber interfaces on ATM, Fast Ethernet, Gigabit Ethernet, 10-Gigabit Ethernet, or POS layer 2 interfaces.

The examples in this topic show how to configure static subscriber interfaces on a Fast Ethernet interface, but the steps for configuring static subscriber interfaces over other supported layer 2 interface types are similar.

  • Example: Using a Destination Address to Demultiplex Traffic
  • Example: Using a Source Address to Demultiplex Traffic

Example: Using a Destination Address to Demultiplex Traffic

This example shows how you can use static subscriber interfaces to direct traffic toward special local content on the network, based on the traffic’s destination address.

  • Requirements
  • Overview
  • Using a Destination Address to Demultiplex Traffic

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

The example in Figure 1 shows how you can use static subscriber interfaces to direct traffic toward special local content on the network, based on the traffic’s destination address. In this application, a local VoIP service is on network 10.11.0.0./16, and a local gaming service is on network 10.12.0.0/16.

Figure 1: Subscriber Interfaces Using a Destination Address to Demultiplex Traffic

Subscriber Interfaces Using a Destination
Address to Demultiplex Traffic

Using a Destination Address to Demultiplex Traffic

Step-by-Step Procedure

To configure the static subscriber interfaces shown in Figure 1, perform the following steps:

  1. Configure a primary IP interface on a supported layer 2 interface.
    1. Create a layer 2 interface.
      host1(config)#interface fastEthernet 3/1
    2. Create a primary IP interface.
      host1(config-if)#ip address 10.1.1.1 255.0.0.0
    3. Configure the primary interface to use a destination address to demultiplex traffic for the subscriber interface. (By default, a source address is used to demultiplex traffic.)
      host1(config-if)#ip demux-type da-prefix

      Use the no version to restore the default situation in which the router uses a source address to demultiplex traffic.

    4. Exit Interface Configuration mode.
      host1(config-if)#exit
  2. Configure subscriber interface IP1.
    1. Create the shared IP interface.
      host1(config)#interface ip ip1

      Use the specified name to refer to the shared IP interface; you cannot use the layer 2 interface to refer to the shared IP interface, because the shared interface can be moved.

      Use the no version to delete the IP interface.

    2. Associate the shared IP interface with the layer 2 interface by using one of the following methods:
      • Static
        host1(config-if)#ip share-interface fastEthernet 3/1

        If you issue this command on a shared IP interface, you cannot issue the ip share-nexthop command for the interface.

        After creating the shared IP interface, you can configure it as you do any other IP interface. The shared interface is operationally up when the layer 2 interface is operationally up and IP is properly configured. You can create operational shared IP interfaces in the absence of a primary IP interface.

        Use the no version to remove the association between the layer 2 interface and the shared IP interface. You can delete shared and primary IP interfaces independently.

      • Dynamic
        host1:vr-a:vrf-1(config-if)#ip share-nexthop 10.1.1.2

        You can use this command to specify that the shared IP interface dynamically tracks a next hop. If the next hop changes, the shared IP interface moves to the new layer 2 interface associated with the IP interface toward the new next hop.

        If you issue this command on a shared IP interface, you cannot issue the ip share-interface command for the interface. If you issue this command on a shared IP interface, the shared interface cannot dynamically track the next hop for the specified destination if the next-hop IP address is resolvable over MPLS. If you specify a virtual router, the command fails if the VR does not already exist. If you do not specify a VR, the current VR is assumed.

        After creating the shared IP interface, you can configure it as you do any other IP interface. The shared interface is operationally up when the layer 2 interface associated with the specified next hop is operationally up and IP is properly configured.

        Use the no version to halt tracking of the next hop.

    3. To fully configure the shared interface, assign an address or make it unnumbered.
      host1(config-if)#ip unnumbered loopback 0
    4. Specify the destination addresses for the subscriber interface to use to demultiplex traffic.
      host1(config-if)#ip destination-prefix 10.11.0.0 255.255.0.0

      On the ERX1440 Broadband Services Router or the E320 router, you can configure up to 1024 subnets for static subscriber interfaces per primary IP interface when each subnet has a variable network mask that is less than /32. The number of subnets identifying a single route (/32) is still limited by the global maximum of 16,000 hosts per line module.

      Use the no version to remove the association between the interface and the specified IP destination address and mask.

    5. Exit Interface Configuration mode.
      host1(config-if)#exit
  3. Repeat Step 2 to configure subscriber interface IP2.
    host1(config)#interface ip ip2 host1(config-if)#ip share-interface fastEthernet 3/1 host1(config-if)#ip unnumbered loopback 0 host1(config-if)#ip destination-prefix 10.12.0.0 255.255.0.0

Example: Using a Source Address to Demultiplex Traffic

This example illustrates how you can use static subscriber interfaces to differentiate traffic for VPN access, based on the traffic’s source address.

  • Requirements
  • Overview
  • Using a Source Address to Demultiplex Traffic

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

Figure 2 shows how you can use static subscriber interfaces to differentiate traffic for VPN access, based on the traffic’s source address.

Figure 2: Subscriber Interfaces Using a Source Address to Demultiplex Traffic

Subscriber Interfaces Using a Source
Address to Demultiplex Traffic

Using a Source Address to Demultiplex Traffic

Step-by-Step Procedure

To configure the static subscriber interfaces shown in Figure 2, perform the following steps:

  1. Configure a primary IP interface on a supported layer 2 interface.
    1. Create a layer 2 interface.
      host1(config)#interface fastEthernet 4/1
    2. Create a primary IP interface.
      host1(config-if)#ip address 10.1.1.1 255.255.255.0
    3. Exit Interface Configuration mode.
      host1(config-if)#exit
  2. Configure subscriber interface IP1.
    1. Create the shared IP interface.
      host1(config)#virtual-router vra
      Proceed with new virtual-router creation? [confirm] yes
      host1:vra(config)#interface ip ip1

      Use the specified name to refer to the shared IP interface; you cannot use the layer 2 interface to refer to the shared IP interface, because the shared interface can be moved.

      Use the no version to delete the IP interface.

    2. Associate the shared IP interface with the layer 2 interface by using one of the following methods:
      • Static
        host1:vra(config-if)#ip share-interface fastEthernet 4/1

        If you issue this command on a shared IP interface, you cannot issue the ip share-nexthop command for the interface.

        After creating the shared IP interface, you can configure it as you do any other IP interface. The shared interface is operationally up when the layer 2 interface is operationally up and IP is properly configured. You can create operational shared IP interfaces in the absence of a primary IP interface.

        Use the no version to remove the association between the layer 2 interface and the shared IP interface. You can delete shared and primary IP interfaces independently.

      • Dynamic
        host1:vra(config-if)#ip share-nexthop 10.1.1.2

        You can use this command to specify that the shared IP interface dynamically tracks a next hop. If the next hop changes, the shared IP interface moves to the new layer 2 interface associated with the IP interface toward the new next hop.

        If you issue this command on a shared IP interface, you cannot issue the ip share-interface command for the interface. If you issue this command on a shared IP interface, the shared interface cannot dynamically track the next hop for the specified destination if the next-hop IP address is resolvable over MPLS. If you specify a virtual router, the command fails if the VR does not already exist. If you do not specify a VR, the current VR is assumed.

        After creating the shared IP interface, you can configure it as you do any other IP interface. The shared interface is operationally up when the layer 2 interface associated with the specified next hop is operationally up and IP is properly configured.

        Use the no version to halt tracking of the next hop.

    3. To fully configure the shared interface, assign an address or make it unnumbered.
      host1:vra(config-if)#ip unnumbered loopback 0
    4. Specify the source addresses for the subscriber interface to use to demultiplex traffic, then exit Interface Configuration mode.
      host1:vra(config-if)#ip source-prefix 10.10.3.0 255.255.255.0 host1:vra(config-if)#exit

      On the ERX1440 router or the E320 router, you can configure up to 1024 subnets for static subscriber interfaces per primary IP interface when each subnet has a variable network mask that is less than /32. The number of subnets identifying a single route (/32) is still limited by the global maximum of 16,000 hosts per line module.

      Use the no version to remove the association between the interface and the specified IP source address and mask.

  3. Create a static route that sends traffic for destination address 10.10.3.0 to subscriber interface IP1.
    host1:vra(config)#ip route 10.10.3.0 255.255.255.0 ip ip1
  4. Repeat Step 2 to configure subscriber interface IP2.
    host1(config)#virtual-router vrb
    Proceed with new virtual-router creation? [confirm] yes
    host1:vrb(config)#interface ip ip2
    host1:vrb(config-if)#ip share-interface fastEthernet 4/1
    host1:vrb(config-if)#ip unnumbered loopback 0
    host1:vrb(config-if)#ip source-prefix 10.10.4.0 255.255.255.0
    host1:vrb(config-if)#exit
  5. Create a static route that sends traffic for destination address 10.10.4.0 to subscriber interface IP2.
    host1:vrb(config)#ip route 10.10.4.0 255.255.255.0 ip ip2
  6. Specify that DHCP relay does not install host routes—this avoids a conflict that can causes undesirable ARP behavior.
    host1(config)#set dhcp relay inhibit-access-route-creation

    For details about the cause of this conflict and the use of the set dhcp relay inhibit-access-route-creation command to avoid the conflict, see Configuring DHCP Relay Proxy.

 

Related Documentation

  • Subscriber Interfaces Overview
  • Characteristics of Subscriber Interfaces
  • How MAC Address Validation State Inheritance Works
  • Example: Configuring Dynamic Subscriber Interfaces
  • Example: Configuring Dynamic Subscriber Interfaces Using Loopback Interfaces
  • interface fastEthernet
  • interface ip
  • ip address
  • ip demux-type da-prefix
  • ip destination-prefix
  • ip share-interface
  • ip share-nexthop
  • ip source-prefix
  • ip unnumbered
  • virtual-router
 

Published: 2012-06-27

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out