找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3931|回复: 4

[基础] 有没有ROS2.9X hosspot教程.

[复制链接]
发表于 2006-11-21 11:35:59 | 显示全部楼层 |阅读模式

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

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

×
网上的都是2.8X的,看不明白.,
routeros
发表于 2006-11-21 12:09:15 | 显示全部楼层
有setup按钮,按着做就行了!
routeros
回复

使用道具 举报

 楼主| 发表于 2006-11-21 14:35:55 | 显示全部楼层
谢谢,下面选哪块网卡呀
a.JPG
routeros
回复

使用道具 举报

发表于 2006-11-21 14:41:02 | 显示全部楼层
选内网的!
routeros
回复

使用道具 举报

 楼主| 发表于 2006-11-22 09:59:07 | 显示全部楼层
可是我看这教程设的是外网
让我们来看看这个机器上有哪些网卡:

CODE  
[admin@MikroTik] > /interface print

Flags: X – disabled, D – Dynamic, R - Running
#  NAME     TYPE   MTU
0 X ether1    ether  1500
1 X ether2    ether  1500



你可以看到这个机器上有两张网卡显示,但是却是禁止的。
让我们来来给网卡指定名字,让以后看起来更方便

CODE  
[admin@MikroTik] interface> set 0 name=”hotspot”
[admin@MikroTik] interface> set 1 name=”internet”
[admin@MikroTik] interface> print

Flags: X – disabled, D – Dynamic, R - Running
#  NAME      TYPE    MTU
0 R internet    ether   1500
1 R hotspot    ether   1500




我们能根据名字更容易的查看某一张网卡的状态,让我们来给网卡指定IP地址。
设置routeros的inernet网卡的地址为192.168.1.2,设置网关为192.168.1.1,dns用你的isp给你的。我们用212.159.13.50

CODE  
[admin@MikroTik] > /ip
[admin@MikroTik] ip> address add address=192.168.1.2/24 interface=internet
[admin@MikroTik] ip> route add gateway=192.168.1.1
[admin@MikroTik] ip> dns
[admin@MikroTik] ip dns> set primary-dns=212.159.13.50
[admin@MikroTik] ip dns> set secondary-dns=212.159.11.50




启用dns缓存

CODE  
[admin@MikroTik]  ip dns> set allow-remote-requests=yes
[admin@MikroTik]  ip dns> ..



现在设置hotspot这张网卡

CODE  
[admin@MikroTik]  ip> hotspot
[admin@MikroTik]  ip hotspot> setup
Select interface on which to run HotSpot
Hotspot interface: hotspot
Enable universal client configuration?
Enable universal client: yes



这个功能是允许远程机器连接到即使他们使用完全不同的网络设置

CODE  
Local address of hotspot network gateway: 10.5.50.1/24
Masquerade hotspot network: yes
Address pool of hotspot network will be: 10.5.50.2-10.5.50.254
ip address of smtp server: 192.168.1.3



我们必须输入你的ISP的smtp服务器的IP,如果你没有,你可以给一个“internet” 段的IP。

CODE  
Use local DNS cache?
use local DNS cache: yes
Setup DNS Configuration
dns servers: 192.168.1.2




设置dns

CODE  
Name of hotspot user: admin
Password for the user: admin



设置hotspot超级管理员的用户名和口令(一定要保证安全)

CODE  
Select another port for (www) service
Another port for service: 8081  



指定另外一个端口8081给winbox用

CODE  
Use transparent web proxy for hotspot clients?
Use transparent web proxy: yes



使用web代理缓存

最后就设置好了。
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-11 00:16 , Processed in 0.136011 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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