Tagged: connman networking
- This topic has 7 replies, 6 voices, and was last updated Dec 2-9:20 pm by Xecure.
-
AuthorPosts
-
December 2, 2020 at 11:14 am #46329Member
Sephiroth
Hello, I’m trying to add static route to my Antix OS, like this:
sudo ip route add 10.69.0.2 via 10.69.0.102 dev eth1If I execute in shell this command it will apply, and everything works good.
I tried to add in /etc/network/interfaces:
up route add -net 10.69.0.2 via 10.69.0.102 dev eth1
or
post-up route add -net 10.69.0.2 via 10.69.0.102 dev eth1they haven’t effects.
How can I do persistent route?
I also tried a workaround adding a script in rc5 with S20 level and depends with resolvconf and connman, but it’s still not working.Thanks for support
- This topic was modified 2 years, 5 months ago by Sephiroth.
December 2, 2020 at 2:35 pm #46343MemberDzhigit
::I tried to add in /etc/network/interfaces
I am not sure if there is something different with your system, but at least in my /etc/network/interfaces file, the antiX developers left this comment:
Used by ceni but not by connman- This reply was modified 2 years, 5 months ago by Dzhigit. Reason: accidentally pasted a link instead of comment from antiX
- This reply was modified 2 years, 5 months ago by Dzhigit.
December 2, 2020 at 3:41 pm #46357Moderator
Brian Masinick
::Did you actually enter:
up route add -net 10.69.0.2 via 10.69.0.102 dev eth1
Shouldn’t it be
ip route add -net 10.69.0.2 via 10.69.0.102 dev eth1
--
Brian MasinickDecember 2, 2020 at 4:52 pm #46358MemberSephiroth
::Did you actually enter:
up route add -net 10.69.0.2 via 10.69.0.102 dev eth1
Shouldn’t it be
ip route add -net 10.69.0.2 via 10.69.0.102 dev eth1
both commands in /etc/network/interfaces don’t work.
Just the last one works by shell, how can I make persistent this route with connman?
- This reply was modified 2 years, 5 months ago by Sephiroth.
- This reply was modified 2 years, 5 months ago by Sephiroth.
December 2, 2020 at 4:57 pm #46359MemberSephiroth
::I tried to add in /etc/network/interfaces
I am not sure if there is something different with your system, but at least in my /etc/network/interfaces file, the antiX developers left this comment:
Used by ceni but not by connmanExactly, I just tried without results
December 2, 2020 at 5:23 pm #46362Forum Admin
anticapitalista
::may help.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
December 2, 2020 at 6:57 pm #46365Moderator
caprea
::What about putting the route shell command in /etc/rc.local ?
Connman and static route does not seem to be an easy-going .
Might helps
https://discourse.osmc.tv/t/persistent-static-routes-in-osmc/18873Or perhaps ceni is a better option for you. You can convert to ceni with the antiX-wifi-switcher from menu.
ceni uses the etc/network/interfaces .December 2, 2020 at 9:20 pm #46375Member
Xecure
::After searching a bit for connman + persistant route search results, I agree with caprea. It seems to not be easy to do with connman.
Use the antix-wifi-switch program to switch to ceni (even if you are not using wifi) and try to see if you can set up the static routing with ceni (the script stops all connman related services and replaces /etc/resolv.conf symlink to use resolvconf instead of connman).
antiX Live system enthusiast.
General Live Boot Parameters for antiX. -
AuthorPosts
- You must be logged in to reply to this topic.