1.
Select the interface.
2.
Specify the VRF to associate with the interface.
host1:vr1(config)#
interface gigabitEthernet 1/0
host1:vr1(config-if)#
ip vrf forwarding vrfA
3.
Assign an IP address to the interface because forwarding the interface from the
VR to the VRF removes the existing IP configuration from the interface.
host1:vr1:vrfA(config-if)#
ip address 10.16.2.77 255.255.255.0
To assign an interface to a VRF from inside the VRF context:
1.
Select the interface.
2.
Enter the VRF context.
host1:vr1(config)#
virtual-router :vrfA
3.
Associate the interface.
host1:vr1:vrfA(config)#
interface gigabitEthernet 1/0
In this case, you do not have to reassign an IP address to the interface because
you did not use the
ip vrf forwarding
command.
ip vrf forwarding
■
Use to assign a VRF to an interface or subinterface by forwarding the interface
from the VR to the VRF. This command also enables you to specify secondary
routing table lookup for a VRF, in the event that an initial routing table lookup
does not yield results.
■
Forwarding the interface removes the IP configuration from the interface. You
must reassign an IP address to the interface after you issue this command.
■
The
ip vrf forwarding
command changes the prompt to indicate that the CLI is
now in Interface Configuration mode within the child VRF. This condition persists
only for as long as you are configuring attributes on the given interface within
the VRF. Entering a top-level command, such as
interface
, within this VRF context
takes the CLI out of the VRF context back to the parent VR context.
■
When you issue the
ip vrf forwarding
command from within the Interface
Configuration or Subinterface Configuration mode of the parent VR, the IP address
and other attributes of the interface are deleted from the interface. You must
then reconfigure the IP attributes in the context of the VRF after issuing the
command.
■
Example
host1:foo(config-if)#
ip vrf forwarding vrfA
host1:foo:vrfA(config-if)#
ip address 10.12.4.5 255.255.255.0
or
host1:foo(config-if)#
ip vrf forwarding vrfA fallback global
Configuring BGP VPN Services
■
433
Chapter 5: Configuring BGP-MPLS Applications
Summary of Contents for BGP
Page 6: ...vi ...
Page 8: ...viii JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1 ...
Page 38: ...2 Border Gateway Protocol JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 234: ...198 Monitoring BGP JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 236: ...200 Multiprotocol Layer Switching JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 542: ...506 Monitoring BGP MPLS VPNs JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 544: ...508 Layer 2 Services Over MPLS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 610: ...574 Virtual Private LAN Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 624: ...588 VPLS References JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 680: ...644 Virtual Private Wire Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 724: ...688 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 725: ...Part 6 Index Index on page 691 Index 689 ...
Page 726: ...690 Index JUNOSe 11 1 x BGP and MPLS Configuration Guide ...