<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.2.3">
</HEAD>
<BODY>
Here is my config file:<BR>
<BR>
log syslog all;<BR>
<BR>
router id 91.aaa.aaa.1;<BR>
<BR>
protocol device {<BR>
scan time 15;<BR>
}<BR>
<BR>
protocol kernel {<BR>
export all;<BR>
scan time 15;<BR>
}<BR>
<BR>
protocol static {<BR>
route 91.aaa.aaa.0/24 reject;<BR>
route 91.kkk.kkk.0/22 reject;<BR>
}<BR>
<BR>
filter bgp_out<BR>
{<BR>
if net = 91.aaa.aaa.0/24 then accept;<BR>
else reject;<BR>
}<BR>
<BR>
protocol bgp bgp_bdi {<BR>
description "BDI";<BR>
import all;<BR>
local as 57zzz;<BR>
neighbor 83.bbb.bbb.21 as 12nnn;<BR>
source address 83.bbb.bbb.22;<BR>
export filter {<BR>
if source = RTS_STATIC then {<BR>
bgp_path.prepend(57zzz);<BR>
accept;<BR>
}<BR>
reject;<BR>
};<BR>
}<BR>
<BR>
protocol bgp bgp_vop {<BR>
description "Vop";<BR>
import all;<BR>
export filter {<BR>
if source = RTS_STATIC then {<BR>
accept;<BR>
}<BR>
reject;<BR>
};<BR>
local as 57zzz;<BR>
neighbor 109.xxx.xxx.77 as 50yyy;<BR>
source address 109.xxx.xxx.78;<BR>
default bgp_local_pref 200;<BR>
}<BR>
<BR>
Now I want add second ASN, which must communicate with 57zzz.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<B><FONT SIZE="2">Miłosz</FONT></B>
</TD>
</TR>
</TABLE>
Dnia 2012-03-24, sob o godzinie 15:49 +0400, Oleg pisze:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Sat, Mar 24, 2012 at 09:00:34AM +0100, Mi??osz Oller wrote:
> Hi
Hi.
> How can I run two asn on one router?
>
> Example:
>
> ISP1
> |
> ---------------
> | AS1 - AS2 |
> ---------------
> |
> ISP2
>
> ISP1 is connected to AS1, ISP2 is connected to AS2. How can I configure
> connection AS1-AS2 with bgp protocol on localhost (neighbor ip and
> source address)?
What about local option of bgp protocol?
<A HREF="http://bird.network.cz/?get_doc&f=bird-6.html#ss6.1">http://bird.network.cz/?get_doc&f=bird-6.html#ss6.1</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>