You can create multiple instances of BGP, IS-IS, OSPF, OSPFv3, RIP, and static routes. For information about how to configure a virtual switch, see Configuring a Virtual Switch.
You can include the statements at the following hierarchy levels:
Each routing instance consist of the following:
Each routing instance has a unique name and a corresponding IP unicast table. For example, if you configure a routing instance with the name my-instance, its corresponding IP unicast table is my-instance.inet.0. All routes for my-instance are installed into my-instance.inet.0.
Configure global routing options and protocols for the default instance by including statements.
For a list of hierarchy levels at which you can include these statements, see the statement summary sections for these statements.
Routes are installed into the default routing instance inet.0 by default, unless a routing instance is specified.
For details about specifying interfaces, see the JUNOS Network Interfaces Configuration Guide.
To configure a routing instance, include the following statements:
- routing-instances {
-
-
routing-instance-name {
-
interface interface-name;
-
instance-type (forwarding | layer2-control
| l2vpn | no-forwarding | virtual-router | virtual-switch | vpls |
vrf);
-
no-vrf-advertise;
-
route-distinguisher (as-number:number | ip-address:number);
-
vrf-import [ policy-names ];
-
vrf-export [ policy-names ];
-
vrf-table-label;
-
- protocols {
-
- bgp {
- ... bgp-configuration ...
- }
-
- isis {
-
isis-configuration;
- }
-
- l2vpn {
-
l2vpn-configuration;
- }
-
- ldp {
- ... ldp-configuration ...
- }
-
- msdp {
-
msdp-configuration;
- }
-
- ospf {
-
domain-id domain-id;
-
domain-vpn-tag number;
-
route-type-community (iana
| vendor);
-
ospf-configuration;
- }
-
- ospf3 {
-
domain-id domain-id;
-
domain-vpn-tag number;
-
route-type-community (iana
| vendor);
-
ospf3-configuration;
- }
-
- pim {
-
pim-configuration;
- }
-
- rip {
-
rip-configuration;
- }
-
- ripng {
-
ripng-configuration;
- }
-
- vpls {
-
vpls-configuration;
- }
- }
- }
- }