[j-nsp] bgp route advertisements

Fernando de Aquilino Corrêa Fernando.Correa at tivit.com.br
Wed Nov 5 14:10:19 EST 2008


Hello Mike,

You should export routes from the "direct" protocol:

policy-options {
    policy-statement EXPORT {
        from {
            protocol direct;
            route-filter 10.101.101.0/xx exact;
        }
        then accept;
    }
}


You should also apply your policy to the bgp neighbor or group:

protocols {
    bgp {
        ...
        group Cisco {
            type external;
            neighbor 10.77.1.2 {
                export EXPORT;
            }
        }
    }
}


There are many good books on JUNOS CLI and policy writing. You may want to check the Juniper Fast Track program.

Fernando

-----Original Message-----
From: juniper-nsp-bounces at puck.nether.net [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of Mike Johnson
Sent: quarta-feira, 5 de novembro de 2008 16:45
To: juniper-nsp at puck.nether.net
Subject: [j-nsp] bgp route advertisements

I need some assistance advertising routes via JUNOS, I am familiar with
Cisco CLI.
I must say JUNOS does not make sense to me, yet.

Could someone explain the basics of JUNOS CLI and how it rerlates to
routing.
It appears you configure BGP under protocols and then to advertise you
define a policy.
I am not sure why things are seperated??

Here is what I have, BGP is up but I am unable to advertise a local network?
Is there any good docs for understanding the setup an/or conversion from
Cisco?

version 8.4R1.13;
system {
    host-name Juniper2350;
    root-authentication {
        encrypted-password "$1$9B17TakA$AGlCIwfb83FgydKwZycTg0"; ##
SECRET-DATA
    }
    services {
        web-management {
            http {
                interface [ ge-0/0/0.0 ge-0/0/1.0 ge-0/0/2.0 ge-0/0/3.0 ];
            }
        }
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any any;
            authorization info;
        }
        file interactive-commands {
 interactive-commands any;
        }
    }
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {
                address 10.77.1.1/24;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 10.101.101.1/32;
            }
        }
    }
}
routing-options {
    options {
        syslog {
            level info;
        }
    }
}
protocols {
    bgp {
        log-updown;
        peer-as 100;
        local-as 101;
        group Cisco {
            type external;
            neighbor 10.77.1.2;
        }
    }
}
policy-options {
    policy-statement EXPORT {
        from {
            protocol bgp;
            interface 10.101.101.1;
        }
    }
}
harbor235 ;}
_______________________________________________
juniper-nsp mailing list juniper-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


More information about the juniper-nsp mailing list