Redistribute – Enterasys Networks X-Pedition XSR CLI User Manual
Page 304
BGP Configuration Commands
6-108 Configuring the Border Gateway Protocol
Syntax of the “no” Form
The no form removes the network from the routing table:
no network network-number [mask network-mask]
Mode
Router configuration:
XSR(config-router)#
Example
The following example configures a network with and without the optional mask keyword. In the
optional mask statement, the network‐number represents a subnet of class B network 172.17.0.0.
A default Class C network mask is assumed for the network 192.168.1.0 in the configuration
statement without the optional parameters.
XSR(config)#router bgp 100
XSR(config-router)#network 172.17.151.0 mask 255.255.255.0
XSR(config-router)#network 192.168.1.0
redistribute
This command redistributes routes from a protocol into the BGP. Redistributed routes can be
learned from dynamic routing (OSPF, RIP), static routes, and connected routes.
Redistributed routes can have their path attributes set in BGP by the
route-map
command. By
default, redistributed static routes have their origin code set to incomplete unless otherwise
configured by
route-map
.
Syntax
redistribute {ospf | rip | static | connected} [metric metric-value | route-map
route-map-name]
Syntax of the “no” Form
The no form of this command returns to the command default:
no redistribute {ospf | rip | static | connected}
network-mask
The mask associated with the network‐number for which the BGP
process routes. It is specified when the network‐number represents a
subnet as opposed to a classful network.
ospf
OSFP routes.
rip
RIP routes.
static
Static routes.
connected
Connected routes.
metric-value
Metric for redistributed routes. Range: 0‐4294967295.
route-map-name
Route map applied to redistributed routes, ranging from 1 to 199.