473,748 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how can we give default gateway through command

31 New Member
sir please tell me how can we give default gateway through command
thanks.......
Nov 29 '08 #1
6 3089
Nepomuk
3,112 Recognized Expert Specialist
Try ipconfig:
Expand|Select|Wrap|Line Numbers
  1. ipconfig /all
Greetings,
Nepomuk
Nov 29 '08 #2
harshadd
176 New Member
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.2 22 mask=255.255.25 5.0 gateway=172.18. 1.1
Nov 29 '08 #3
JOHNSHELL08
31 New Member
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 Recognized Expert Specialist
Did you read my answer? (Reply #2) It tells you what you want to know.

Greetings,
Nepomuk
Nov 29 '08 #5
JOHNSHELL08
31 New Member
yes i read it carefully
Dec 2 '08 #6
Nepomuk
3,112 Recognized Expert Specialist
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
1937
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 client or on gateway ??? Thank you
0
1329
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 check that they are using the correct time source (which in most cases, is the DG, except in our datacentres!) Unfortunately, I am unable to do this using WMI due to the NT 4.0 servers (there are over 1500 Windows servers in the estate my team
0
1811
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 Default Gateway . . . . . . . . . : 10.117.160.254
8
4357
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 default gateway line. Dim GateArray() As String = {"99.99.99.1"} 'Array Dim inPar As ManagementBaseObject = Nothing Dim outPar As ManagementBaseObject = Nothing Dim blah As ManagementBaseObject()
5
1967
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 so how?
1
1971
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 secondary choice. Double click again and it's back to the original setting. Thx!
4
4714
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 for VB at all. Goal: I need to set persistent routes for 2 ip address on a VPN that has a dynamic gateway each time it connects. I am almost positive I can't script this with standard dos commands so I am wondering if VB will let me do this...
0
1950
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 directly connected with source PC other one is in network. The situation is when user give the print command he must be select one respective printer which is in network and secondary printer is
0
1409
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
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.