В Mon, 06 Apr 2015 23:45:04 -0400 Felix Miata <mrmazda@earthlink.net> пишет:
Andrei Borzenkov composed on 2015-04-07 06:22 (UTC+0300):
Felix Miata composed:
Can more than one default route per interface be configured?
I think I partially answered this by experiment. I booted TW to find default route 192.168.1.1 while using router with 192.168.0.1. I ran
route add default gw 192.168.0.1 eth0
That produced:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
which is working, but I have no idea if this holds any potential problem.
Your system is using single router 192.168.0.1.
How is it supposed to work?
I don't know.
How should system select which route to use?
Round robin?
So half of the packets get lost?
Pick fastest?
Define fastest ...
First in list?
That is what it currently does. It will always use the first one. So having more than one effectively does nothing.
I configure my own installations with fixed IP. I want to be able to take any of them elsewhere, discover the IP of the relevant gateway/router, and using mcedit, change, or add, whatever is necessary, without starting any GUI, YaST, or any kind of "manager". Is this asking too much?
Show fix IP you configured and IP of (default) router you want to use.
location 1 (router 1): 192.168.0.1
location 2 (router 2): 192.168.1.1
I assume default netmask ...
host: 192.168.0.121
Second one won't work. Gateway must be on locally attached network. It had always been this way. Even if you manage to fool your system in sending packets to this address, gateway won't know how to reply. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org