# 添加ADSL1的pppoe-out帐户密码并取取消自动添加网关及DNS
/interface pppoe-client add name="pppoe-out1" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
/interface pppoe-client add name="pppoe-out2" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
/interface pppoe-client add name="pppoe-out3" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
/interface pppoe-client add name="pppoe-out4" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
/interface pppoe-client add name="pppoe-out5" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
/interface pppoe-client add name="pppoe-out6" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
/interface pppoe-client add name="pppoe-out7" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
/interface pppoe-client add name="pppoe-out8" interface="拨号网卡名" user="宽带账号" password="宽带密码" add-default-route=no disabled=no
# 激活pppoe-out拨号
/interface pppoe-client enable pppoe-out1
/interface pppoe-client enable pppoe-out2
/interface pppoe-client enable pppoe-out3
/interface pppoe-client enable pppoe-out4
/interface pppoe-client enable pppoe-out5
/interface pppoe-client enable pppoe-out6
/interface pppoe-client enable pppoe-out7
/interface pppoe-client enable pppoe-out8
# 添加本地ip地址池
/ip firewall address-list add address=192.168.0.0/24 comment="\B1\BE\B5\D8ip\B5\D8\D6\B7\B3\D8" \ disabled=no list=local
# 设置DNS缓存
/ip dns set primary-dns="DNS1 IP" secondary-dns="DNS2 IP" allow-remote-requests=yes
# 设置MSS值为1440
/ip firewall mangle add action="change-mss" chain="forward" comment="change-mss" disabled=no new-mss="1440" protocol="tcp" tcp-flags="syn"
# 设置input
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载