This is a good document on connman
It fixed iteself with a reboot
I now have
# ip r
default via 192.168.0.1 dev eth1
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.56
192.168.0.1 dev eth1 scope link
192.168.32.0/24 dev eth0 proto kernel scope link src 192.168.32.6
Which is correct. It only routes thru eth1.
I can ping the printer which is on eth0
# ping 192.168.32.98
PING 192.168.32.98 (192.168.32.98): 56 data bytes
64 bytes from 192.168.32.98: icmp_seq=0 ttl=60 time=5.606 ms
Firefox works, and
in /var/lib/connman I have
nevj@trinity:/var/lib/connman
$ ls -l
total 12
drwx------ 2 root root 4096 Nov 21 21:01 ethernet_c86000cb0b6c_cable
drwx------ 2 root root 4096 Nov 22 20:12 ethernet_c86000cb0e28_cable
-rw------- 1 root root 258 Jul 5 17:53 settings
settings contains
[global]
OfflineMode=false
TimeUpdates=manual
TimezoneUpdates=auto
[Wired]
Enable=true
Tethering=false
[WiFi]
Enable=true
Tethering=false
[Bluetooth]
Enable=false
Tethering=false
Tethering.Freq=2412
[P2P]
Enable=false
Tethering=false
Tethering.Freq=2412
Inside those 2 directories are further settings for each interface.
for eth0:
[ethernet_c86000cb0b6c_cable]
Name=Wired
AutoConnect=true
Modified=2024-11-21T21:01:13Z
IPv4.method=manual
IPv4.netmask_prefixlen=24
IPv4.local_address=192.168.32.6
IPv6.method=auto
IPv6.privacy=disabled
IPv6.DHCP.DUID=000100012ed1c170c86000cb0b6c
and for eth1:
[ethernet_c86000cb0e28_cable]
Name=Wired
AutoConnect=true
Modified=2024-11-22T20:12:42Z
IPv4.method=dhcp
IPv4.DHCP.LastAddress=192.168.0.56
IPv6.method=auto
IPv6.privacy=disabled
I dont know why it keeps settings for eth0 when I have it blacklisted?
conmanctl lists 2 services
connmanctl> services
*AR Wired ethernet_c86000cb0e28_cable
Telstraxxxxxx wifi_0008ca33d447_54656c73747261323046383137_managed_psk
connmanctl>
one wired, and the Wifi, which apparently can see my modem but is not UP
I suspect if I disabled the eth1 connection, connman would attempt to route to the internet via Wifi… so I expect it would ask for a key?
So much for my first real experience with connman. I have had distros with connman before, but in VM’s where is does not really matter.
I do have connman in a hard install of Artix/S6
Here it is running
trinity:[nevj]:~$ ps ax | grep connman
418 ? S 0:00 s6-supervise connmand-srv
429 ? S 0:00 s6-supervise connmand-log
538 ? Ss 0:00 s6-log -d3 -b -- n3 s2000000 T /var/log/connmand
714 ? Ss 0:00 connmand -n
742 ? S 0:00 /usr/bin/connman-vpnd -n
1522 ? Sl 0:00 connman-gtk
1721 pts/1 S+ 0:00 grep --colour=auto connman
and it seems to manage both eth0 and eth1 happily
trinity:[nevj]:~$ ip r
default via 192.168.0.1 dev eth0
default dev eth1 metric 4294964223
82.165.8.211 via 192.168.0.1 dev eth0
169.254.0.0/16 dev eth1 proto kernel scope link src 169.254.110.253
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.56
192.168.0.1 dev eth0 scope link
No it does not… there are 2 default routes, and I cant ping the printer … but firefox works fine in Artix… I never noticed this issue in Artix until now.
OK more to do
What does connmanctl see in Artix
trinity:[nevj]:~$ connmanctl
connmanctl> services
*AO Wired ethernet_c86000cb0e28_cable
*AR Wired ethernet_c86000cb0b6c_cable
connmanctl>
It sees the 2 wired interfaces , but not the Wifi
Artix definitely sees wlan0, so it must be disabled in connman?
Yes.... in `/var/lib/connman/settings` it has
[WiFi]
Enable=false
Tethering=false
Tethering.Freq=2412
At least I can explain that ... Antix had WiFi enabled.
Now,
In Artix eth0 is the internet NIC and eth1 is the local network ( opposit to Antix)
So I need to blacklist eth1 in Artix, and bring it up in /etc/network interfaces.
No such luck, Artix does not have /etc/network/interfaces. That method of configuring networks has not been installed.
So I need to work out how to configure a static interface with connmanctl
trinity:[root]:~# connmanctl
connmanctl> services
*AO Wired ethernet_c86000cb0e28_cable
*AR Wired ethernet_c86000cb0b6c_cable
connmanctl> config ethernet_c86000cb0b6c_cable ipv4 manual 192.168.32.6 255.255.255.0
connmanctl> services
*AO Wired ethernet_c86000cb0e28_cable
*AR Wired ethernet_c86000cb0b6c_cable
connmanctl>
Now etho and eth1 both have an IP
ip a
2: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether c8:60:00:cb:0e:28 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.56/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 2001:8003:2c09:f600:ca60:ff:fecb:e28/64 scope global dynamic mngtmpaddr proto kernel_ra
valid_lft 57774sec preferred_lft 57774sec
inet6 fe80::ca60:ff:fecb:e28/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether c8:60:00:cb:0b:6c brd ff:ff:ff:ff:ff:ff
inet 192.168.32.6/24 brd 192.168.32.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::ca60:ff:fecb:b6c/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
and I can ping the printer on the local net,
but
the routing table is still the same as before.
I think a reboot will fix that
.....
No a reboot does not fix it..... still 2 default routes
I need to find some way of telling connman not to default route via the local network, but to just bring it up with its static IP.
2 default routes is actually OK, but only if they both connect to the internet. If I plugged my local network into the modem, it would probably work, but that is crazy routing via a 10mbps local net when I have a 1000mbps direct connection.