Hi<div><br></div><div>Thanks for the input, I understand the Local-Pref issue now.</div><div><br></div><div><br></div><div>I've included more information on the other problem, if anyone could provide any thoughts, I'd really appreciate it.</div>
<div><br></div><div>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.</div>
<div><br></div><div>I'm running IRRToolSet v4.8.5 on a Fedora distribution.</div><div><br></div><div><br></div><div>Any thoughts would be very greatly appreciated. </div><div><br></div><div><br></div><div><br></div><div>
<br></div><div><br></div><div><br></div><div><br></div><div><div>[root@jorma ~]# whois -h <a href="http://127.0.0.1">127.0.0.1</a> as65001</div><div>[Querying <a href="http://127.0.0.1">127.0.0.1</a>]</div><div>[<a href="http://127.0.0.1">127.0.0.1</a>]</div>
<div>aut-num:    AS65001</div><div>as-name:    TEST-1</div><div>descr:      Test-1</div><div>import:     from AS65002  action pref = 2; accept {<a href="http://192.168.1.1/32">192.168.1.1/32</a>}</div><div>import:     from AS65002  action pref = 1; accept {<a href="http://192.168.2.1/32">192.168.2.1/32</a>}</div>
<div>export:     to AS65002   announce {<a href="http://192.168.3.0/24">192.168.3.0/24</a>}</div><div>admin-c:    test-admin</div><div>tech-c:     test-tech</div><div>notify:     test-admin@localhost.localdomain</div><div>
mnt-by:     MAINT-TEST</div><div>changed:    <a href="mailto:test@test.com">test@test.com</a> 20080102</div><div>source:     TEST</div><div>[root@jorma ~]# whois -h <a href="http://127.0.0.1">127.0.0.1</a> as65002</div><div>
[Querying <a href="http://127.0.0.1">127.0.0.1</a>]</div><div>[<a href="http://127.0.0.1">127.0.0.1</a>]</div><div>aut-num:    AS65002</div><div>as-name:    TEST-2</div><div>descr:      Test-2</div><div>import:     from AS65001   accept ANY;</div>
<div>export:     to AS65001   announce {<a href="http://192.168.1.1/32">192.168.1.1/32</a>, <a href="http://192.168.1.2/32">192.168.1.2/32</a>, <a href="http://192.168.1.3/32">192.168.1.3/32</a>, <a href="http://192.168.2.1/32">192.168.2.1/32</a>, <a href="http://192.168.2.2/32">192.168.2.2/32</a>, <a href="http://192.168.2.3/32">192.168.2.3/32</a>}</div>
<div>admin-c:    test-admin</div><div>tech-c:     test-tech</div><div>notify:     test-admin@localhost.localdomain</div><div>mnt-by:     MAINT-TEST</div><div>changed:    <a href="mailto:test@test.com">test@test.com</a> 20080102</div>
<div>source:     TEST</div><div>[root@jorma ~]#</div><div><br></div><div><br></div><div>[root@jorma ~]#</div><div>[root@jorma ~]# RtConfig -h <a href="http://127.0.0.1">127.0.0.1</a></div><div>RtConfig> @RtConfig import AS65001 <a href="http://1.1.1.1">1.1.1.1</a> AS65002 <a href="http://2.2.2.2">2.2.2.2</a></div>
<div>Segmentation fault</div><div>[root@jorma ~]#</div><div><br></div></div><div><br></div><div><br></div><div><div>[root@jorma ~]# whois -h <a href="http://127.0.0.1">127.0.0.1</a> as65001</div><div>[Querying <a href="http://127.0.0.1">127.0.0.1</a>]</div>
<div>[<a href="http://127.0.0.1">127.0.0.1</a>]</div><div>aut-num:    AS65001</div><div>as-name:    TEST-1</div><div>descr:      Test-1</div><div>import:     from AS65002  action pref = 2; accept {<a href="http://192.168.1.1/32">192.168.1.1/32</a>}</div>
<div>import:     from AS65003  action pref = 1; accept {<a href="http://192.168.2.1/32">192.168.2.1/32</a>}</div><div>export:     to AS65002   announce {<a href="http://192.168.3.0/24">192.168.3.0/24</a>}</div><div>admin-c:    test-admin</div>
<div>tech-c:     test-tech</div><div>notify:     test-admin@localhost.localdomain</div><div>mnt-by:     MAINT-TEST</div><div>changed:    <a href="mailto:test@test.com">test@test.com</a> 20080102</div><div>source:     TEST</div>
<div>[root@jorma ~]#</div><div><br></div><div><br></div><div><br></div><div><br></div><div>[root@jorma ~]# RtConfig -h <a href="http://127.0.0.1">127.0.0.1</a></div><div>RtConfig> @RtConfig import AS65001 <a href="http://1.1.1.1">1.1.1.1</a> AS65002 <a href="http://2.2.2.2">2.2.2.2</a></div>
<div>!</div><div>no access-list 100</div><div>access-list 100 permit ip <a href="http://192.168.1.1">192.168.1.1</a>   <a href="http://0.0.0.0">0.0.0.0</a>   <a href="http://255.255.255.255">255.255.255.255</a>   <a href="http://0.0.0.0">0.0.0.0</a></div>
<div>access-list 100 deny ip <a href="http://0.0.0.0">0.0.0.0</a> <a href="http://255.255.255.255">255.255.255.255</a> <a href="http://0.0.0.0">0.0.0.0</a> <a href="http://255.255.255.255">255.255.255.255</a></div><div>!</div>
<div>no route-map MyMap_65002_1</div><div>!</div><div>route-map MyMap_65002_1 permit 1</div><div> match ip address 100</div><div> set local-preference 998</div><div>exit</div><div>!</div><div>router bgp 65001</div><div>!</div>
<div> neighbor <a href="http://2.2.2.2">2.2.2.2</a> remote-as 65002</div><div> neighbor <a href="http://2.2.2.2">2.2.2.2</a> route-map MyMap_65002_1 in</div><div>!</div><div><div>exit</div><div>RtConfig></div><div><br>
</div><div><br></div><div><br></div></div></div><div><br></div><div><br></div><div><div><br></div><div>[root@jorma ~]# RtConfig -version</div><div>RtConfig (IRRToolSet v4.8.5) root@jorma</div><div>[root@jorma ~]#</div><div>
<br></div><div><br></div><div>[root@jorma ~]# irrd -version</div><div>irrd: invalid option -- e</div><div>Usage: irrd</div><div>   [-a turn on atomic transaction mode]</div><div>   [-d <irr_directory>]</div><div>   [-f <irrd.conf file>]</div>
<div>   [-g <groupname>]</div><div>   [-l <username>]</div><div>   [-n do not daemonize]</div><div>   [-s <password>]</div><div>   [-u don't allow privileged commands]</div><div>   [-v verbose mode]</div>
<div>   [-w <irr_port>]</div><div>   [-x cancel bootstrap missing DB auto-fetch]</div><div><br></div><div>IRRd 2.3.4 [26Jan2007] compiled on May 29 2008</div><div>[root@jorma ~]#</div><div><br></div><div><br></div><div>
[root@jorma ~]#</div><div>[root@jorma ~]# cat /proc/version</div><div>Linux version 2.6.23.14-60.fc7 (<a href="mailto:mockbuild@xenbuilder2.fedora.redhat.com">mockbuild@xenbuilder2.fedora.redhat.com</a>) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)) #1 SMP Mon Jan 14 22:14:17 EST 2008</div>
<div>[root@jorma ~]#</div><div><br></div><div><br></div></div><div><br></div><div><br></div><div><br><div><br><div class="gmail_quote">On Fri, May 30, 2008 at 4:17 AM, Matthew Moyle-Croft <<a href="mailto:mmc@mmc.com.au">mmc@mmc.com.au</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">Jorma j wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
The policies seem correct, as "whois" shows the correct local-pref values.<br>
<br>
However RtConfig give a local pref of 1000 minus the value in the policy<br>
</blockquote></div>
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><br>

<br>
eg.  if you want it to be localpref of 1000 on a Cisco, use localpref=0 in whois.<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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.<br>

</blockquote></div>
Can you provide an example configuration?   We certainly do this and don't seem to have an issue.<br><font color="#888888">
<br>
MMC</font><div><div></div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Does anyone have any hints about what could be going wrong here?<br>
<br>
<br>
Thanks much<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div></div>