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

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

Image g013125.gif

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.
      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
    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
      • Dynamic
        host1:vra(config-if)#ip share-nexthop 10.1.1.2
    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
  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”.

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]