Windows Network: Difference between revisions
(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...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
==Change a network interface to use dynamic DHCP to get its IP== | ==Change a network interface to use dynamic DHCP to get its IP== | ||
<code>netsh interface ip show config</code> | # <code>netsh interface ip show config</code> | ||
# <code>netsh interface ip set address "Ethernet" dhcp</code> | |||
<code>netsh interface ip set address "Ethernet" dhcp</code> | |||
==Reset a network interface== | ==Reset a network interface== | ||
<code>netsh int ip reset</code> | # <code>netsh int ip reset</code> | ||
# <code>netsh winsock reset</code> | |||
<code>netsh winsock reset</code> | |||
==Release and renew an IP address== | ==Release and renew an IP address== |
Latest revision as of 02:48, 12 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
net use \\path\to\shared\folder /user:<username>
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>