From: Darryl Munro (Darryl.Munro@xxxxxxxxxxxxxxxxxx)
Date: Sat Aug 03 2002 - 01:37:15 GMT-3
There are two formats that BGP communities can adhere to. As per RFC 1997
the first two octets are the AS and the last two octets are the
administratively defined ID giving the format AA:NN. However Cisco's default
is NN:AA. You can change the this by using the command ip bgp-community
new-format.
The reason that you are getting the "bizarre" number when you use the show
commands is that the 10:900 has been converted to decimal form.
10:900 equates to 0000000 00001010 : 00000011 10000100 which equals A0384 in
hex and this equals 656260 in decimal.
Cisco communities are displayed in decimal.
If you have access to Routing TCPIP Volume II by Doyle look at page 110 and
111 for a good explanation of this.
Hope this helps.
Cheers
-----Original Message-----
From: Hunt Lee [mailto:ciscoforme3@yahoo.com.au]
Sent: Saturday, 3 August 2002 3:34 p.m.
To: ccielab@groupstudy.com
Subject: Set community problem
Hello all,
I am trying to set BGP community attribute by using Route-map:-
R10(config)#route-map test1 permit 10
R10(config-route-map)#set community 10:900
But when I look up the Route-map by "show route-map test1", the
community value mysterically changes itself from 10:900 to a bizzard
value (656260)...
R10#sh route-map test1
route-map test1, permit, sequence 10
Match clauses:
Set clauses:
Policy routing matches: 0 packets, 0 bytes
community 656260
R10#
Also, I don't understand why the commuinty value would appear on the
line under "Policy routing matches", rather than under "Set
clauses"???
And when my routes are advertised out to the BGP neighbors, they are
seeing the same bizzard number.
R8#sh ip bgp
BGP table version is 3, local router ID is 100.1.1.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 175.10.10.0/24 100.1.1.3 0 0 200 i
*> 196.196.10.0 100.1.1.3 0 0 200 i
R8#sh ip bgp 196.196.10.0
BGP routing table entry for 196.196.10.0/24, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x208
Advertised to non peer-group peers:
100.1.1.1
200
100.1.1.3 (metric 2297856) from 100.1.1.3 (196.196.10.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 656260
R8#
N.B: I'm using IOS 12.2(10b).
Regards,
H.
http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC!
This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:48:15 GMT-3