Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
10443 Lượt xem

Good day all

I am using posbox 13 on a raspberry pi.  I downloaded the imagine and loaded it and it works great except that I can't set a static ip address on it. When I run ifconfig initially there was no eth01 listed although it was working over lan.  

Then after running many commands from a support article I now see it in ifconfig.  However no matter what I do to try set the address as static every time the router (and the device giving out dhcp leases) restarts the posbox gets a new ip address 


This is causing massive problems 


Please help! 


Thanks 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You can set the static IP from router itself (for this MAC Address).

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

In case anyone needs it here the link:

https://odootips.com/ip-estática-en-posbox-8843a763216

Here an extract:

sudo ssh into raspberry (you can look the ip if you attach a monitor to it), then execute this:

sudo mount -o rw,remount /
sudo mount -o remount,rw /root_bypass_ramdisks
sudo nano /root_bypass_ramdisks/etc/dhcpcd.conf
ADD to the file in the last lines:

interface eth0 <--- this is the name of your card, and here the static ip is .150
static ip_address=192.168.1.150/24
static routes=192.168.1.1
static domain_name_servers=192.168.1.150

after you save the changes, reboot and done.

Ảnh đại diện
Huỷ bỏ

Should be 'static routers' instead of 'static routes'

Câu trả lời hay nhất

If your RPi get the IP from the DHCP, on your router/DHCP may have a feature to fix the IP to MAC address.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks guys


That was simple enough!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
ePoS Printer Đã xử lý
2
thg 6 24
1883
3
thg 12 22
5862
0
thg 11 19
3205
0
thg 2 18
2848
1
thg 10 19
10365