[j-nsp] Convert Cisco BGP configs to Juniper (M10i)

Pete Crocker pete at petecrocker.com
Thu Mar 30 13:06:37 EST 2006


If you have access to Juniper's support site, use the I2J tool, which does
the conversion for you:

https://i2j.juniper.net/release/index.jsp

Here's the output from your config. It should be tweaked a little bit
though.

routing-options {
    autonomous-system 666;
}
protocols {
    bgp {
        log-updown;
        group Reflector {
            type external;
            peer-as 777;
            neighbor 1.2.3.4 {
                export [ bgp-redistributes bgp-policies-Reflector-1-export
];
                import bgp-policies-Reflector-1-import;
            }
        }
    }
}
policy-options {
    policy-statement bgp-policies-Reflector-1-export {
        term next-hop-self {
            then {
                next-hop self;
                next term;
            }
        }
        term explicit-default-action {
            then next policy;
        }
    }
    policy-statement bgp-policies-Reflector-1-import {
        term term-1 {
            from policy ( ! rm-MapY );
            then reject;
        }
        term explicit-default-action {
            then next policy;
        }
    }
    policy-statement bgp-redistributes {
        term direct {
            from {
                policy rm-MapX;
                protocol direct;
            }
            then accept;
        }
        term static {
            from {
                policy rm-MapX;
                protocol static;
            }
            then accept;
        }
        term from-bgp {
            from protocol bgp;
            then next policy;
        }
        term ios-implicit-deny {
            then reject;
        }
    }
    policy-statement rm-MapX {
        term ios-implicit-deny {
            then reject;
        }
    }
    policy-statement rm-MapY {
        term ios-implicit-deny {
            then reject;
        }
    }
}



> From: "Chen, Qinxue" <QChen at corp.untd.com>
> Date: Thu, 30 Mar 2006 09:58:19 -0800
> To: <juniper-nsp at puck.nether.net>
> Conversation: [j-nsp] JunOS BGP Soft Reset Alert
> Subject: Re: [j-nsp] Convert Cisco BGP configs to Juniper (M10i)
> 
> Correction: What's the corresponding config on Juniper?
> 
> -----Original Message-----
> From: juniper-nsp-bounces at puck.nether.net
> [mailto:juniper-nsp-bounces at puck.nether.net]On Behalf Of Chen, Qinxue
> Sent: Thursday, March 30, 2006 9:46 AM
> To: juniper-nsp at puck.nether.net
> Subject: [j-nsp] Convert Cisco BGP configs to Juniper (M10i)
> 
> 
> 
> Hi,
> 
> I'm new to Juniper. I have the following Cisco BGP config:
> 
> router bgp xxxx
>  no synchronization
>  bgp log-neighbor-changes
>  redistribute connected route-map MapX
>  redistribute static route-map MapX
>  neighbor Reflector peer-group
>  neighbor Reflector remote-as xxxx
>  neighbor Reflector update-source Loopback0
>  neighbor Reflector version 4
>  neighbor Reflector next-hop-self
>  neighbor Reflector send-community
>  neighbor Reflector route-map MapY in
>  neighbor Reflector maximum-prefix 300000 80 warning-only
>  neighbor a.b.c.d peer-group Reflector
> 
> 
> What's the corresponding config on Cisco?
> 
> Thanks
> 
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp
> 
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp




More information about the juniper-nsp mailing list