Windows Network

From Dave-Wiki
Revision as of 22:00, 11 February 2024 by Dave (talk | contribs) (Dave moved page Network to Windows Network without leaving a redirect)

Useful network information

net config workstation

Change a network interface to use dynamic DHCP to get its IP

netsh interface ip show config

netsh interface ip set address "Ethernet" dhcp

Reset a network interface

netsh int ip reset

netsh winsock reset

Release and renew an IP address

ipconfig /release & ipconfig /renew

Mount a Windows file share

net use \\path\to\shared\folder /user:<username>

Allow Insecure Logons to an SMB Share

Allows you to access Anonymous Linux SMB Shares

In gpedit.msc, enable:

Computer Configuration\Administrative Templates\Network\Lanman Workstation\Enable insecure guest logons

Add a static route

route add -p <dest-network> MASK <dest-mask> <next-hop-ip> METRIC 0 IF <iface-num>