一次性设置PPPoE服务的一个脚本
#设置PPPoE服务地址池/ ip pool add name=PPPoE_Pool ranges=172.16.16.0/22
#允许PPPoE服务地址池Nat
/ ip firewall nat add chain=srcnat src-address=172.16.16.0/22 action=masquerade
#设置PPPoE服务
/interface pppoe-server server add service-name=PPPoE_S1 interface=LAN one-session-per-host=yes disabled=no
#设置PPPoE接入策略 (注意:务必将以下DNS地址改成您当地的DNS地址)
#限速下载1Mbps/上传256Kbps
/ ppp profile add name="ADSL_1M" local-address=172.16.20.254 remote-address=PPPoE_Pool use-compression=yes use-vj-compression=yes use-encryption=yes change-tcp-mss=no only-one=yesrate-limit=512000/1024000 dns-server=202.99.96.68,202.99.104.68
#限速下载2Mbps/上传512Kbps
/ ppp profile add name="ADSL_2M" local-address=172.16.20.253 remote-address=PPPoE_Pool use-compression=yes use-vj-compression=yes use-encryption=yes change-tcp-mss=no only-one=yesrate-limit=1024000/2048000 dns-server=202.99.96.68,202.99.104.68
#限速下载4Mbps/上传1Mbps
/ ppp profile add name="ADSL_4M" local-address=172.16.20.252 remote-address=PPPoE_Pool use-compression=yes use-vj-compression=yes use-encryption=yes change-tcp-mss=no only-one=yesrate-limit=2048000/4096000 dns-server=202.99.96.68,202.99.104.68
#限速下载8Mbps/上传2Mbps
/ ppp profile add name="ADSL_8M" local-address=172.16.20.251 remote-address=PPPoE_Pool use-compression=yes use-vj-compression=yes use-encryption=yes change-tcp-mss=no only-one=yes rate-limit=2048000/8192000 dns-server=202.99.96.68,202.99.104.68
#限速下载512Kbps/上传128Kbps
/ ppp profile add name="ADSL_512K" local-address=172.16.20.250 remote-address=PPPoE_Pooluse-compression=yes use-vj-compression=yes use-encryption=yes change-tcp-mss=no only-one=yesrate-limit=128000/512000 dns-server=202.99.96.68,202.99.104.68
#不限速
/ ppp profile add name="ADSL_Full_Speed" local-address=172.16.20.249 remote-address=PPPoE_Pool use-compression=yes use-vj-compression=yes use-encryption=yes change-tcp-mss=no only-one=default dns-server=202.99.96.68,202.99.104.68 抢个沙发好东西顶上去 教坏小孩... 支持 不支持 不支持,不实用
页:
[1]