خرید بک لینک

Hi!

I do run a 15.10 based server (that has been upgraded from 14.x to 15.04 and then to 15.10). I need to add two static routes to it and that is only possible by manually setting them on the console. I found no other way to do that automatically after boot.

The basic configuration is dynamic, so a DHCP server is providing all network data to all machines including this server.

/etc/network/interfaces
... is mostly untouched for dhcp at eth0. I tried adding "up route add -net ..." in that file and the routes seem to be up for a short while as coections. Trying to coect over one of the routes gets a coection refused as long as SSH is not started. But before ssh comes up, the coections ceases. No response or "Coection time out".

I removed the routes from /etc/network/interfaces and installed the packet ifupdown-extra and added both routes to the /etc/network/routes file. This ends in the same result, while the keel boots, the routes are available, but when all the services start, someone seems to clean out all routes and if fails over from "Coection refused" to "Coection timed out".

Another trial was to set the routes at the DHCP server. It results in the same behavior and I am actually out of ideas now.
I read a lot across the net and I am confused by if and how to enable or set NetworkManager-wait-online.service and its friends. However I didn't expect that adding two simple routes could be so complicated.

In syslog I can see some info:

Code:

Jul  6 16:28:48 jk-compile comand[935]: The name net.coman.vpn was not provided by any .service files
Jul  6 16:28:48 jk-compile comand[935]: lo {newlink} index 1 operstate 0 <UNKNOWN>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {create} index 2 type 1 <ETHER>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {RX} 42 packets 5577 bytes
Jul  6 16:28:48 jk-compile comand[935]: eth0 {TX} 28 packets 2736 bytes
Jul  6 16:28:48 jk-compile comand[935]: eth0 {update} flags 36866 <DOWN>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {newlink} index 2 address 00:aa:bb:cc:dd:00 mtu 1500
Jul  6 16:28:48 jk-compile systemd[1]: NetworkManager-wait-online.service: Caot add dependency job, ignoring: Unit NetworkManager-wait-online.service is masked.
Jul  6 16:28:48 jk-compile comand[935]: eth0 {newlink} index 2 operstate 2 <DOWN>
Jul  6 16:28:48 jk-compile comand[935]: Adding interface eth0 [ etheet ]
Jul  6 16:28:48 jk-compile comand[935]: eth0 {RX} 42 packets 5577 bytes
Jul  6 16:28:48 jk-compile comand[935]: eth0 {TX} 28 packets 2736 bytes
Jul  6 16:28:48 jk-compile comand[935]: eth0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {newlink} index 2 address 00:aa:bb:cc:dd:00 mtu 1500
Jul  6 16:28:48 jk-compile comand[935]: eth0 {newlink} index 2 operstate 6 <UP>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {RX} 42 packets 5577 bytes
Jul  6 16:28:48 jk-compile comand[935]: eth0 {TX} 28 packets 2736 bytes
Jul  6 16:28:48 jk-compile comand[935]: eth0 {newlink} index 2 address 00:aa:bb:cc:dd:00 mtu 1500
Jul  6 16:28:48 jk-compile comand[935]: eth0 {newlink} index 2 operstate 6 <UP>
Jul  6 16:28:48 jk-compile systemd[1]: NetworkManager-wait-online.service: Caot add dependency job, ignoring: Unit NetworkManager-wait-online.service is masked.
...
Jul  6 16:28:48 jk-compile systemd[1]: Started Modem Manager.
Jul  6 16:28:48 jk-compile comand[935]: Skipping discoect of carrier, network is coecting.
Jul  6 16:28:48 jk-compile comand[935]: Setting domaiame to eurooel.local
Jul  6 16:28:48 jk-compile comand[935]: eth0 {add} address 192.168.200.228/24 label eth0 family 2
Jul  6 16:28:48 jk-compile comand[935]: eth0 {add} route 192.168.200.0 gw 0.0.0.0 scope 253 <LINK>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {add} route 192.168.200.249 gw 0.0.0.0 scope 253 <LINK>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {add} route 0.0.0.0 gw 192.168.200.249 scope 0 <UNIVERSE>
Jul  6 16:28:48 jk-compile comand[935]: eth0 {add} route 82.165.8.211 gw 192.168.200.249 scope 0 <UNIVERSE>
Jul  6 16:28:48 jk-compile whoopsie[964]: [16:28:48] offline
Jul  6 16:28:48 jk-compile comand[935]: eth0 {del} route 82.165.8.211 gw 192.168.200.249 scope 0 <UNIVERSE>
A sidenote may be that I did not configure anything to reach out for 82.165.8.211... But I guess it is the coman trying to find out about the inteet availability on that interface.

So any idea, of how to set NetworkManager and /etc/network/interfaces to simply add my two routes automatically? Cause manually it works fine...

Cheers!
Astralix

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 16 تير 1395 ساعت: 22:50

صفحه بندی