Board logo

標題: 【RouterOS】——怎样Static IP (CLI mode) [打印本頁]

作者: 角色    時間: 2013-8-27 23:26     標題: 【RouterOS】——怎样Static IP (CLI mode)

如果用command line,怎样set static ip呢?
作者: Qnewbie    時間: 2013-8-28 00:08

replace 211.XX.XXX.XXX with your own:
  1. /ip address
  2. remove [find where interface="WAN"]
  3. add address=211.XX.XXX.XXX/29 interface="WAN" #your own static ip
  4. /ip route
  5. remove [find]
  6. add dst-address=0.0.0.0/0 gateway=211.XX.XXX.XXX #your ISP static server
  7. /ip dhcp-client
  8. remove [find]
  9. /ip dns
  10. set allow=yes
  11. set servers=211.XXX.XXX.XXX #your ISP dns
複製代碼
http://forum.mikrotik.com/viewtopic.php?f=13&t=44407
作者: 角色    時間: 2013-8-29 00:09

I followed the information described in the following link to install the static IP for the ether1-gateway.

http://wiki.mikrotik.com/wiki/Ma ... _access_to_internet




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2