Active Directory Home Lab Back to Ben’s projects

Hyper-V Ethernet / Windows diagnostics

IPv4, DNS and routing

I checked what Windows had configured, where it would send traffic, and whether it could reach a service by name. Each command answered a different question.

Configure the virtual adapter and read it back

I set a manual IPv4 address, a /24 subnet mask and a default gateway on the server VM. The preferred IPv4 DNS entry pointed to the server’s own address. In this lab, the same VM provided the domain controller and DNS services.

With ipconfig /all, I checked the settings Windows was using on the Microsoft Hyper-V Network Adapter. The output shows DHCP disabled for IPv4 and lists the address, subnet mask, gateway and DNS entries. This is the configuration check I would make before chasing a join or sign-in error.

Manual IPv4 and DNS settings
AD-03 Manual IPv4 and DNS settings

The IPv4 properties show manual addressing, a /24 subnet mask, a default gateway and a preferred DNS server.

Open full-size image
Effective adapter configuration
AD-04 Effective adapter configuration

The Hyper-V Ethernet adapter reports DHCP disabled, a /24 subnet mask and entries for IPv4, gateway and DNS. Address values are masked.

Open full-size image

Read the routing table, then follow the path

route print -4 showed an active 0.0.0.0/0 default route via the configured gateway, on-link routes through the VM’s interface, and a persistent default route entry. The default route handles destinations without a more specific matching route.

I then ran tracert against my portfolio website. Hop 13 timed out, but the destination responded at hop 14 and Windows reported Trace complete. A router can forward traffic without answering a trace probe, so I check whether the trace reaches the destination before treating a timeout as a fault.

Active and persistent IPv4 routes
AD-05 Active and persistent IPv4 routes

The active table shows a default route and on-link routes. The persistent table also contains a default route.

Open full-size image
Trace to the portfolio website
AD-06 Trace to the portfolio website

The trace reached the destination on hop 14. Hop 13 timed out while the destination still responded.

Open full-size image

Microsoft Learn on interpreting TRACERT

Check the name and the port

Test-NetConnection resolved the website hostname to an IPv4 address and returned TcpTestSucceeded = True on port 443. That captured public-name resolution and a TCP connection from the lab VM. An HTTPS response and an internal AD DNS lookup are separate checks.

For an internal domain-join fault, I’d test the client’s ability to discover a domain controller through the lab’s DNS records. The public website test gives me a useful comparison when narrowing down where resolution or connectivity fails.

Successful TCP 443 test
AD-07 Successful TCP 443 test

Test-NetConnection resolved the website name to an IPv4 address and reported TcpTestSucceeded = True for port 443.

Open full-size image

Microsoft Learn on AD DNS service records