neighbor peer-type

This command specifies the peer type of the peer group.

Syntax

neighbor {ip-prefix/length | groupID} peer-type {ibgp | ebgp | ebgp-confed}
no neighbor {ip-prefix/length | groupID} peer-type {ibgp | ebgp | ebgp-confed}

Parameters

ip-prefix/length An IPv4 or IPv6 prefix and length.
groupID Specifies a BGP peer group name as a string of characters. If an invalid IP address is specified (for example, 256.1.1.1), it will be read as a group name.
ibgp Specifies a peer group peer type as internal BGP.
ebgp Specifies a peer group peer type as external BGP.
ebgp-confed Specifies a peer group peer type as an external BGP confederation.

Defaults

None.

Mode

BGP Router Configuration.

Usage

This command applies to peer groups. The default peer type is IBGP.

The no neighbor peer-type command resets the peer type to the default value of IBGP for this neighbor.

Example

The following example configures the peer type for neighbors in prefix 10.10.25.1/24 as EBGP:

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 159.1.1.9
System(su-config-bgp)->neighbor 10.10.25.1/24 peer-type ebgp
System(su-config-bgp)->