Odoo POSBOX assign static IP address

时间:2016-10-20 13:08:12

标签: static raspberry-pi odoo-8 dhcp

I'm trying to assign a static ip address to my odoo posbox installed on a raspberry pi. I tried editing the /etc/dhcpcd.conf file by adding

interface eth0
static ip_address=192.168.0.30/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

Also tried editing the /etc/network/interfaces file as so,

auto eth0
    iface eth0 inet static
    address 192.168.0.30
    netmask 255.255.255.0
    gateway 192.168.0.1

Both solutions worked, but whenever I reboot my pc the dhcpcd assigns a new ip address. Tried to disable this:

update-rc.d -f dhcpd remove

2 个答案:

答案 0 :(得分:0)

我也在POS Box工作,但我在动态IP方面没有问题,尽管你可以参考以下链接。它可能很有用,因为这个问题已在odoo社区中提出。

This is odoo community link where this question has been asked.

除此之外,此链接也可能对您有所帮助。

This link is of github document

答案 1 :(得分:0)

POSBOX的动态IP有很多问题。

您必须编辑IMG,为此,请按照以下步骤操作:

https://stefanoprenna.com/blog/2014/09/22/tutorial-how-to-mount-raw-images-img-images-on-linux/

然后,在安装IMG之后,编辑/ etc / network / interfaces文件

auto eth0
iface eth0 inet static
address 192.168.0.30
netmask 255.255.255.0
gateway 192.168.0.1

卸下IMG,然后照常燃烧,祝您好运。