|
发表于 2011-2-19 21:49:38
|
显示全部楼层
我现在有的地方都是这样做的,每个vlan一个pppoe server,模板都是使用的一样的!贴下配置
/interface vlan
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan1 \
use-service-tag=no vlan-id=1
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan2 \
use-service-tag=no vlan-id=2
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan3 \
use-service-tag=no vlan-id=3
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan4 \
use-service-tag=no vlan-id=4
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan5 \
use-service-tag=no vlan-id=5
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan6 \
use-service-tag=no vlan-id=6
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan7 \
use-service-tag=no vlan-id=7
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan8 \
use-service-tag=no vlan-id=8
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan9 \
use-service-tag=no vlan-id=9
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan10 \
use-service-tag=no vlan-id=10
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan11 \
use-service-tag=no vlan-id=11
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan12 \
use-service-tag=no vlan-id=12
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan13 \
use-service-tag=no vlan-id=13
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan14 \
use-service-tag=no vlan-id=14
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan15 \
use-service-tag=no vlan-id=15
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan16 \
use-service-tag=no vlan-id=16
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan17 \
use-service-tag=no vlan-id=17
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan18 \
use-service-tag=no vlan-id=18
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan19 \
use-service-tag=no vlan-id=19
add arp=enabled comment="" disabled=no interface=lan mtu=1500
name=vlan20 \
use-service-tag=no vlan-id=20
/ip pool
add name=pppoe ranges=10.92.0.1-10.92.100.188
/ppp profile
set default change-tcp-mss=default comment="" name=default only-
one=default \
use-compression=default use-encryption=default use-vj-
compression=default
add change-tcp-mss=default comment="" dns-server=\
202.96.128.166,202.96.134.133 local-address=pppoe name=pppoe
only-one=\
default remote-address=pppoe use-compression=default use-
encryption=\
default use-vj-compression=default
add change-tcp-mss=default comment="" dns-server=202.96.128.166 \
local-address=pppoe name=manage only-one=default rate-limit=\
"200000/2000000 250000/2500000 200000/2000000" remote-
address=pppoe \
use-compression=default use-encryption=default use-vj-
compression=default
set default-encryption change-tcp-mss=yes comment="" name=default-
encryption \
only-one=default use-compression=default use-encryption=yes \
use-vj-compression=default
/interface pppoe-server server
add authentication=pap,chap default-profile=pppoe disabled=no
interface=lan \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=yes service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan1 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan2 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan3 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan4 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan5 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan6 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan7 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan8 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=vlan9 \
keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0
mrru=\
disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan10 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan11 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan12 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan13 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan14 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan15 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan16 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan17 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan18 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan19 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
add authentication=pap,chap default-profile=pppoe disabled=no
interface=\
vlan20 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-
sessions=0 \
mrru=disabled one-session-per-host=no service-name=""
/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 default-profile=pppoe
enabled=yes \
keepalive-timeout=30 max-mru=1460 max-mtu=1460 mrru=disabled |
评分
-
查看全部评分
|