JUNIPER vMX pppoe 实验1

实验拓扑:

BRAS AUTO-VLAN PPPOE TOPOLOGY.png

PC直连BRAS


实验步骤:

1.配置地址池:

root# show access  

profile none {

    authentication-order none;    这次实验没有radius认证

}

address-assignment {

    pool addtest {

        family inet {

            network 192.168.11.0/24;

            range 1 {

                low 192.168.11.10;

                high 192.168.11.250;

            }

        }

    }

}

2.配置动态pppoe配置文件:

pppoe {

    interfaces {

        pp0 {

            unit "$junos-interface-unit" {

                ppp-options {

                    pap;

                }

                pppoe-options {

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

                    server;

                }

                family inet {

                    unnumbered-address lo0.0;

                }

            }

        }

    }

}

在pp0接口下关联物理接口,并且作为pppoe的服务器端。

区别于静态配置,$junos这个变量在这里充当了占位符。

$junos-underlying-interface占位符是收到数据包的地方,比如ge-1/0/0。

$junos-interface-unit 是单元的占位符,JUNOS OS在给数据包动态分配UNIT时候自动配置


3.接口调用PPPOE的配置:

root# show interfaces

ge-0/0/0 {

    unit 0 {

        family pppoe {

            access-concentrator mx104-test;

            duplicate-protection;

            dynamic-profile pppoe;

        }

    }

}

4.PC拨号:

在MX上检查用户:

[edit]

root# run show subscribers

Interface           IP Address/VLAN ID            User Name                      LS:RI

pp0.1073741863      192.168.11.12                 1111                      default:default   





猜你喜欢

转载自blog.51cto.com/13582804/2286778