neighbor attribute-unchanged

Use this command to advertise unchanged BGP attributes to the specified neighbor.

Use the no parameter with this command to disable this function.

For unnumbered peer IPv4 unicast mode commands are configured under v4-unnumbered-mode.

Command Syntax

Copy
neighbor (A.B.C.D|X:X::X:X|WORD) attribute-unchanged ({ as-path|next-hop|med }|)
no neighbor (A.B.C.D|X:X::X:X|WORD) attribute-unchanged (({ as-path|next-hop|med }|)

For v4-unnumbered mode:

Copy
neighbor WORD attribute-unchanged ({ as-path|next-hop|med }|)
no neighbor WORD attribute-unchanged (({ as-path|next-hop|med }|)

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.

as-path

AS path attribute

next-hop

Nexthop attribute

med

Multi-exit discriminator attribute

Default

By default, the neighbor attribute-unchanged is disabled

Command Mode

Address Family mode and v4-unnumbered mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

Copy
#configure terminal
(config)#router bgp 10
(config-router)#address-family ipv4 unicast
(config-router-af)#neighbor 10.10.0.75 attribute-unchanged as-path med
 
(config)#router bgp 100
(config-router)#address-family ipv4 unicast
(config-router-af)#bgp v4-unnumbered-mode
(config-router-v4-unnum)#OcNOS(config-router-v4-unnum)#neighbor eth1 attribute-unchanged as-path