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


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 section 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.

Using a Destination Address to Demultiplex Traffic

The example in Figure 20 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 20: Subscriber Interfaces Using a Destination Address to Demultiplex Traffic

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

  1. Configure a primary IP interface on a supported layer 2 interface.
  1. Create a layer 2 interface.
  2. host1(config)#interface fastEthernet 3/1
    
    
    
  3. Create a primary IP interface.
  4. host1(config-if)#ip address 10.1.1.1 255.0.0.0
    
    
    
  5. Configure the primary interface to use a destination address to demultiplex traffic. (By default, a source address is used to demultiplex traffic.)
  6. host1(config-if)#ip demux-type da-prefix
    
    
    
  7. Exit Interface Configuration mode.
  8. host1(config-if)#exit
    
    
    
  1. Configure subscriber interface IP1.
  1. Create the shared IP interface.
  2. host1(config)#interface ip ip1
    
    
    
  3. Associate the shared IP interface with the layer 2 interface by using one of the following methods:
  1. To fully configure the shared interface, assign an address or make it unnumbered.
  2. host1(config-if)#ip unnumbered loopback 0
    
    
    
  3. Specify the destination addresses for the subscriber interface to use to demultiplex traffic.
  4. host1(config-if)#ip destination-prefix 10.11.0.0 255.255.0.0
    
    
    
  5. Exit Interface Configuration mode.
  6. host1(config-if)#exit
    
    
    
  1. Repeat Step 2 to configure subscriber interface IP2.
  2. 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
    

Using a Source Address to Demultiplex Traffic

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


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

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

  1. Configure a primary IP interface on a supported layer 2 interface.
  1. Create a layer 2 interface.
  2. host1(config)#interface fastEthernet 4/1
    
    
    
  3. Create a primary IP interface.
  4. host1(config-if)#ip address 10.1.1.1 255.255.255.0
    
    
    
  5. Exit Interface Configuration mode.
  6. host1(config-if)#exit
    
    
    
  1. Configure subscriber interface IP1.
  1. Create the shared IP interface.
  2. host1(config)#virtual-router vra
    
    Proceed with new virtual-router creation? [confirm] yes
    
    host1:vra(config)#interface ip ip1
    
    
    
  3. Associate the shared IP interface with the layer 2 interface by using one of the following methods:
  1. To fully configure the shared interface, assign an address or make it unnumbered.
  2. host1:vra(config-if)#ip unnumbered loopback 0
    
    
    
  3. Specify the source addresses for the subscriber interface to use to demultiplex traffic, then exit Interface Configuration mode.
  4. host1:vra(config-if)#ip source-prefix 10.10.3.0 255.255.255.0
    
    host1:vra(config-if)#exit
    
    
    
  1. Create a static route that sends traffic for destination address 10.10.3.0 to subscriber interface IP1.
  2. host1:vra(config)#ip route 10.10.3.0 255.255.255.0 ip ip1
    
    
    
  3. Repeat Step 2 to configure subscriber interface IP2.
  4. 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.
  6. host1:vrb(config)#ip route 10.10.4.0 255.255.255.0 ip ip2
    
    
    
  7. Specify that DHCP relay does not install host routes—this avoids a conflict that can causes undesirable ARP behavior.
  8. 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 Preventing DHCP Relay from Installing Host Routes by Default in Chapter 20, Configuring DHCP Relay.

interface ip

ip demux-type da-prefix

ip destination-prefix

ip share-interface

ip share-nexthop

ip source-prefix


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