I’m trying to set this up with connman. I’ll contact you as soon as I have more information on how to do this.
This is related to a previous question
I believe I should be using connman in order to set up a static IP over ethernet according to this wiki
$connmanctl services # Take note of the interface you want to modify, the general format for a wired connection is
$connmanctl <service> --ipv4 manual <ip address> <netmask> <gateway>
But so far no luck. Are the '<>' brackets required around the actual service name? I tried both ways... Ditto for the ip,netmask and gateway.
brackets must not be put
In my case - with a USB eth dongle:
# connmanctl services
*AO Wired ethernet_0010600a8c9f_cable
i.e. I'd have to enter something like
connmanctl ethernet_0010600a8c9f_cable --ipv4 manual 192.168.0.42 255.255.255.0 192.168.0.1
does this work? If not, can you pls put what you enter and the output of connman?
Thanks will try!
What's the advantage disadvantage of setting a static IP this way vs thru the actual router config page?
it's a matter of personal preferences. Connman is a lightweight network manager keeping everything for the user in a single place. In contrary you'd have to find your way through multiple config files ... if you want to manage manually
unfortunately doesn't work
Error 'ethernet_0010600a8c9f_cable': unknown command
1 of 1 people found this helpful
ok after looking at the connmanctl -help figured out what was wrong. Missing the config command
$connmanctl config <service> --ipv4 manual <ip address> <netmask> <gateway>
a, yes - sorry, missed to write the config part in my answer ...
Good you figured out
I would like to the same thing, could you please share the commands you used to setup you static ethernet connection?
systemctl start connman
connmanctl disable wifi
6: enp0s17u1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 9c:eb:e8:0f:52:b3 brd ff:ff:ff:ff:ff:ff
connmanctl config ethernet_9cebe80f52b3_cable --ipv4 manual 192.168.0.199 255.255.255.0 192.168.0.1
Error ethernet_9cebe80f52b3_cable: Method "SetProperty" with signature "sv" on interface "net.connman.Service" doesn't exist
Maybe I made an error in the conmmanctl config. Could you please help me?
what does "connmanctl services" give you? In particular I'd liek to check whether ethernet_9cebe80f52b3_cable is correct
I have set a static ip to my Galileo but the problem is it cannot access to internet connection. It gives error while pinging google :
ping www.google.com --> "www.google.com" was bad address....
The problem is changing DCHP to static. So that I think it cannot find google address. I tried to set nameserver as 192.168.1.1 but it did not work for me. Do you have an idea how to correct configuration to access internet again.
- try pinging the IP direct (i.e. 18.104.22.168 rather than google.com) - does this work? if yes, then it's likely only the nameserver
- where / how did you set the nameserver?
- does the static IP you set conflict with the adress range your DHCP is controlling?
Hi, it is not pinging the google addres (22.214.171.124) There is something wrong. My galileo static IP is 192.168.137.241, mask: 255.255.255.0, gateway =192.168.1.1 and the modem local ip = 192.168.1.1,. DHCP controlling range is between 192.168.1.33 and 192.168.1.65. How can make this working. It cannot acces internet connection.
I used this command:
connmanctl config ethernet_#hwaddress#_cable --ipv4 manual 192.168.137.241 255.255.255.0 192.168.1.1
I'd say if the static IP is 192.168.137.x you can't see 192.168.1.* with mask 255.255.255.0.
You would need a gateway in between to route from one to the other subnet.
That's IPv4 and not related to Galileo
btw: if you have an IPv6 setup you may go via IPv6 - no need for DHCP at all that way.
I've found the problem. I shared the network of my laptop over ethernet so that I could not set 192.168.1.* . If it was set 192.168.1.* then I could not connect. Now I connect directly to modem then it is fine now.