User Tools

Site Tools


software:microsoft:windows:networks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
software:microsoft:windows:networks [2017/01/10 20:26] – created superwizardsoftware:microsoft:windows:networks [2022/07/14 20:07] (current) – [Command line program to test DHCP service] superwizard
Line 1: Line 1:
 +====== Command line program to test DHCP service ======
 +
 +From: https://serverfault.com/questions/171744/command-line-program-to-test-dhcp-service
 +
 +<code>
 +assuming you have installed nmap (sudo apt install nmap):
 +
 +sudo nmap --script broadcast-dhcp-discover
 +
 +Windows nmap -sU -p 67 --script dhcp-discover 10.230.0.2/32
 +
 +</code>
 +
 +<WRAP center round box >
 +Get-DhcpServerInDC
 +
 +From <https://docs.microsoft.com/en-us/powershell/module/dhcpserver/get-dhcpserverindc?view=windowsserver2022-ps> 
 +
 +</WRAP>
 +
 +    nmap -oA c:\temp\nmap-broadcast-dhcp-discover-2020-07-21 --script=broadcast-dhcp-discover 10.9.0.0/16
 + 
 +http://marcushall.net/dokuwiki/doku.php
 +
 +
 +[[software:nmap|software:nmap]]
 +
 +File broadcast-dhcp-discover
 +
 +From <http://marcushall.net/dokuwiki/doku.php?id=software:nmap#output_the_scan_to_file_with_all_of_those_formats> 
 +
 +
 +
 ====== Name Resolution Lookup ====== ====== Name Resolution Lookup ======
  
Line 53: Line 86:
 into the problem, the "Connection-specific DNS Suffix" is not correct. into the problem, the "Connection-specific DNS Suffix" is not correct.
 </code> </code>
 +
 +
 +<WRAP center round box >
 +Does your PC have any IPv6 addresses (link-local or otherwise)?
 +<code>
 +ipconfig /all | findstr IPv6
 +</code>
 +
 +What IPv6 endpoints are on your Windows machine?
 +<code>
 +netstat –abn –p tcpv6 
 +netstat –abn –p udpv6 
 +netstat –abn –p icmpv6 
 +</code>
 +
 +From <http://techgenix.com/IPv6-multicast-background-traffic-Part1/> 
 +
 +Use ip .
 +I want to know about your world
 +Are you still using one of the following tools?
 +<code>
 +/bin/netstat (replaced by ss, for which I’ll dedicate another blog post entirely)
 +/sbin/ifconfig
 +/sbin/ipmaddr (replaced by ip maddress)
 +/sbin/iptunnel
 +/sbin/mii-tool (ethtool should appropriately replace it)
 +/sbin/nameif
 +/sbin/plipconfig
 +/sbin/rarp
 +/sbin/route
 +/sbin/slattach
 +</code>
 +
 +From <https://ubuntu.com/blog/if-youre-still-using-ifconfig-youre-living-in-the-past> 
 +
 +</WRAP>
  
 ====== Troubleshooting Windows File Sharing ====== ====== Troubleshooting Windows File Sharing ======
Line 76: Line 145:
  
 ====== netstat ====== ====== netstat ======
 +
 +<WRAP center round box >
  
     netstat -an     netstat -an
     netstat -bano = show the application that is listening     netstat -bano = show the application that is listening
     nbtstat -A 192.168.1.10     nbtstat -A 192.168.1.10
 +
 +</WRAP>
 +
 +<WRAP center round box >
 +
 +6. View current TCP connections
 +
 +    Get-NetTCPConnection
 +
 +From <https://www.techrepublic.com/article/10-powershell-commands-for-network-troubleshooting/> 
 +
 +
 +</WRAP>
  
 ====== Network Investigation Commands ====== ====== Network Investigation Commands ======
Line 101: Line 185:
          
     ipconfig /release     ipconfig /release
 +    
 +    whoami /groups
 +    
 +    systeminfo | more
 +    
 +    Active Directory listing commands
          
 ====== Microsoft Computer Browser Service ====== ====== Microsoft Computer Browser Service ======
software/microsoft/windows/networks.1484079969.txt.gz · Last modified: 2017/01/10 20:26 by superwizard