DIGITAL GIGAswitch/Router User Reference Manual
105
Basic BGP Tasks
Setting the Autonomous System Number
An autonomous system number identifies your autonomous system to other routers. To
set the GSR’s autonomous system number, enter the following command in Configure
mode.
The a
utonomous-system
<num1>
parameter sets the AS number for the router. Specify a
number from 1–65534. The
loops
<num2>
parameter controls the number of times the AS
may appear in the as-path. The default is 1.
Setting the Router ID
The router ID uniquely identifies the GSR. To set the router ID to be used by BGP, enter the
following command in Configure mode.
If you do not explicitly specify the router ID, then an ID is chosen implicitly by the GSR. A
secondary address on the loopback interface (the primary address being 127.0.0.1) is the
most preferred candidate for selection as the GSR’s router ID. If there are no secondary
addresses on the loopback interface, then the default router ID is set to the address of the
first interface that is in the up state that the GSR encounters (except the interface en0,
which is the Control Module’s interface). The address of a non point-to-point interface is
preferred over the local address of a point-to-point interface. If the router ID is implicitly
chosen to be the address of a non-loopback interface, and if that interface were to go
down, then the router ID is changed. When the router ID changes, an OSPF router has to
flush all its LSAs from the routing domain.
If you explicitly specify a router ID, then it would not change, even if all interfaces were to
go down.
Set the GSR’s autonomous system
number.
ip-router global set autonomous-system
<num1>
loops
<num2>
Set the GSR’s router ID.
ip-router global set router-id
<hostname-or-IPaddr>