[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring Dynamic Subscriber Interfaces

You can configure dynamic subscriber interfaces in the following configurations:

The following sections describe how to create each of these basic configurations. In addition, Dynamic Subscriber Interface Configuration Example, provides a detailed sample configuration.

Configuring Dynamic Subscriber Interfaces over Ethernet

To configure a dynamic subscriber interface in an IP over Ethernet configuration by using DHCP events, perform the following steps:

  1. Configure the DHCP server.

    For instructions, see Configuring the DHCP Local Server .

  2. Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet port.
    host1(config)#interface fastEthernet 4/1
  3. Create the primary IP interface by assigning an IP address and mask to the Ethernet interface (or make it unnumbered).
    host1(config-if)#ip address 192.168.2.1 255.255.255.0
  4. Configure the primary IP interface to enable dynamic creation of subscriber interfaces.
    host1(config-if)#ip auto-configure ip-subscriber
  5. (Optional) Specify the source address of traffic that is destined for the primary IP interface.
    host1(config-if)#ip source-prefix 192.168.2.1 255.255.255.0

Figure 22 shows the interface stack built for this configuration.

Figure 22: IP over Ethernet Dynamic Subscriber Interface Configuration

Image g013453.gif

Configuring Dynamic Subscriber Interfaces over VLANs

To configure a dynamic subscriber interface in an IP over VLAN over Ethernet configuration by using DHCP events, perform the following steps:

  1. Configure the DHCP server.

    For instructions, see Configuring the DHCP Local Server .

  2. Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet port.
    host1(config)#interface gigabitEthernet 1/0
  3. Specify VLAN as the encapsulation method on the interface. This command creates the VLAN major interface.
    host1(config-if)#encapsulation vlan
  4. Create a VLAN subinterface by adding a subinterface number to the interface identification command.
    host1(config-if)#interface gigabitEthernet 1/0.1
  5. Assign a unique VLAN ID to the VLAN subinterface.
    host1(config-if)#vlan id 101
  6. Create the primary IP interface by assigning an IP address and mask to the VLAN subinterface (or make it unnumbered).
    host1(config-if)#ip address 192.168.2.10 255.255.255.0
  7. Configure the primary IP interface to enable dynamic creation of subscriber interfaces.
    host1(config-if)#ip auto-configure ip-subscriber
  8. (Optional) Specify the source address of traffic that is destined for the primary IP interface.
    host1(config-if)#ip source-prefix 192.168.2.10 255.255.255.0

Figure 23 shows the interface stack built for this configuration.

Figure 23: IP over VLAN over Ethernet Dynamic Subscriber Interface Configuration

Image g013454.gif

Configuring Dynamic Subscriber Interfaces over Bridged Ethernet

To configure a dynamic subscriber interface in an IP over bridged Ethernet over ATM configuration by using DHCP events, perform the following steps:

  1. Configure DHCP server.

    For instructions, see Configuring the DHCP Local Server .

  2. Create an ATM major interface.
    host1(config)#interface atm 3/3
  3. Create an ATM 1483 subinterface.
    host1(config-if)#interface atm 3/3.1
  4. Configure an associated PVC for the ATM 1483 subinterface by specifying the VCD, the VPI, the VCI, and the encapsulation type.
    host1(config-subif)#atm pvc 10 100 22 aal5snap
  5. Specify bridged Ethernet as the encapsulation method on the ATM 1483 subinterface.
    host1(config-subif)#encapsulation bridge1483
  6. Create the primary IP interface by assigning an IP address and mask to the bridged Ethernet interface (or make it unnumbered).
    host1(config-subif)#ip address 192.168.2.20 255.255.255.0
  7. Configure the primary IP interface to enable dynamic creation of subscriber interfaces.
    host1(config-subif)#ip auto-configure ip-subscriber
  8. (Optional) Specify the source address of traffic that is destined for the primary IP interface.
    host1(config-subif)#ip source-prefix 192.168.2.20 255.255.255.0

Figure 24 shows the interface stack built for this configuration.

Figure 24: IP over Bridged Ethernet over ATM Dynamic Subscriber Interface Configuration

Image g013455.gif

Configuring Dynamic Subscriber Interfaces over GRE Tunnels

To configure a dynamic subscriber interface in an GRE tunnel configuration by using packet detection, perform the following steps:

  1. Create a GRE tunnel interface.

    For instructions, see the Configuration Tasks section in JUNOSe IP Services Configuration Guide .

  2. Create the primary IP interface by assigning an IP address and mask to the bridged Ethernet interface (or make it unnumbered).
    host1(config-subif)#ip address 192.168.2.20 255.255.255.0
  3. Configure the packet detect feature and specify that IP automatically detect packets that do not match any entries in the demultiplexer table.
    host1(config-if)#ip auto-detect ip-subscriber
  4. Configure the primary IP interface to enable dynamic creation of subscriber interfaces.
    host1(config-subif)#ip auto-configure ip-subscriber
  5. (Optional) Specify the IP inactivity timer.
    host1(config-subif)#ip inactivity-timer 100
  6. (Optional) Specify the source address of traffic that is destined for the primary IP interface.
    host1(config-subif)#ip source-prefix 192.168.2.1 255.255.255.0

Figure 25 shows the interface stack built for this configuration.

Figure 25: GRE Tunnel Dynamic Subscriber Interface Configuration

Image g013299.gif

Dynamic Subscriber Interface Configuration Example

The procedure in this section shows how to configure dynamic subscriber interfaces by using the same loopback interface referenced by multiple unnumbered IP interfaces. Instead of assigning a different IP address to each physical interface, this example assigns an IP address to a loopback interface (loopback 0). Each physical interface is then configured as an unnumbered IP interface, referencing the same loopback interface. This example uses a DHCP local server.

This approach has the following benefits:

To configure dynamic subscriber interfaces, perform the following steps:

  1. Enable the DHCP local server for standalone mode.
    host1(config)#service dhcp-local standalone
  2. Access DHCP Local Pool Configuration mode for the local address pool.
    host1(config)#ip dhcp-local pool ispWestford
  3. Specify the enduring IP addresses that the DHCP local server can assign from the local address pool.
    host1(config-dhcp-local)#network 10.20.0.0 255.255.192.0
  4. Specify the router to forward traffic from the IP addresses to destinations on other subnets.
    host1(config-dhcp-local)#default-router 10.20.32.1
  5. Exit DHCP Local Pool Configuration mode.
    host1(config-dhcp-local)#exit
  6. Configure a loopback interface.
    host1(config)#interface loopback 0
  7. Assign an IP address and mask to the loopback interface.
    host1(config-if)#ip address 10.20.32.1 255.255.255.0
  8. Exit Interface Configuration mode.
    host1(config-if)#exit
  9. Specify a Fast Ethernet port.
    host1(config)#interface fastEthernet 3/0
  10. Create an unnumbered primary IP interface associated with the loopback interface configured in Steps 6 and 7.
    host1(config-if)#ip unnumbered loopback 0
  11. Configure the primary IP interface to enable dynamic creation of subscriber interfaces.
    host1(config-if)#ip auto-configure ip-subscriber
  12. Exit Interface Configuration mode.
    host1(config-if)#exit
  13. Repeat Steps 9 through 12 for each Fast Ethernet interface on which you want to configure dynamic subscriber interfaces. For example:
    host1(config)#interface fastEthernet 3/1
    host1(config-if)#ip unnumbered loopback 0
    host1(config-if)#ip auto-configure ip-subscriber
    host1(config-if)#exit
    host1(config)#interface fastEthernet 3/2
    host1(config-if)#ip unnumbered loopback 0
    host1(config-if)#ip auto-configure ip-subscriber
    host1(config-if)#exit

atm pvc

default-router

encapsulation bridge1483

encapsulation vlan

interface atm

interface fastEthernet

interface gigabitEthernet

interface tenGigabitEthernet

interface loopback

ip address

ip auto-configure ip-subscriber

ip auto-detect ip-subscriber

ip dhcp-local pool

ip inactivity-timer

ip source-prefix

ip unnumbered

ip use-framed-routes ip-subscriber

network

service dhcp-local

set dhcp relay giaddr-selects-interface

vlan id

 


[Contents] [Prev] [Next] [Index] [Report an Error]