| 
 | 
 
 楼主 |
发表于 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代理缓存 
 
最后就设置好了。 |   
 
 
 
 |