找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5477|回复: 1

[pppoe] PPPOE单线安装命令行版

[复制链接]
发表于 2012-5-23 13:54:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 郑州金手指科技 于 2012-5-23 13:56 编辑

01、/sys ide set name=pppoe
02、/int pri
03、/int set 0 name=lan
04、/int set 1 name=pppoe
05、/ip addr add addr=192.168.0.1/24 int=lan
06、/int pppoe-client add user=宽带帐号 password=宽带密码 int=pppoe disabled=no
07、/ip firewall nat add chain=srcnat action=masquerade src-address=192.168.0.0/24
08、/ip dns set allow-remote-requests=yes server=202.102.224.68,202.102.227.68
09、/ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
10、/ip fir nat add chain=srcnat act=mas
11、/tool bandwidth-s set ena=no
12、/ip ser set disabled=yes www
13、/ip ser set disabled=yes ftp
14、/ip ser set disabled=yes ssh
15、/pass
16、/sy reboot
17、/system license pr

此脚本在5.X版本中测试通过.
routeros
 楼主| 发表于 2012-5-23 13:55:14 | 显示全部楼层
对于命令行我相信无需解释很多.不懂的先看下RouterOS的常用命令.
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-18 21:16 , Processed in 0.045181 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表