RMU VLabNet 7-
Trouble-Shooting Page
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no
vm-vjhst0:~# ps -A
PID TTY TIME CMD
…
1334 ?
1697 ?
2108 ?
20670 ?
20674 ttyp0
20679 ttyp0
! Configuration
file model for VM 1mm in AS <asnumber>
!
!
hostname bgpd
password #####
enable password
#####
!
! <iR0> =
substitute your own vm/router number in your iBGP list
!
router bgp <asnumber>
bgp router-id
10.10.10.<iR0>
network 10.10.<iR0>.0/29
!
! internal mesh –
iBGP – same AS – <iR1>-<iR3> = substitute
internal peer vm numbers
! (from your iBGP neighbor list) x.y.z. = our
usual first 3 octets
!
neighbor x.y.z.<iR1> remote-as 64502
neighbor x.y.z.<iR2> remote-as 64502
neighbor x.y.z.<iR3> remote-as 64502
!
! external
peering – eBGP – other AS – <eR1> = external peer
vm number
! (from your eBGP neighbor list)
!
neighbor x.y.z.<eR1> remote-as 64501
!
! prefix-list -
<eR1> = substitute external peer vm/router
(from your eBGP neighbor list)
neighbor x.y.z.<eR1>
prefix-list allowed-in in
!
ip prefix-list allowed-in seq 5 deny 10.10.<eR1>.0/29
ip prefix-list allowed-in seq 10 permit any
!
! logging
!
log syslog
log file /var/log/quagga/bgpd.log
log stdout
!
line vty
!
Example
‘show run’:
In
the
vm-vjhst0:~# telnet localhost 2605
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Hello, this is Quagga (version 0.99.5).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Password: #####
bgpd> enable
Password: #####
bgpd# show run
Current configuration:
!
hostname bgpd
password #####
enable password #####
log file /var/log/quagga/bgpd.log
log stdout
log syslog
!
router bgp
64505
bgp router-id
x.y.z.125
bgp log-neighbor-changes
bgp network import-check
network 10.10.125.0/29
redistribute
connected
neighbor x.y.z.107
remote-as 64502
neighbor x.y.z.107 prefix-list allowed-in in
!
ip prefix-list allowed-in seq 5 deny 10.10.107.0/29
ip prefix-list allowed-in seq 10 permit any
!
line vty
!
end
Notes (for a router in AS 64505):
Password: #####
bgpd>
enable
Password: #####
bgpd#
config t [Note
Prompt changes from
bgpd> to bgpd#]
bgpd(config)#
bgpd(config)# router bgp 64505
bgpd(config-router)# redistribute connected
bgpd(config-router)#
Please note that the commands redistribute
connected, bgp log-neighbor-changes, and bgp
network import-check
were not in the configuration file, they
were entered as commands through the router. Show run does not show the iBGP mesh
neighbors, just the eBGP peerings.
Comments in the configuration file are not reproduced by show run.
If you make an error in your configuration file, you
will get a message like (for example):
vm-dsmst9:~# /usr/lib/quagga/bgpd -d
There is no such command.
Error occured during reading below line.
<whatever the line says.>
Try deleting or editing the line given.
If you make a mistake in the router identifying your
AS, it will not be accepted:
bgpd(config)#
router bgp 62603
Simply reenter the command using the correct AS
number.
Once you have edited (and modified) your configuration
file, it is necessary to shut
COMMAND: usr/lib/quagga/bgpd -d
vm-vjhst0:~# netstat -an
Active Internet connections
(servers and established)
Proto Recv-Q
Send-Q Local Address Foreign
Address State
tcp 0
0 0.0.0.0:2601 0.0.0.0:* LISTEN
tcp 0
0 0.0.0.0:2605 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:179 0.0.0.0:* LISTEN
tcp 0
0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0
0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 284
x.y.z.125:22
71.182.227.207:3136
ESTABLISHED
tcp 0
0 x.y.z.125:179 x.y.z.107:3952 ESTABLISHED
2007/12/09 19:15:33
2007/12/09 19:15:44
[Indications of resets, problems with peer communications.]
Thanks to students in
m, n = student domain number {nÎN | ((n ≥ 101) Ù (n ≤ 126))}
x.y.z.
= first three octets of assigned routable network addresses for
Valerie J. H. Powell, RMU C&IS; Randall S. Johnson, RMU IT Technical Services
© 2006 by
Update: 2010-11-17