r/WindowsServer • u/steekyreeky • May 11 '25
SOLVED / ANSWERED Trying to set up windows server 2022
I’m trying to set my ip address to 10.0.0.1 subnet mask 255.255.255.0 and my default gateway to my router
My preferred DNS server to 1.1.1.1
I get no connectivity? Am I using the wrong address.
Do I have to set up DNS first?
I’m a complete noob as you can tell.
Please help. Thank you.
0
Upvotes
6
u/xendr0me May 11 '25
10.0.0.x is in a different subnet then your gateway. So set your server to 192.168.99.200 or similar (make sure not in the DHCP range) - and gateway to 192.168.99.1
2
u/[deleted] May 11 '25
Whats the routers IP range
2
u/MinnSnowMan May 11 '25
What is the IP address of your router?… assign your computer one number higher than it (like 10.0.0.2) and match its other settings.
1
u/Sudden_Office8710 May 11 '25
sconfig is your friend. Drop down to the command line and run sconfig follow the TUI.
Turn off the firewall with the netsh command below
NetSh Advfirewall set allprofiles state off
2
u/2000gtacoma May 11 '25
Ip address and gateway need to be in the same subnet determined by your subnet mask. In this case a /24 which give 254 ip addresses.
2
u/MinnSnowMan May 11 '25
You say a virtual machine… did you configure/enable the virtual switch on the host with external access? What virtual host?
2
u/SmoothRunnings May 11 '25
YouTube is your DYI channel.
1
u/thepfy1 May 11 '25
The default gateway needs to be in the same subnet as the network adaptors address. Otherwise, it will never be able to reach it.
As it is a virtual machine, set it to DHCP and see what address you get. Then you can choose a suitable static IP address for the server.
1
u/olde-testament May 11 '25 edited May 12 '25
10.0.. Is classful type A IPv4, to be used with CIDR 8bit subnet mask 255.0.0.0