Home > Commands, Microsoft, Windows Server > Netsh Commands for Interface & Route Commands

Netsh Commands for Interface & Route Commands

Netsh Commands:

netsh interface ip show config
netsh interface ip set address name=”Local Area Connection” static 192.168.0.100 255.255.255.0 192.168.0.1 1
netsh interface ip set dns name=”Local Area Connection” static 192.168.1.1
netsh interface ip add dns name=”Local Area Connection” 192.168.1.1

Routes & Persistent Routes commands:

Network Address Netmask Gateway Address Metric

192.168.1.100 255.255.255.0 192.168.1.1  2

Example commands:

  • route print
  • route delete
  • route add 192.168.1.100 mask 255.255.255.0 192.168.1.1 metric 2
  • route -p add 192.168.1.100 mask 255.255.255.0 192.168.1.1 metric 2

-Eric

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: