CANOGA PERKINS 9175 Configuration Guide User Manual

Page 118

Advertising
background image

CanogaOS Configuration Guide

18-7

18.3.3 Router

B

DUT#configure terminal

Enter the Configure mode.

DUT(config)#interface eth-0-13

Specify the interface (eth-0-13)to be configured and enter the
Interface mode.

DUT (config-if)#no shutdown

Enable the interface.

DUT(config-if) # no switchport

Configure on physical port only, change this port to Layer3
interface.

DUT(config-if) # ip address 1.1.1.2/24

Configure IP address to 1.1.1.2/24.

DUT(config-if)#exit Exit

the Interface mode and enter the Configure mode.

DUT(config)#interface loopback 0

Specify the interface (loopback 0)to be configured and enter
the Interface mode.

DUT(config-if) # ip address 11.11.11.11/32

Configure IP address to 11.11.11.11/32.

DUT(config-if)#exit Exit

the Interface mode and enter the Configure mode.

DUT(config)# ip route 10.10.10.10/32 1.1.1.1

Add a static route 10.10.10.10/32 with nexthop 1.1.1.1

DUT(config)#router bgp 100

Creat bgp 100 and enter the router mode

DUT(config-router)#bgp router-id 11.11.11.11

Configure the bgp router-id

DUT(config-router)#neighbor 10.10.10.10
remote-as 100

Configure the ibgp neighbor with as 100

DUT(config-router)#neighbor 10.10.10.10
update-source loopback 0

Configure the loopback 0 to be the update-source interface

DUT(config-router)#redistribute connected

Redistribute the connect route into bgp

DUT(config-router)#exit

Exit the router mode and enter the Configure mode.

18.3.4 Experiment

Results

Switch A output

DUT#show ip bgp neighbors
BGP neighbor is 11.11.11.11, remote AS 100, local AS 100, internal link
BGP version 4, remote router ID 11.11.11.11
BGP state = Established, up for 00:10:52
Last read 00:10:52, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Received 14 messages, 0 notifications, 0 in queue
Sent 18 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
Update source is loopback0

Advertising