473,320 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how can we give default gateway through command

sir please tell me how can we give default gateway through command
thanks.......
Nov 29 '08 #1
6 3080
Nepomuk
3,112 Expert 2GB
Try ipconfig:
Expand|Select|Wrap|Line Numbers
  1. ipconfig /all
Greetings,
Nepomuk
Nov 29 '08 #2
harshadd
176 100+
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
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
3,112 Expert 2GB
Did you read my answer? (Reply #2) It tells you what you want to know.

Greetings,
Nepomuk
Nov 29 '08 #5
yes i read it carefully
Dec 2 '08 #6
Nepomuk
3,112 Expert 2GB
Well, that gives you the default gateway, doesn't it?

Greetings,
Nepomuk
Dec 2 '08 #7

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

Similar topics

2
by: global | last post by:
Hi all, has anyone experience with XA transaction with twophase commit via gateway to host-db, my question is : where do I have to configure the parameters syncpoint=2 and connecttype=2 ? on...
0
by: jonhrs | last post by:
Hi, I am trying to find/write some vb.net code which will attain the default gateway of a server. This app will access a cross section of server platforms from NT4.0 server to Windows 2003 and...
0
by: pmclinn | last post by:
How do you grab a users default gateway? Connection-specific DNS Suffix . : ksde.local IP Address. . . . . . . . . . . . : 10.117.161.108 Subnet Mask . . . . . . . . . . . : 255.255.248.0...
8
by: google_groups3 | last post by:
Below is a snippet of code I am using. I want to set the IP, subnet and default gateway of my local computer via code. However, when I do it, I get a "not found" (error number 5) error on the...
5
by: Godwin Burby | last post by:
Dear Pythoneer, I need to toggle the gateway ip of my windows xp machine quite often due to some software requirements. I just want to know whether i could do it programmatically using Python. If...
1
by: Noozer | last post by:
How to change IP Gateway simply? Just looking for some sample code... Could be VB6 or VB Net 2005.... I want to have a Tray icon. When double clicked it changes the TCPIP gateway to a...
4
by: mitymouse | last post by:
I am fairly familiar with scripting dos commands and that's about it. I remember some syntax and whatnot from a few programming classes I've taken but I don't remember any of the modules or functions...
0
by: neeraj | last post by:
Hi all I have developed on desktop application in Visual Basic for Hotel Management and my client requires multiple printing options here I have multiple printers first default printer which...
0
by: siddhartha92k | last post by:
sir , i know very well that how can we give ip address & dns address to a syatem . but i want to know how can we give default gateway by a command in windows xp. please tell me.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.