Windows Network: Difference between revisions

From Dave-Wiki
(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...")
 
m (Dave moved page Network to Windows Network without leaving a redirect)

Revision as of 22:00, 11 February 2024

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>