RtConfig - local-pref and multiple imports

Jorma j jorma.irr at gmail.com
Tue Jun 3 13:20:40 UTC 2008


Hi
Thanks for the input, I understand the Local-Pref issue now.


I've included more information on the other problem, if anyone could provide
any thoughts, I'd really appreciate it.

I've defined AS65001, and it imports 2 sets of routes from AS65002, and sets
a different Local-Pref for each. I've simplified the policy configuration
down to manually specifying the exact routes, to eliminate any potential
problems from using route-sets. If I run RtConfig, as shown, it gives a seg
fault. This is definitely caused by the second import statement; as shown
further down, if I change that second import statement to refer to an AS
other than AS65002, it does not give the seg fault. Also f I remove that
second import statement (did not show this below), then the seg fault also
does not happen. So it seems very clear to me that having the second import
statement for AS65002 is causing the problem.

I'm running IRRToolSet v4.8.5 on a Fedora distribution.


Any thoughts would be very greatly appreciated.







[root at jorma ~]# whois -h 127.0.0.1 as65001
[Querying 127.0.0.1]
[127.0.0.1]
aut-num:    AS65001
as-name:    TEST-1
descr:      Test-1
import:     from AS65002  action pref = 2; accept {192.168.1.1/32}
import:     from AS65002  action pref = 1; accept {192.168.2.1/32}
export:     to AS65002   announce {192.168.3.0/24}
admin-c:    test-admin
tech-c:     test-tech
notify:     test-admin at localhost.localdomain
mnt-by:     MAINT-TEST
changed:    test at test.com 20080102
source:     TEST
[root at jorma ~]# whois -h 127.0.0.1 as65002
[Querying 127.0.0.1]
[127.0.0.1]
aut-num:    AS65002
as-name:    TEST-2
descr:      Test-2
import:     from AS65001   accept ANY;
export:     to AS65001   announce {192.168.1.1/32, 192.168.1.2/32,
192.168.1.3/32, 192.168.2.1/32, 192.168.2.2/32, 192.168.2.3/32}
admin-c:    test-admin
tech-c:     test-tech
notify:     test-admin at localhost.localdomain
mnt-by:     MAINT-TEST
changed:    test at test.com 20080102
source:     TEST
[root at jorma ~]#


[root at jorma ~]#
[root at jorma ~]# RtConfig -h 127.0.0.1
RtConfig> @RtConfig import AS65001 1.1.1.1 AS65002 2.2.2.2
Segmentation fault
[root at jorma ~]#



[root at jorma ~]# whois -h 127.0.0.1 as65001
[Querying 127.0.0.1]
[127.0.0.1]
aut-num:    AS65001
as-name:    TEST-1
descr:      Test-1
import:     from AS65002  action pref = 2; accept {192.168.1.1/32}
import:     from AS65003  action pref = 1; accept {192.168.2.1/32}
export:     to AS65002   announce {192.168.3.0/24}
admin-c:    test-admin
tech-c:     test-tech
notify:     test-admin at localhost.localdomain
mnt-by:     MAINT-TEST
changed:    test at test.com 20080102
source:     TEST
[root at jorma ~]#




[root at jorma ~]# RtConfig -h 127.0.0.1
RtConfig> @RtConfig import AS65001 1.1.1.1 AS65002 2.2.2.2
!
no access-list 100
access-list 100 permit ip 192.168.1.1   0.0.0.0   255.255.255.255   0.0.0.0
access-list 100 deny ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255
!
no route-map MyMap_65002_1
!
route-map MyMap_65002_1 permit 1
 match ip address 100
 set local-preference 998
exit
!
router bgp 65001
!
 neighbor 2.2.2.2 remote-as 65002
 neighbor 2.2.2.2 route-map MyMap_65002_1 in
!
exit
RtConfig>






[root at jorma ~]# RtConfig -version
RtConfig (IRRToolSet v4.8.5) root at jorma
[root at jorma ~]#


[root at jorma ~]# irrd -version
irrd: invalid option -- e
Usage: irrd
   [-a turn on atomic transaction mode]
   [-d <irr_directory>]
   [-f <irrd.conf file>]
   [-g <groupname>]
   [-l <username>]
   [-n do not daemonize]
   [-s <password>]
   [-u don't allow privileged commands]
   [-v verbose mode]
   [-w <irr_port>]
   [-x cancel bootstrap missing DB auto-fetch]

IRRd 2.3.4 [26Jan2007] compiled on May 29 2008
[root at jorma ~]#


[root at jorma ~]#
[root at jorma ~]# cat /proc/version
Linux version 2.6.23.14-60.fc7 (mockbuild at xenbuilder2.fedora.redhat.com)
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)) #1 SMP Mon Jan 14 22:14:17
EST 2008
[root at jorma ~]#






On Fri, May 30, 2008 at 4:17 AM, Matthew Moyle-Croft <mmc at mmc.com.au> wrote:

> Jorma j wrote:
>
>>
>>
>> The policies seem correct, as "whois" shows the correct local-pref values.
>>
>> However RtConfig give a local pref of 1000 minus the value in the policy
>>
> Yes, it has a different idea to the way, for example, Cisco deal with it.
>  Unfortunately you just need to keep that in mind when you populate the
> whois db.  I guess it's important to understand that the language is
> portable across different vendor equipment.   So, just make sure your
> required values are between 0 and 1000 and set the whois db to be
> 1000-<configured value>
>
> eg.  if you want it to be localpref of 1000 on a Cisco, use localpref=0 in
> whois.
>
>>
>> Also when I have mulitple import statements, ecah specifying a different
>> route-set from the same remote AS, RtConfig only pays attention to the first
>> import statements in the IRRD, it does not provide any configs for the
>> subsequent route-sets.
>>
> Can you provide an example configuration?   We certainly do this and don't
> seem to have an issue.
>
> MMC
>
>
>> Does anyone have any hints about what could be going wrong here?
>>
>>
>> Thanks much
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/irrtoolset/attachments/20080603/bd54742c/attachment.html>


More information about the irrtoolset mailing list