Skip to main content

Yes.

Your second example is not a good good example because thea gateway (practically speaking) needsneed to be in the same network the interface is on.

A better ecampleexample might be if you have 2 simple routers to different ISPs. The LAN interface on router 1 is 192.168.1.254/24 and router 2 is 192.168.1.253/24.

You can split routes up so that some traffic is routrdrouted via one router (one ISP), and some via the other. Fir ecampleFor example you could set up 0.0.0.0/1 via 192.168.0.253 and 128.0.0.0/1 via 192.168.0.254 to split the traffic so some gies via each interfaceto both router's interfaces.

While not common on SOHO routers, large routers with morevthenmore than 2 interfaces commonly do this stuff.

(also, fwiw, when Note : When you get more complex routing you can have multiple gateways for the same subnet -, there are a few ways you can do this - the easier is a "metric" which gives preference to 1 gateway over the ither (if the gateway interface disappears - eg a PPP interface) it will use the higher metric route. Its also possible to do it via multiple routing tables and use policy routing to send different packets to different route tables):

  • The easier is a "metric" which gives preference to 1 gateway over the ither (if the gateway interface disappears - eg a PPP interface) it will use the higher metric route.
  • It's also possible to do it via multiple routing tables and use policy routing to send different packets to different route tables).

Yes.

Your second example is not a good good example because the gateway (practically speaking) needs to be in the same network the interface is on.

A better ecample might be if you have 2 simple routers to different ISPs. The LAN interface on router 1 is 192.168.1.254/24 and router 2 is 192.168.1.253

You can split routes up so that some traffic is routrd via one ISP, and some via the other. Fir ecample you could set up 0.0.0.0/1 via 192.168.0.253 and 128.0.0.0/1 via 192.168.0.254 to split the traffic so some gies via each interface.

While not common on SOHO routers, large routers with morevthen 2 interfaces commonly do this stuff.

(also, fwiw, when you get more complex routing you can have multiple gateways for the same subnet - there are a few ways you can do this - the easier is a "metric" which gives preference to 1 gateway over the ither (if the gateway interface disappears - eg a PPP interface) it will use the higher metric route. Its also possible to do it via multiple routing tables and use policy routing to send different packets to different route tables)

Yes.

Your second example is not a good good example because a gateway (practically speaking) need to be in the same network the interface is on.

A better example might be if you have 2 simple routers to different ISPs. The LAN interface on router 1 is 192.168.1.254/24 and router 2 is 192.168.1.253/24.

You can split routes up so that some traffic is routed via one router (one ISP), and some via the other. For example you could set up 0.0.0.0/1 via 192.168.0.253 and 128.0.0.0/1 via 192.168.0.254 to split the traffic to both router's interfaces.

While not common on SOHO routers, large routers with more than 2 interfaces commonly do this.

Note : When you get more complex routing you can have multiple gateways for the same subnet, there are a few ways you can do this :

  • The easier is a "metric" which gives preference to 1 gateway over the ither (if the gateway interface disappears - eg a PPP interface) it will use the higher metric route.
  • It's also possible to do it via multiple routing tables and use policy routing to send different packets to different route tables).
Source Link
davidgo
  • 71.4k
  • 14
  • 111
  • 169

Yes.

Your second example is not a good good example because the gateway (practically speaking) needs to be in the same network the interface is on.

A better ecample might be if you have 2 simple routers to different ISPs. The LAN interface on router 1 is 192.168.1.254/24 and router 2 is 192.168.1.253

You can split routes up so that some traffic is routrd via one ISP, and some via the other. Fir ecample you could set up 0.0.0.0/1 via 192.168.0.253 and 128.0.0.0/1 via 192.168.0.254 to split the traffic so some gies via each interface.

While not common on SOHO routers, large routers with morevthen 2 interfaces commonly do this stuff.

(also, fwiw, when you get more complex routing you can have multiple gateways for the same subnet - there are a few ways you can do this - the easier is a "metric" which gives preference to 1 gateway over the ither (if the gateway interface disappears - eg a PPP interface) it will use the higher metric route. Its also possible to do it via multiple routing tables and use policy routing to send different packets to different route tables)