473,882 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gateway of Different subnet?

104 New Member
is it possible to have default gateway of different subnet from IP?

Like IP:

will it work? please explain in both cases

Thanks in advance.
Nov 15 '07 #1
3 9521
112 New Member

I think and im not sure your gateway must be found withing your Switch MAC Addresses table (Can resolve using ARP), and if you plug your Machine withing switch this switch must have MAC address for your gateway, thats mean no problem if different subnet or not, may be you have router have 2 IPs from two different subnets in same interface that pluged to your switch, you can use any IP as gateway, you cant use gateway that metric greater that 1,just your gateway cant be after 1 hop
that i think

Good Luck
Nov 16 '07 #2
104 New Member
Thanks for your response,

I have a cable modem and my pc is connected with it. so no switch etc, My pc gets IP automatically from cable modem(may be from isp or whatever) let me show you the ip and gateway that has been assigned to comp. / 22

is the gateway IP different than the machine IP? because the subnet mask is not /24 i'm not good at subnets
Nov 16 '07 #3
80 New Member
Thanks for your response,

I have a cable modem and my pc is connected with it. so no switch etc, My pc gets IP automatically from cable modem(may be from isp or whatever) let me show you the ip and gateway that has been assigned to comp. / 22

is the gateway IP different than the machine IP? because the subnet mask is not /24 i'm not good at subnets

Yeah, thats your public IP address, and your gateway is you ISP's router. the gateway is like the address your computer sends traffic to that it doesn't know where it is, like google.com isn't on your local network, so it forwards traffic to the gateway, so the gateway can find it. the /22 mask is used to give 1022 addresses on a subnet, instead of the normal 254. but yes, your computer and gateway are on the same subnet.
Dec 3 '07 #4

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

Similar topics

by: ohynes | last post by:
hey newbie here wondering if there is anyone out there who can help me im trying to make a c# subnet calulator using the IPAddress class i cant seem to figure out how to do all the subnet calculations now i can do them on paper but thats about it just starting to learn c sharp
by: pcserver | last post by:
I would like to ask which class should i use for getting my PC's gateway ip and can send an email to smtp?thanks I am going to write a program that will check my pc gateway regularly, and send an email if the ip has been changed.
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
by: pmclinn | last post by:
How do you grab a users default gateway? Connection-specific DNS Suffix . : ksde.local IP Address. . . . . . . . . . . . : Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . :
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 = {""} 'Array Dim inPar As ManagementBaseObject = Nothing Dim outPar As ManagementBaseObject = Nothing Dim blah As ManagementBaseObject()
by: Terry Olsen | last post by:
Is there an "elegant" way to determine if an IP address is on my subnet? Or do I just compare the first 2 or 3 octets?
by: Morten Fagermoen | last post by:
Hi! I try to get the subnet location info using the code below found at http://msdn2.microsoft.com/en-us/library/system.directoryservices.activedirectory.activedirectorysubnet.location.aspx. But it only tells me that "instance" is used before it has been assigned a value. Can anyone tell me what to do to get my subnet location info? Public Property SubnetLocation() As String Get Dim instance As ActiveDirectorySubnet
by: Grant Edwards | last post by:
Could whoever is responsible for the gateway that is grabbing my postings off of Usenet and e-mailing them out please fix the headers in the mail messages so that I don't get the bounce messages? While you're at it, might as well fix it for everybody else too. ;) Its a bit rude to send out mass e-mail messages with headers faked up so that the bounce messages go to somebody else.
by: =?Utf-8?B?Q2FybG9z?= | last post by:
Guys, I have a little problem here. I have an AD domain with one DC and 2 other member servers and when I go to My Network Places and browse the network, I can seamless see a list of all workstations (my 2 member servers and my single DC) and servers. The network IP is I have a second VLAN, where I have another member server. I joined this member server to the domain, added a subnet in AD Sites and Services...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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...
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();...
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...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.