OcNOS-RON-6.3.1 : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : neighbor local-as
neighbor local-as
Use this command to specify an AS (autonomous system) number to use with BGP neighbor.
Use the no parameter with this command to disable this command.
Command Syntax
neighbor (A.B.C.D|X:X::X:X|WORD) local-as <1-4294967295>
no neighbor (A.B.C.D|X:X::X:X|WORD) local-as <1-4294967295>
For BGP unnumbered mode:
neighbor WORD local-as <1-4294967295>
no neighbor WORD local-as <1-4294967295>
Parameters
A.B.C.D
Address of the BGP neighbor in an IPv4 format
X:X::X:X
Address of the BGP neighbor in an IPv6 format
WORD
Name of a BGP peer group created with the neighbor WORD peer-group command. When you specify this parameter, the command applies to all peers in the group.
<1-4294967295>
 
Neighbor’s AS number when extended capabilities are configured
Note: The AS number 23456 is a reserved 2-byte AS number. An old BGP speaker (2-byte implementation) should be configured with 23456 as its remote AS number while peering with a non-mappable new BGP speaker (4-byte implementation).
Default
By default, local as is disabled
Command Mode
Router mode and BGP unnumbered mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#router bgp 11
(config-router)#neighbor 10.10.0.34 local-as 12345
 
For unnumbered peer below configuration is given in BGP unnumbered-mode.
(config)#router bgp 100
(config-router)#bgp unnumbered-mode
(config-router-unnum)#neighbor eth1 local-as 300
Last modified date: 07-13-2023