To configure routing instances, include the following statements:
- routing-instances {
-
-
routing-instance-name {
- description text;
-
forwarding-options;
-
interface interface-name;
-
instance-type (forwarding | layer2-control
| l2vpn | no-forwarding | virtual-router | virtual-switch | vpls |
vrf);
-
- bridge-domains {
-
-
bridge-domains-name {
- domain-type bridge;
- vlan-id (none | all | number);
- vlan-tags outer number inner number;
- interface interface-name;
- routing-interface routing-interface-name;
-
- bridge-options {
- mac-limit limit;
- mac-statistics;
- mac-table-size limit;
- no-mac-learning;
- static-mac mac-address;
- }
- }
- }
-
no-vrf-advertise;
-
route-distinguisher (as-number:number | ip-address:number);
-
vrf-import [ policy-names ];
-
vrf-export [ policy--names ];
-
vrf-table-label;
-
-
vrf-target {
- export community-name;
- import community-name;
- }
-
-
protocols {
-
- bgp {
- ... bgp-configuration ...
- }
-
- isis {
- ... isis-configuration ...
- }
-
- l2vpn {
- ... l2vpn-configuration ...
- }
-
- ldp {
- ... ldp-configuration ...
- }
-
- msdp {
- ... msdp-configuration ...
- }
-
- mstp {
- ... mstp-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 ...
- }
-
- rstp {
- ... rstp-configuration ...
- }
-
- vpls {
- ... vpls-configuration ...
- }
- }
-
-
routing-options {
-
- aggregate {
-
- defaults {
- ... aggregate-options ...
- }
-
- route destination-prefix {
- policy policy-name;
- ... aggregate-options ...
- }
- }
-
- auto-export {
- (disable | enable);
-
- family {
-
- inet {
-
- multicast {
- (disable | enable);
- rib-group rib-group;
- }
-
- unicast {
- (disable | enable);
- rib-group rib-group;
- }
- }
- }
-
- traceoptions {
- file filename <size size> <files number> <world-readable
| no-world-readable>;
- flag flag <flag-modifier> <disable>;
- }
- }
-
- autonomous-system autonomous-system <loops number> {
- independent-domain;
- }
- confederation confederation-autonomous-system members autonomous-system;
-
- fate-sharing {
- group group-name;
- cost value;
- from address [to address];
- }
-
- forwarding-table {
- export [ policy-names ];
- (indirect-next-hop | no-indirect-next-hop);
- }
-
- generate {
-
- defaults {
-
generate-options;
- }
-
- route destination-prefix {
- policy policy-name;
-
generate-options;
- }
- }
- instance-export [ policy-names ];
- instance-import [ policy-names ];
-
- interface-routes {
- rib-group group-name;
- }
-
- martians {
-
destination-prefix match-type <allow>;
- }
- maximum-paths path-limit <log-only
| threshold value log-interval seconds>;
- maximum-prefixes prefix-limit <log-only
| threshold value log-interval seconds>;
-
- multicast {
-
- scope scope-name {
- interface interface-name;
- prefix destination-prefix;
- }
-
- ssm-groups {
-
addresses;
- }
- }
-
- options {
- syslog (level level | upto level);
- }
-
- rib routing-table-name {
-
- aggregate {
-
- defaults {
- ... aggregate-options ...
- }
-
- route destination-prefix {
- policy policy-name;
- ... aggregate-options ...
- }
- }
-
- generate {
-
- defaults {
-
generate-options;
- }
-
- route destination-prefix {
- policy policy-name;
-
generate-options;
- }
- }
-
- martians {
-
destination-prefix match-type <allow>;
- }
-
- static {
-
- defaults {
-
static-options;
- }
- rib-group group-name;
-
- route destination-prefix {
-
- lsp-next-hop {
- metric metric;
- preference preference;
- }
-
next-hop;
-
- p2mp-lsp-next-hop {
- metric metric;
- preference preference;
- }
-
- qualified-next-hop {
- interface interface-name;
- metric metric;
- preference preference;
- }
-
static-options;
- }
- }
- }
- route-record;
- router-id address;
-
- static {
-
- defaults {
-
static-options;
- }
- rib-group group-name;
-
- route destination-prefix {
-
- lsp-next-hop {
- metric metric;
- preference preference;
- }
-
next-hop;
-
- p2mp-lsp-next-hop {
- metric metric;
- preference preference;
- }
-
- qualified-next-hop {
- interface interface-name;
- metric metric;
- preference preference;
- }
-
static-options;
- }
- }
-
- traceoptions {
- file filename <size size> <files number> <world-readable
| no-world-readable>;
- flag flag <flag-modifier> <disable>;
- }
- }
- }
- }
You can include the statements at the following hierarchy levels: