В Tue, 07 Apr 2015 07:51:49 -0400 James Knott <james.knott@rogers.com> пишет:
On 04/06/2015 11:53 PM, Andrei Borzenkov wrote:
Second one won't work. Gateway must be on locally attached network. It had always been this way.
Not quite. However, the route to the gateway must be known.
bor@opensuse:~> ip r l default via 192.168.1.1 dev wlan0 proto static metric 1024 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.46 bor@opensuse:~> sudo ip route add 1.2.3.4/24 via 2.3.4.5 dev wlan0 RTNETLINK answers: Invalid argument I'm curious how you create such route.
So, if the gateway was on another lan, you'd need a connection and route to it. Generally, it's on the local lan though. It's also possible to specify just an interface and not an IP address for the gateway.
Yes, interface-only routes are quite useful with point-to-point links to conserve address space. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org