Windows Network

From Dave-Wiki
Jump to navigation Jump to search

Useful network information

net config workstation

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

  1. netsh interface ip show config
  2. netsh interface ip set address "Ethernet" dhcp

Reset a network interface

  1. netsh int ip reset
  2. 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>