By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,473 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

how can we give default gateway through command

P: 31
sir please tell me how can we give default gateway through command
thanks.......
Nov 29 '08 #1
Share this Question
Share on Google+
6 Replies


Nepomuk
Expert 2.5K+
P: 3,112
Try ipconfig:
Expand|Select|Wrap|Line Numbers
  1. ipconfig /all
Greetings,
Nepomuk
Nov 29 '08 #2

harshadd
100+
P: 176
Use NETSH INSTEAD, ? / HELP OPTION TELL ABOUT DETAILS.
I am providing an example below:
NETSH interface ip set address local name="Local Area Connection" source=static addr=172.18.1.222 mask=255.255.255.0 gateway=172.18.1.1
Nov 29 '08 #3

P: 31
sir i know about this command for giving ip address

netsh interface ip set address local static 10.156.143.85 255.255.255.0
but i don' know about the command through we give default gateway.

so sir please tell me.
Nov 29 '08 #4

Nepomuk
Expert 2.5K+
P: 3,112
Did you read my answer? (Reply #2) It tells you what you want to know.

Greetings,
Nepomuk
Nov 29 '08 #5

P: 31
yes i read it carefully
Dec 2 '08 #6

Nepomuk
Expert 2.5K+
P: 3,112
Well, that gives you the default gateway, doesn't it?

Greetings,
Nepomuk
Dec 2 '08 #7

Post your reply

Sign in to post your reply or Sign up for a free account.