Tom chasing Harry and Ron Weasly Meme : Harry : people using the first address of the range as gateway, Ron : people using the last address of the range as gateway, Tom : people using one random address of the range as gateway
you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 4 days ago (3 children)

That won't work, unless I'm misunderstanding you. You'd still need a gateway within your subnet to handle inter-subnet routing or an additional address on the gateway network.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 4 days ago (1 child)

    It can be made to work, just really really stupid.

    Ultimately the 'gateway' is really a mac address, and the IP is just the thing to ARP to get the mac address. And you can do some gnarly things to pull off things like off-subnet gateway addresses.

    You should never ever do it, but you can if you hate yourself enough.

    Becomes easier in IPv6 to do these shenigans too.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 4 days ago

    By adding a host, or /32, route to the gateway you should then be able to use it as the default gateway on your main subnet. I was not being serious when I suggested it, as another comment says, it's a pretty stupid idea, and there really isn't any sane usecase for it, except possibly one of those 1am "if it's stupid but it works it's still stupid, but it'll do until morning" type fixes that you shudder to recall years later.

  • source
  • parent