Você está na página 1de 4

* Config PPPoE MX80

+ Config add vlan vo interface cu hnh PPPoE


Cu hnh auto-configure cho nhiu profile khc nhau.
viet.nb@HNI-BRAS-MX80> show configuration interfaces ae1
description ->HNI-MC01-Bu9;
flexible-vlan-tagging;
auto-configure {
stacked-vlan-ranges { # stack vlan
dynamic-profile svlan-profile {
accept pppoe;
ranges {
100-300,1-4094;
401-401,1-4094;
}
}
}
vlan-ranges { # vlan unstack
dynamic-profile vlan-profile {
accept pppoe;
ranges {
230-230;
240-244;
402-402;
400-400;
403-403;
}
}
}
remove-when-no-subscribers;
}

mtu 9000;
encapsulation flexible-ethernet-services;
aggregated-ether-options {
link-speed 1g;
lacp {
active;
}
}

viet.nb@HNI-BRAS-MX80> show configuration | display set | match ae1


set interfaces ge-1/0/0 description "[ae1]Connect HNI-MC01 gi0/0/0/13[Bu9]"
set interfaces ge-1/0/0 gigether-options 802.3ad ae1
set interfaces ge-1/0/1 description "[ae1]Connect HNI-MC01 gi0/0/0/12[Bu9]"
set interfaces ge-1/0/1 gigether-options 802.3ad ae1
set interfaces ge-1/0/2 description "[ae1]Connect HNI-MC01 gi0/0/0/15[Bu9]"
set interfaces ge-1/0/2 gigether-options 802.3ad ae1
set interfaces ge-1/0/3 description "[ae1]Connect HNI-MC01 gi0/0/0/14[Bu9]"
set interfaces ge-1/0/3 gigether-options 802.3ad ae1
set interfaces ge-1/1/0 description "[ae1]Connect HNI-MC01 gi0/0/0/0[Bu9]"
set interfaces ge-1/1/0 gigether-options 802.3ad ae1
set interfaces ge-1/1/1 description "[ae1]Connect HNI-MC01 gi0/0/0/1[Bu9]"
set interfaces ge-1/1/1 gigether-options 802.3ad ae1
set interfaces ge-1/1/2 description "[ae1]Connect HNI-MC01 gi0/0/0/2[Bu9]"
set interfaces ge-1/1/2 gigether-options 802.3ad ae1
set interfaces ge-1/1/3 description "[ae1]Connect HNI-MC01 gi0/0/0/3[Bu9]"
set interfaces ge-1/1/3 gigether-options 802.3ad ae1
set interfaces ae1 description ->HNI-MC01-Bu9
set interfaces ae1 flexible-vlan-tagging
set interfaces ae1 auto-configure stacked-vlan-ranges dynamic-profile svlan-profile
accept pppoe

set interfaces ae1 auto-configure stacked-vlan-ranges dynamic-profile svlan-profile


ranges 100-300,1-4094
set interfaces ae1 auto-configure stacked-vlan-ranges dynamic-profile svlan-profile
ranges 401-401,1-4094
set interfaces ae1 auto-configure vlan-ranges dynamic-profile vlan-profile accept
pppoe
set interfaces ae1 auto-configure vlan-ranges dynamic-profile vlan-profile ranges
230-230
set interfaces ae1 auto-configure vlan-ranges dynamic-profile vlan-profile ranges
240-244
set interfaces ae1 auto-configure vlan-ranges dynamic-profile vlan-profile ranges
402-402
set interfaces ae1 auto-configure vlan-ranges dynamic-profile vlan-profile ranges
400-400
set interfaces ae1 auto-configure vlan-ranges dynamic-profile vlan-profile ranges
403-403
set interfaces ae1 auto-configure remove-when-no-subscribers
set interfaces ae1 mtu 9000
set interfaces ae1 encapsulation flexible-ethernet-services
set interfaces ae1 aggregated-ether-options link-speed 1g
set interfaces ae1 aggregated-ether-options lacp active
+ Config dynamic-profiles vlan-profile/ svlan-profile
viet.nb@HNI-BRAS-MX80> show configuration | display set | match demux0
set dynamic-profiles vlan-profile interfaces demux0 unit "$junos-interface-unit" notraps
set dynamic-profiles vlan-profile interfaces demux0 unit "$junos-interface-unit"
vlan-id "$junos-vlan-id"
set dynamic-profiles vlan-profile interfaces demux0 unit "$junos-interface-unit"
demux-options underlying-interface "$junos-interface-ifd-name"
set dynamic-profiles vlan-profile interfaces demux0 unit "$junos-interface-unit"
family pppoe duplicate-protection
set dynamic-profiles vlan-profile interfaces demux0 unit "$junos-interface-unit"
family pppoe dynamic-profile PPPoE-Profile
set dynamic-profiles svlan-profile interfaces demux0 unit "$junos-interface-unit" notraps

set dynamic-profiles svlan-profile interfaces demux0 unit "$junos-interface-unit"


vlan-tags outer "$junos-stacked-vlan-id"
set dynamic-profiles svlan-profile interfaces demux0 unit "$junos-interface-unit"
vlan-tags inner "$junos-vlan-id"
set dynamic-profiles svlan-profile interfaces demux0 unit "$junos-interface-unit"
demux-options underlying-interface "$junos-interface-ifd-name"
set dynamic-profiles svlan-profile interfaces demux0 unit "$junos-interface-unit"
family pppoe duplicate-protection
set dynamic-profiles svlan-profile interfaces demux0 unit "$junos-interface-unit"
family pppoe dynamic-profile PPPoE-Profile

+ Config dynamic-profiles PPPoE-Profile


set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" notraps
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" pppoptions chap
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" pppoptions pap
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" pppoptions authentication pap
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" pppoptions authentication chap
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" pppoeoptions underlying-interface "$junos-underlying-interface"
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" pppoeoptions server
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit"
targeted-distribution
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit"
keepalives interval 60
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" family
inet filter input "$junos-input-filter"
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" family
inet filter output "$junos-output-filter"
set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" family
inet unnumbered-address "$junos-loopback-interface"

Você também pode gostar