set protocols bgp neighbor remote-as


The set protocols bgp neighbor remote-as command creates a peer, initiates the connection to the peer, and adds an entry to the BGP neighbor table. Specifies a neighbor with an autonomous system (AS) number that identifies the neighbor as internal to the local autonomous system. Otherwise, the neighbor is considered as external. By default, neighbors that are defined using this command, exchange only unicast address prefixes.
The delete protocols  bgp neighbor remote-as command disables the peer session and deletes the peer information.


Command Syntax

set protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group> | interface <interface>} remote-as {<as-number>|external|internal}

delete protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group> | interface <interface>} remote-as {<as-number>|external|internal}


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

neighbor <ip>Specifies the IPv4/IPv6 address of a peer.
peer-group <peer-group>Specifies a peer group.
interface <interface>Specifies an L3 interface for BGP connection. The value could be a VLAN interface name, loopback interface name, routed interface or sub-interface name.
remote-as {<as-number>|external|internal}

<as-number>: Specifies a 4-byte AS number in asplain format (z), or asdot format (x.y), where z is a number from 1 to 4294967295 and x and y are 16-bit numbers in the range 0 to 65535.

external: Create a peer as you would when you specify an ASN, except that if the peers ASN is the same as mine as specified under this command the connection will be denied.

internal: Create a peer as you would when you specify an ASN, except that if the peers ASN is different than mine as specified under tis command the connection will be denied.


Example
• This example specifies a neighbor with an autonomous system (AS) number.

admin@XorPlus# set protocols bgp neighbor 10.10.0.1 remote-as 100
admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.