General commands for routes advertising and reception
default-information-originate
This command enables the generation and sending of the default route, if it is registered in the routing table of the FIB, for:
- NSSA areas (route advertising) as NSSA-LSA;
- BGR IPv4/IPv6 address family.
The use of a negative form (no) of the command disables the route generation by default.
Syntax
[no] default-information-originate
Parameters
The command does not contain parameters.
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-BGP-VRF
CONFIG-OSPF-AREA
CONFIG-OSPFV3-AREA
Example
esr(config-ospf-area)# default-information-originate
description
This command changes the description of a configurable list of IP subnets or IPv6 subnets.
The use of a negative form (no) of the command removes a specified description.
Syntax
description <DESCRIPTION>
no description
Parameters
<DESCRIPTION> – IP or IPv6 subnets list description, set by the string of up to 255 characters.
Required privilege level
10
Command mode
CONFIG-PL
CONFIG-IPV6-PL
Example
esr(config-route-map-rule)# description "Drop Local NETs"
ip prefix-list
This command creates IP subnets list that will be used for further filtration of advertised and received IP routes.
The use of a negative form (no) of the command removes prefixes list.
Syntax
[no] ip prefix-list <NAME>
Parameters
<NAME> – name of a subnet list being configured, set by the string of up to 31 characters.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ip prefix-list ospf_in
ipv6 prefix-list
This command creates IPv6 subnets list that will be used for further filtration of advertised and received IP routes.
The use of a negative form (no) of the command removes prefixes list.
Syntax
[no] ipv6 prefix-list <NAME>
Parameters
<NAME> – name of a subnet list being configured, set by the string of up to 31 characters.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ipv6 prefix-list ospfv3_in
network
This command enables specified subnet advertising.
The use of a negative form (no) of the command disables specified subnet advertising.
Syntax
[no] network <ADDR/LEN>
Parameters
<ADDR/LEN> – IP subnet, set in the following format:
- BBB.CCC.DDD/EE – network IP address with prefix mask, where AAA-DDD take values of [0..255] and EE takes values of [1..32].
- X:X:X:X::X/EE – IPv6 address and mask of a subnet, where each X part takes values in hexadecimal format [0..FFFF] and EE takes values of [1..128].
Required privilege level
10
Command mode
CONFIG-RIP
CONFIG-RIPNG
CONFIG-OSPF-AREA
CONFIG-OSPFV3-AREA
CONFIG-BGP-FAMILY
CONFIG-BGP-VRF-FAMILY
Example
esr(config-bgp)# network 192.168.25.0/24
permit/deny
This command allows (permit) or forbids (deny) prefix lists.
Syntax
permit [ { object-group <OBJ-GROUP-NETWORK-NAME> | <ADDR/LEN> | <IPV6-ADDR/LEN> } ] [ { eq <LEN> | le <LEN> | ge <LEN> [ le <LEN> ] } ]
deny [ { object-group <OBJ-GROUP-NETWORK-NAME> | <ADDR/LEN > | <IPV6-ADDR/LEN> } ] [ { eq <LEN> | le <LEN> | ge <LEN> [ le <LEN> ] } ]
no { object-group <OBJ-GROUP-NETWORK-NAME> | prefix { <ADDR/LEN> | <IPV6-ADDR/LEN> } }
Parameters
<OBJ-GROUP-NETWORK-NAME> – IP/IPv6 addresses profile name, set by the string of up to 31 characters;
<ADDR> – IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];
<IPV6-ADDR> – IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF];
<LEN> – prefix length, takes values of [1..32] in prefix IP lists and [1..128] in prefix IPv6 lists;
eq – when specifying the command, the prefix length mast match the specified one;
le – when specifying the command, the prefix length mast be less than or match the specified one;
ge – when specifying the command, the prefix length mast be more than or match the specified one.
Required privilege level
10
Command mode
CONFIG-PL
CONFIG-IPV6-PL
Example
esr(config-pl)# permit static ge 24 le 28
prefix-list
This command adds subnet filtering for inbound or outbound updates.
The use of a negative form (no) of the command disables the filtration.
Syntax
prefix-list <PREFIX-LIST-NAME> { in | out }
no prefix-list { in| out }
Parameters
<PREFIX-LIST-NAME> – name of a subnet list being configured, set by the string of up to 31 characters:
in – incoming routes filtration;
out – advertised routes filtration.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR-FAMALY
CONFIG-BGP-VRF-NEIGHBOR-FAMALY
CONFIG-OSPF
CONFIG-OSPFV3
CONFIG-RIP
CONFIG-RIPNG
Example
esr(config-rip)# prefix-list rip_in in
redistribute bgp
This command enables the advertising of BGP autonomous system routes.
The use of a negative form (no) of the command disables the advertising of BGP autonomous system routes.
Syntax
redistribute bgp <AS> [ route-map <NAME> ] [ <LEVEL> ]
no redistribute bgp <AS>
Parameters
<AS> – number of the autonomous system from which routes will be advertised, may take values [1..4294967295];
<NAME> – name of the route map that will be used for advertised BGP routes filtration and modification, set by the string of up to 31 characters.
<LEVEL> — IS-IS protocol level into which routes are advertised (only relevant in CONFIG-ISIS configuration mode):
- level-1 – operate only on level 1;
- level-2-only – operate only on level 2;
Required privilege level
10
Command mode
CONFIG-BGP-FAMILY
CONFIG-BGP-VRF-FAMILY
CONFIG-OSPF
CONFIG-OSPFV3
CONFIG-ISIS
CONFIG-RIP
CONFIG-RIPNG
Example
esr(config-bgp-af)# redistribute bgp 30
esr(config-ospf)# redistribute bgp 35
esr(config-rip)# redistribute bgp 300
redistribute connected
This command enables advertising of directly connected subnets.
The use of a negative form (no) of the command disables advertising of directly connected subnets.
Syntax
redistribute connected [ route-map <NAME> ] [ <LEVEL> ]
no redistribute connected
Parameters
<NAME> – name of the route map that will be used for filtration and modification of advertised directly connected subnets, set by the string of up to 31 characters.
<LEVEL> — IS-IS protocol level into which routes are advertised (only relevant in CONFIG-ISIS configuration mode):
- level-1 – operate only on level 1;
- level-2-only – operate only on level 2;
Required privilege level
10
Command mode
CONFIG-BGP-FAMILY
CONFIG-BGP-VRF-FAMILY
CONFIG-OSPF
CONFIG-OSPFV3
CONFIG-ISIS
CONFIG-RIP
CONFIG-RIPNG
Example
esr(config-rip)# redistribute connected
redistribute ipv6 bgp
This command enables the advertising of BGP autonomous system ipv6 routes.
The use of a negative form (no) of the command disables the advertising of BGP autonomous system ipv6 routes.
Syntax
redistribute ipv6 bgp <AS> [ route-map <NAME> ] [ <LEVEL> ]
no redistribute ipv6 bgp <AS>
Parameters
<AS> – number of the autonomous system from which ipv6 routes will be advertised, may take values [1..4294967295];
<NAME> – name of the route map that will be used for advertised BGP ipv6 routes filtration and modification, set by the string of up to 31 characters.
<LEVEL> — IS-IS protocol level into which routes are advertised (only relevant in CONFIG-ISIS configuration mode):
- level-1 – operate only on level 1;
- level-2-only – operate only on level 2;
Required privilege level
10
Command mode
CONFIG-ISIS
Example
esr(config-isis)# redistribute ipv6 bgp 30 level 2
redistribute ipv6 ospf
This command enables advertising of routes from the OSPFv3 process database according to the selected conditions.
The use of a negative form (no) of the command disables the advertising of routes from the OSPFv3 process database.
Syntax
redistribute ipv6 ospf <ID> [ <ROUTE-TYPE1> ] [ <ROUTE-TYPE2> ] [ <ROUTE-TYPE3> ] [ <ROUTE-TYPE4> ] [ route-map <NAME> ] [ <LEVEL> ]
no redistribute ipv6 ospf <ID>
Parameters
<ID> – process number, takes values of [1..65535].
<ROUTE-TYPE> – types of routes to be advertised:
- intra-area – OSPFv3 process routes advertising within a zone;
- inter-area – OSPFv3 process routes advertising between zones;
- external1 – OSPFv3 format 1 external routes advertising;
- external2 – OSPFv3 format 2 external routes advertising.
<NAME> – name of the route map that will be used for advertised OSPFv3 routes filtration and modification, set by the string of up to 31 characters.
<LEVEL> — IS-IS protocol layer into which routes are advertised:
- level-1 – operate only on level 1;
- level-2-only – operate only on level 2;
Required privilege level
10
Command mode
CONFIG-ISIS
Example
esr(config-isis)# redistribute ospf 10 external2
redistribute isis
This command enables advertising of routes from the IS-IS process database according to the selected conditions.
The use of a negative form (no) of the command disables advertising of routes from the ISIS route database.
Syntax
redistribute isis <ID> <ROUTE-TYPE> [ route-map <NAME> ]
no redistribute isis <ID>
Parameters
<ID> – process number, takes values of [1..65535].
<ROUTE-TYPE> – route type:
- level-1 – advertising the routes of the ISIS layer 1 process;
- level-2 – advertising the routes of the ISIS layer 2 process;
- inter-area – advertising the inter-area routes of the ISIS process.
<NAME> – name of the route map that will be used for advertised ISIS routes filtration and modification, set by the string of up to 31 characters.
Required privilege level
10
Command mode
CONFIG-BGP-FAMILY
CONFIG-BGP-VRF-FAMILY
CONFIG-OSPF
CONFIG-OSPFV3
CONFIG-ISIS
CONFIG-RIP
CONFIG-RIPNG
Example
esr(config-bgp-af)# redistribute isis 1 level-1 level-2
redistribute ospf
This command enables advertising of routes from the OSPF process database according to the selected conditions.
The use of a negative form (no) of the command disables the advertising of routes from the OSPF process database.
Syntax
redistribute ospf <ID> <ROUTE-TYPE1> [ <ROUTE-TYPE2> ] [ <ROUTE-TYPE3> ] [ <ROUTE-TYPE4> ] [ route-map <NAME> ] [ <LEVEL> ]
no redistribute ospf <ID>
Parameters
<ID> – process number, takes values of [1..65535].
<ROUTE-TYPE> – types of routes to be advertised:
- intra-area – OSPF process routes advertising within a zone;
- inter-area – OSPF process routes advertising between zones;
- external1 – OSPF format 1 external routes advertising;
- external2 – OSPF format 2 external routes advertising;
<NAME> – name of the route map that will be used for advertised OSFP routes filtration and modification, set by the string of up to 31 characters.
<LEVEL> — IS-IS protocol level into which routes are advertised (only relevant in CONFIG-ISIS configuration mode):
- level-1 – operate only on level 1;
- level-2-only – operate only on level 2;
Required privilege level
10
Command mode
CONFIG-BGP-FAMILY
CONFIG-BGP-VRF-FAMILY
CONFIG-OSPF
CONFIG-OSPFV3
CONFIG-ISIS
CONFIG-RIP
CONFIG-RIPNG
Example
esr(config-bgp-af)# redistribute ospf 10 external2
redistribute rip
This command enables advertising of routes from the RIP route database.
The use of a negative form (no) of the command disables advertising of routes from the RIP route database.
Syntax
redistribute rip [ route-map <NAME> ] [ <LEVEL> ]
no redistribute rip
Parameters
<NAME> – name of the route map that will be used for advertised RIP routes filtration and modification, set by the string of up to 31 characters.
<LEVEL> — IS-IS protocol level into which routes are advertised (only relevant in CONFIG-ISIS configuration mode):
- level-1 – operate only on level 1;
- level-2-only – operate only on level 2;
Required privilege level
10
Command mode
CONFIG-BGP-FAMILY
CONFIG-BGP-VRF-FAMILY
CONFIG-OSPF
CONFIG-OSPFV3
CONFIG-ISIS
Example
esr(config-bgp)# redistribute rip
redistribute static
This command enables static routes advertising.
The use of a negative form (no) of the command disables static routes advertising.
Syntax
redistribute static [ route-map <NAME> ] [ <LEVEL> ]
no redistribute static
Parameters
<NAME> – name of the route map that will be used for advertised static routes filtration and modification, set by the string of up to 31 characters.
<LEVEL> — IS-IS protocol level into which routes are advertised (only relevant in CONFIG-ISIS configuration mode):
- level-1 – operate only on level 1;
- level-2-only – operate only on level 2;
Required privilege level
10
Command mode
CONFIG-BGP-FAMILY
CONFIG-BGP-VRF-FAMILY
CONFIG-OSPF
CONFIG-OSPFV3
CONFIG-ISIS
CONFIG-RIP
CONFIG-RIPNG
Example
esr(config-bgp)# redistribute static