Should I be trying to change the ip address from the server gui or my router?
It's currently 192.168.1.28 and I want it to be 192.168.1.42.
thanks!
Should I be trying to change the ip address from the server gui or my router?
It's currently 192.168.1.28 and I want it to be 192.168.1.42.
thanks!
First, make sure you haven't reserved an IP for your server in your router (some people do that).
Log in to the webUI
Networks
Click on your network device
Under ip4, change from DHCP to Static
IP (this will be the one you want)
Netmask: If you don't know this, SSH your box and become root.
Make sure net-tools is installed
Then use the route -n command to get your subnet (255.255.255.0 is mine because enp1s0 is my network device)
root@openmediavault:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp1s0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-3e22eb2ce455
172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-ee6c502a281a
172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-07aa4ab54bf1
172.21.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-43e9d06a93a1
172.22.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-3a7aaaf1e925
172.23.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-12f91f065e9f
172.24.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-3809534eaea8
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0
root@openmediavault:~#
Alles anzeigen
Gateway IP: This is your router IP (probably 192.168.1.1)
Then scroll down and set your DNS servers. You can log in to your router and find your service providers DNS servers, or use Googles.
Save and then eventually it will time out.
Go to the IP you requested and log in.
And in addition make sure, 192.168.1.42 is not in the DHCP range of your router. Your router (DHCP-service) will know nothing about the fixed IP and issue it to another divice if you don't tell him not to do this.
done! thanks
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!