interface ip
Copyright © 2010, Juniper Networks, Inc.
b.
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
c.
To fully configure the shared interface, assign an address or make it unnumbered.
host1:vra(config-if)#ip unnumbered loopback 0
d.
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
Create a static route that sends traffic for destination address 10.10.3.0 to subscriber
3.
interface IP1.
host1:vra(config)#ip route 10.10.3.0 255.255.255.0 ip ip1
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
Create a static route that sends traffic for destination address 10.10.4.0 to subscriber
5.
interface IP2.
host1:vrb(config)#ip route 10.10.4.0 255.255.255.0 ip ip2
Specify that DHCP relay does not install host routes—this avoids a conflict that can
6.
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" on page 483.
Use to create an IP interface to share a layer 2 interface.
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.
Example
host1(config)#interface ip si0
Chapter 25: Configuring Subscriber Interfaces
601