Connectivity Guide

Table Of Contents
redistribute
Redistributes connected, static, and OSPF routes in BGP.
Syntax
redistribute {connected [route-map map name] | ospf process-id | static [route-
map map name ]}
Parameters
connected — Enter to redistribute routes from physically connected interfaces.
route-map map name — (Optional) Enter the name of a congured route-map.
ospf process-id — Enter a number for the OSPF process (1 to 65535).
static — Enter to redistribute manually congured routes.
Default Disabled
Command Mode ROUTER-BGPv4-AF or ROUTER-BGPv6-AF
Usage Information Static routes are treated as incomplete routes. When you use the redistribute ospf process-id
command without other parameters, the system redistributes all OSPF internal routes, external type 1 routes, and
external type 2 routes. The no version of this command resets the value to the default.
Example
(Connected)
OS10(conf-router-bgp-102)# address-family ipv4 unicast
OS10(conf-router-bgpv4-af)# redistribute connected route-map mapbgp1
Example (Static —
IPv4)
OS10(conf-router-bgp-102)# address-family ipv4 unicast
OS10(conf-router-bgpv4-af)# redistribute static route-map mapbgp2
Example (Static —
IPv6)
OS10(conf-router-bgp-102)# address-family ipv6 unicast
OS10(conf-router-bgpv6-af)# redistribute static
Example (OSPF —
IPv4)
OS10(conf-router-bgp-102)# address-family ipv4 unicast
OS10(conf-router-bgpv4-af)# redistribute ospf 1
Example (OSPF —
IPv6)
OS10(conf-router-bgp-102)# address-family ipv6 unicast
OS10(conf-router-bgpv6-af)# redistribute ospf 1
Supported Releases 10.2.0E or later
remote-as
Adds a remote AS to the specied BGP neighbor or peer group.
Syntax
remote-as as-number
Parameters as-number — Specify AS number ranging from 1 to 65535 for 2-byte or 1 to 4294967295 for 4-byte.
Defaults None
Command Modes
CONFIG-ROUTER-NEIGHBOR
CONFIG-ROUTER-TEMPLATE
Usage Information The no version of this command removes the remote AS.
372 Layer 3