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
[–] 3 points 14 hours ago (2 children)

If you use a /23 you can use the middle .0 too.

My favourite dumb networking trick though is that Linux lets you use an IPv6 address as an IPv4 gateway.

ip -4 route add default via inet6 fe80::1 dev eth0

That works so long as the gateway is running dual stack.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 6 hours ago (1 child)

    Makes sense, the gateway is never a target of the ip packet, so it's really only used to find the MAC address of the gateway.

  • source
  • parent
  • hideshow 1 child comment