[ZT]ADSL上网用RouterOS架设DHCP服务器

本文详细介绍了一种使用RouteOS进行网络配置的方法,包括设置PPPoE客户端、配置防火墙规则、设置带宽限制、启用UPnP服务及配置DHCP服务器等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

实例:网卡8139C连接局域网,NE2000 ISAIO300 IRQ10)连接ADSL Modem,路由器地址192.168.0.1,接入宽带ADSL(下载2m上传512K),网内一PC地址192.168.0.8(限制下载256K上传64K),开启Upnp,开启DHCP服务。

 

RouteOS安装好后设置8139C地址为192.168.0.1,然后用winbox设置。

 

1.Drivers---“+”---NE2000 IO=300 IRQ=5

2.Interfaces---点灰色的NE2000网卡---点“勾”启用

 

  PPPoe:

3.Interfaces---“+”---PPPoe Client---

  name=ADSL MTU=1492 MRU=1492 Interface=NE2000 Service=ADSL User=xxxxxxxx Password=xxxxxxxx UsePeerDns=yes

 在查看status页中查看ADSL有没有连上

4.IP---Firewall---Source NAT---"+"

  Action=masquerade

5.IP---Firewall---Mangle---"+"

  Protocol=TCP TcpOptions=sync Actions accept=TCP MSS=1448

  DNS cache:

6.IP---DNS cache Settings

  PrimaryDnsServer=202.96.209.6 Enabled=yes

  DHCP Server:

7.IP---pool---"+"

  name=123 Addresser=192.168.0.2-192.168.0.99

8.IP---DhcpServer---"+"

  name="" Interface=8139C Addpool=123 netmask=24 gatway=192.168.0.1  

  dnsServer=192.168.0.1

 

Upnp:

9.IP---Upnp---"+"

  Interface=8139C Type=internal

10.IP---Upnp---"+"

  Interface=ADSL Type=external Enabled=yes

11.Terminal---键入 ip upnp interface (enter)

  enable 0,1 (enter)

.. set enabled=yes (enter)

 

Queues:

12.下载带宽 IP---Simple Queues---"+"

  Name=down SrcAddress=0.0.0.0/0 DstAddress=192.168.0.8/32 terface=8139C maxlimit=256000

13.上传带宽 IP---Firewall---Mangle---"+"

  SrcAddress=192.168.0.8/32 InInterface=8139C DstAddress=0.0.0.0/0 Protocol=all Action=accept FlowMark=UP

14.Queues---QueuesTree---"+"

  Name=UP Parent=ADSL Flow=UP MaxLimit=64000

   

阅读(870) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值