Skip to Content
Menu
This question has been flagged
2 Replies
8383 Views

I have install POSBox v15 on a Raspberry Pi and I'm trying to connect to it via ethernet

While DHCP should assign an IP address on 192.168.0.X, 192.168.1.X or 10.0.0.X address range, my LAN is on 192.168.50.X range. So as the setup guide says (https://www.odoo.com/documentation/user/10.0//point_of_sale/overview/setup.html#troubleshoot),
I should manually setup the ip address of my POSBox.
But what the guide doesn't say is how to manually setup an IP Address for the POSBox...

So far I haven't been able to successfully change the ip address for the eth0 interface...

I tried to assign an ip address with ifconfig, change /etc/dhcpcd.conf and /etc/network/interfaces but all of these config changes are reset after a reboot of the POSBox. I would like my config to be persistent.

I also tried to put a static IP Address by entering the POSBox eth0 interface's MAC address in the router config but it didn't assign any IP address on the eth0.


Avatar
Discard
Best Answer

Hey,

since the posbox reads the config to the ram you need to edit the proper folder.

Enclosed are the steps for configuring  a static IP:


$>sudo  mount -o remount,rw /root_bypass_ramdisks

File /root_bypass_ramdisks/etc/dhcpcd.conf :add your config to the end of the file

interface eth0
static ip_address=10.0.1.60/24
static routers=10.0.1.1
static domain_name_servers=8.8.8.8 8.8.4.4

Avatar
Discard
Best Answer

From experience, you don't have to setup as noted with the IP addresses in the range 192.168.0.X, 192.168.1.X, 10.0.0.X. My network address is 192.168.3.0/24. My POSBox has not issue accessing from the POS.  When POSBox completed startup, it should print a "welcome message" to the printer specifying the IP address.

Base on the original post, am I correct to say you have try to setup /etc/dhcpcd.conf on the POSBOX? If so, I don't think you need to do this. You don't need to touch network configuration of the POSBOX at all. It is meant to be used as a blackbox.

Assuming you've setup your existing DHCP Server on your network correctly, POSBOX should just get dynamic IP from the DHCP server. If you must, you can set your DHCP server to assign static IP address for the POSBOX using the MAC address of the POSBOX. Though, I don't see any reason for this at all.

So I would suggest you to look at your DHCP server first.

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 19
2836
3
Dec 22
2341
1
Sep 21
2450
3
Jun 20
6761
1
Apr 20
5469