Enabling BGP4 on the device
When you enable BGP4 on the device, BGP4 is automatically activated. To enable BGP4 on the device, enter the following commands.
device# configure terminal
device(config)# router bgp
BGP4: Please configure 'local-as' parameter in order to enable BGP4.
device(config-bgp-router)# local-as 10
device(config-bgp-router)# neighbor 10.157.23.99 remote-as 100
device(config-bgp-router)# write memory
Changing the device ID
The OSPF and BGP4 protocols use device IDs to identify devices that are running the protocols. A device ID is a valid, unique IP
address and sometimes is an IP address
congured on the device. The device ID cannot be an IP address in use by another device.
By default, the device ID on a Brocade device is one of the following:
• If the device has loopback interfaces, the default device ID is the IP address on the lowest numbered loopback interface
congured on the Brocade device. For example, if you congure loopback interfaces 1, 2, and 3 as follows, the default device
ID is 10.9.9.9/24:
– Loopback interface 1, 10.9.9.9/24
– Loopback interface 2, 10.4.4.4/24
– Loopback interface 3, 10.1.1.1/24
• If the device does not have any loopback interfaces, the default device ID is the lowest numbered IP interface address
congured on the device.
NOTE
Brocade devices use the same device ID for both OSPF and BGP4. If the device is already congured for OSPF, you may want
to use the device ID already assigned to the device rather than set a new one. To display the current device ID, enter the show ip
command at any CLI level.
To change the device ID, enter a command such as the following.
device(config)# ip router-id 10.157.22.26
Syntax: [no] ip router-id ip-addr
The ip-addr can be any valid, unique IP address.
NOTE
You can specify an IP address used for an interface on the Brocade device, but do not specify an IP address that is being used
by another device.
Setting the local AS number
The local autonomous system number (ASN)
identies the AS in which the Brocade BGP4 device resides.
To set the local AS number, enter commands such as the following.
device(config)# router bgp
BGP4: Please configure 'local-as' parameter in order to enable BGP4.
device(config-bgp)# local-as 10
device(config-bgp)# write memory
Syntax: [no] local-as num
Basic conguration tasks required for BGP4
FastIron Ethernet Switch Layer 3 Routing
53-1003627-04 365