Routeros2.9.7安装总结

MikroTik RouterOS v2.9.7 Incl. Crack.iso安装中注意的是选择a全部software 按i(install)安装,3.0版本不要安装xen否则启动不了
安装好之后密码为admin无密码,以下就是配置web ip地址网关和dns等步骤,配置好之后就可以用winbox webox和ssh了。

Routeros2.9.7安装总结

[admin@MikroTik] > interface print //显示接口类型

Flags: D - dynamic, X - disabled, R 
- running, S - slave 
 #     NAME                                                                                                                                                                       TYPE             MTU  
 0  R  w                                                                                                                                                                          ether            1500 
 1  R  l                                                                                                                                                                          ether            1500 
[admin@MikroTik] > interface set 0 name=wan //设置接口为进线名字为wan

[admin@MikroTik] > interface set 1 name=lan //设置接口为进线名字为lan

[admin@MikroTik] > interface pri //显示接口名字

Flags: D - dynamic, X - disabled, R - running, S - slave 
 #     NAME                                                                                                                                                                       TYPE             MTU  
 0  R  wan                                                                                                                                                                        ether            1500 
 1  R  lan


[admin@MikroTik] > ip address add address=192.168.40.xx/24 interface=wan //设置接口WAN ip子网掩码255.255.255.0


[admin@MikroTik] > ip address add address=192.168.40.xx/24 interface=lan ////设置接口LAN ip子网掩码255.255.255.0

[admin@MikroTik] > ip address print //查看ip地址

Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE              
 0   192.168.40.xx/24   192.168.40.0    192.168.40.255  wan                    
 1   192.168.40.xx/24   192.168.40.0    192.168.40.255  lan            

[admin@MikroTik] > ip route print  //查看路由信息                    
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        G GATEWAY              DISTANCE IN..
 0 A S  0.0.0.0/0                          r 192.168.40.xx        1        lan 
 1 ADC  192.168.40.0/24    192.168.40.xx                          0        lan 
 2  DC  192.168.40.0/24    192.168.40.xx                         0        wan

[admin@MikroTik] > ip route remove 0 //删除0号lan

[admin@MikroTik] > ip route pri //查看路由信息
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        G GATEWAY              DISTANCE IN..
 0 ADC  192.168.40.0/24    192.168.40.95                          0        lan 
 1  DC  192.168.40.0/24    192.168.40.62                          0        wan


[admin@MikroTik] > ip route add gateway=192.168.40.xx //设置网关地址ip

[admin@MikroTik] > ip route pri //查看路由信息

Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        G GATEWAY              DISTANCE IN..
 0 A S  0.0.0.0/0                          r 192.168.40.xx        1        lan 
 1 ADC  192.168.40.0/24    192.168.40.xx                          0        lan 
 2  DC  192.168.40.0/24    192.168.40.xx                         0        wan


[admin@MikroTik] > ip dns set primary-dns=202.101.172.35 secondary-dns=202.101.172.46 allow-remote-requests=yes  //配置dns ip

[admin@MikroTik] > ip dns print //显示配置dns信息。
            primary-dns: 202.101.172.35
          secondary-dns: 202.101.172.46
  allow-remote-requests: yes
    max-udp-packet-size: 512
             cache-size: 2048KiB
          cache-max-ttl: 1w
             cache-used: 5KiB        

                

  [admin@MikroTik] >   ip firewall nat add chain=srcnat action=masquerade                



本文转自zh888 51CTO博客,原文链接:http://blog.51cto.com/zh888/957194,如需转载请自行联系原作者        

上一篇:cordova 开发


下一篇:shell脚本[] [[]] -n -z 的含义解析