[j-nsp] as-path filtering

Samit janasamit at wlink.com.np
Sun Jun 21 09:17:11 EDT 2009


Hi,

How to do this in junos?

Cisco config example:

ip as-path access-list 1 deny _1234$
ip as-path access-list 1 deny _5678$
ip as-path access-list 1 permit .*

router bgp 100
neighbor 192.168.0.1 remote-as 200
neighbor 192.168.0.1 des ebgp-test
neighbor 192.168.0.1 filter-list 1 in

Tried.... but not working..

protocols {
    bgp {
        group "ebgp-test" {
            type external;
            import test-in;
            peer-as 200;
            neighbor 192.168.0.1 {
            }
        }
policy-options {
    policy-statement test-in {
        term 1 {
            from as-path-group test;
            then reject;
        }
        term 2 {
            then accept;
        }
    }
    as-path-group test {
        as-path a "_1234$";
        as-path b "_5678$";
    }
}


Regards,
Samit



More information about the juniper-nsp mailing list