侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

JUNIPER vMX pppoe 实验1

2023-02-10 星期五 / 0 评论 / 0 点赞 / 48 阅读 / 5455 字

实验拓扑:PC直连BRAS。实验步骤:1.配置地址池:root# show access profile none { authentication-order none; 这次实验没有radius认

.

实验拓扑:

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   





.

广告 广告

评论区