Windows Network

From Dave-Wiki
Revision as of 21:55, 11 February 2024 by Dave (talk | contribs) (Created page with "==Useful network information== <code>net config workstation</code> ==Change a network interface to use dynamic DHCP to get its IP== <code>netsh interface ip show config</code> <code>netsh interface ip set address "Ethernet" dhcp</code> ==Reset a network interface== <code>netsh int ip reset</code> <code>netsh winsock reset</code> ==Release and renew an IP address== <code>ipconfig /release & ipconfig /renew</code> ==Mount a Windows file share== <code>net use \\p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>