Hello,
I am quite new to IRRTOOLS set, so my question might be covered
somewhere else (but I haven't found answer anywhere)
I have problem with RtConfig, which generates wrong line, here is setup :
Local AS is AS15935 configured on router 194.50.100.45. I want to get
import lines for neighbour 194.50.100.1 which is in AS25192
template file :
@RtConfig set cisco_max_preference = 1000
@RtConfig set cisco_map_name = "AS%d-IMPORT-%d"
@RtConfig import AS15935 194.50.100.45 AS25192 194.50.100.1
command line :
RtConfig -h whois.ripe.net -p 43 -s RIPE -protocol ripe
-cisco_use_prefix_lists < template_file
what I get as result is :
!
no ip prefix-list pl100
ip prefix-list pl100 permit 217.31.192.0/20
ip prefix-list pl100 deny 0.0.0.0/0 le 32
!
no route-map AS25192-IMPORT-1
!
route-map AS25192-IMPORT-1 permit 1
match ip address prefix-list pl100
set local-preference 500
exit
!
router bgp 15935
!
neighbor 194.50.100.1 remote-as 15935
neighbor 194.50.100.1 route-map AS25192-IMPORT-1 in
!
exit
The problem is with line :
neighbor 194.50.100.1 remote-as 15935
which I don't mind to be there, but it is wrong, because the remote AS
is 25192, not 15935 (which is my local AS)
The version of RtConfig I am using is (downloaded binaries from
www.ripe.net) :
elite@albert:~/ripe/Examples$ RtConfig -v
RtConfig (IRRToolSet v4.8.1) katie@x9
Thank you very much for answer
best regards,
Pavel
--
Ing. Pavel Halfar
Reditel spravy site a technicke podpory
Senior Manager of Net Administration
ha-vel internet s.r.o.
ha-vel internet, voice, family, cafe...rEVOLUCE
e-mail : pavel.halfar(a)ha-vel.cz
Masarykovo namesti c. 2/2
702 00 Ostrava - Moravska Ostrava
GSM brana : +420 606 77 88 78
Tel/Fax : +420 59 62 42 526
Dohledove centrum : +420 606 77 88 82
hi
at first - I'm newbie with IRRToolsSet, so be patient with me :)
I have problem with RtConfig and generating cisco configs witch importGroup and
exportGroup (Error in template file).
My setup is folloving
- object perring-set: AS8679:PRNG-SIX
- @RtConfig exportGroup AS8679 AS8679:PRNG-SIX
It "crashes" on the ":" in the AS8679:PRNG-SIX
(as I found in the source code and debuging)
As the RtConfig generates cisco config it should write something like
neighbor AS8679:PRNG-SIX peer-group
- I don't think that this is also valid
Has anyone solution (patch) to do
- keep perring-set-name as it is
- make RtConfig parse the line (with no template error)
- generate valid cisco config
I'm using IRRToolSet-4.7.3 (latest non-ng version).The latest ng version
(IRRToolSet-4.8.1) has seqfault me (stable debian)
My solution is to write patch (if doesn't exists)
- add one more (optional) parameter to the importGroup/exportGroup line
- @RtConfig exportGroup <ASn> <peering-set-name> [config-peer-name]
- this will generate config line
- neighbor <config-peer-name> peer-group
best regards
Peter Hudec
--
Hlupi robia chyby z pracovitosti. Mudri, aby si oddychli.
position: [IP network manager]
company: [PosTel Ltd.]
address: [Borska 6, 841 04 Bratislava]
mail: [phudec(a)postel.sk] www: [http://www.postel.sk/]
cellular: [+421 905 997203] fax: [+421 2 50203198]
phone: [+421 2 50203169]