[j-nsp] define name servers on pppoe dynamic profile

Mohammad masalbad at gmail.com
Wed Feb 15 02:58:51 EST 2012


Hi everyone

 

We have an mx router that will be acting as BRAS router, with the following
config.:

dynamic-profiles {

    pppoe_profile {

        routing-instances {

            "$junos-routing-instance" {

                interface "$junos-interface-name";

            }

        }

        interfaces {

            pp0 {

                unit "$junos-interface-unit" {

                    ppp-options {

                        chap;

                        pap;

                    }

                    pppoe-options {

                        underlying-interface "$junos-underlying-interface";

                        server;

                    }

                    family inet {

                        address x.x.x.x/x;

                    }

                }

            }

        }

    }

}

system {

    services {

        dhcp-local-server {

            dynamic-profile pppoe_profile;

        }

        static-subscribers {

            authentication {

                username-include {

                    domain-name xxxx;

                }

            }

        }

    }

}

interfaces {

    ge-x/x/x{

        unit 0 {

            encapsulation ppp-over-ether;

            proxy-arp;

            pppoe-underlying-options {

                dynamic-profile pppoe_profile;

            }

        }                               

    }

    ms-1/0/0 {

        unit 0 {

            family inet;

        }

    }

    lo0 {

        unit 0 {

            family inet {

                address x.x.x.x/x;

            }

        }

    }

}

access {

    group-profile pppoe_group {

        ppp {

            primary-dns x.x.x.x;

            secondary-dns x.x.x.x;

        }

    }

    profile aaa_profile {

        authentication-order radius;

        radius {

            authentication-server x.x.x.x;

            accounting-server x.x.x.x;

        }

        radius-server {                 

            x.x.x.x {

                port 1812;

                secret #####

            }

        }

        accounting {

            order radius;

            accounting-stop-on-failure;

            accounting-stop-on-access-deny;

            immediate-update;

            update-interval 10;

            statistics time;

        }

    }

    profile freeradius {

        authentication-order radius;

        radius {

            authentication-server x.x.x.x;

            accounting-server x.x.x.x;

            }

        }

        radius-server {

            x.x.x.x {

                port 1812;

                secret #####

            }

        }

        accounting {

            order radius;

            accounting-stop-on-failure;

            accounting-stop-on-access-deny;

            immediate-update;

            update-interval 10;

            statistics time;

        }

    }

    address-assignment {

        pool pppoe_pool {

            family inet {

                network x.x.x.x/x;

                range pppoe_range {

                    low x.x.x.x;

                    high x.x.x.x;

                }

                dhcp-attributes {

                    name-server {

                        x.x.x.x;  

                    }

                }

            }

        }

    }

    address-protection;

}

access-profile freeradius;

 

when we try to define a destination profile in the dynamic profile it gives
a syntax error on the destination profile

set dynamic-profiles pppoe_profile interfaces pp0 unit $junos-interface-unit
family inet unnumbered-address lo0.0 destination-profile {group-profile}

 

any ideas ???

Thank you in advance

Mohammad Salbad



More information about the juniper-nsp mailing list