Gateway of Different subnet?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • usafshah
    New Member
    • Nov 2006
    • 104

    Gateway of Different subnet?

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

    Like IP: 192.168.0.154
    G/W: 192.168.16.1


    will it work? please explain in both cases


    Thanks in advance.
  • AHMEDYO
    New Member
    • Nov 2007
    • 112

    #2
    HI...

    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

    Comment

    • usafshah
      New Member
      • Nov 2006
      • 104

      #3
      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.

      82.8.51.173 / 22
      mask: 255.255.252.0
      gateway: 82.8.48.1


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

      Comment

      • Scotter
        New Member
        • Aug 2007
        • 80

        #4
        Originally posted by usafshah
        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.

        82.8.51.173 / 22
        mask: 255.255.252.0
        gateway: 82.8.48.1


        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.

        Comment

        Working...