Hello,
I am new to mikrotik and I am struggling to find out how to create a static IP.
In the past I set the IP address of my unix box in the unix network config and then my netgear just gace this webserver the same IP…
This does seem to be the case in Mikrotik..
So I was wondering if anyone could please help?
The webserver is connected to ether7 so I tried to run the following command but I got and error
[admin@MikroTik] > /ip address add address=192.168.88.275/24 interface=ether7
invalid value for argument address
Do I need to set the IP via DHCP lease?
My router is the main gaiteway and has the puplic acing IP on it
couple of things:
-last octet of the IP is invalid (i.e. .275 → should be <255).
-you’re adding an address to your routerboard ethernet port, not a static IP of the client that is connected to it. what you’re looking for is indeed a static DHCP lease.
I suggest you take a look at Greg Sowell’s excellent Mikrotik basics training video: http://gregsowell.com/?p=957
If you set a static IP in your web server, then it does not request a DHCP address from your router, so the router does not care at all what address is used. If you do have the router assigning DHCP addresses, make sure the static IP of the server is outside the DHCP address pool. For example, my web server is 192.168.201.11, and the DHCP address pool on that LAN is 192.168.201.100 - 192.168.201.149. There are also a bunch of DHCP reservation assignments (what MikroTik calls a static DHCP - almost a contradiction of terms) set in the router that are also outside of the DHCP pool range.
Thank you very much to all of you:)
I now have network access to my server…
Last question please.
I can ping 192.168.88.275 from my windows machine but if I ping via the netbios, I get the following
Ping request could not find host freenas. Please check the name and try again.
How do I register the server hostname in the router?