I have read quite a few tutorials regarding setting up a static IP for the Pi.
Unfortunately, I haven't been successful in implementing it yet.
My use case is:
- a device is flooding my local network with a video broadcast (my ISP box can't handle it and I lose my wifi network)
- I'd like to use the Pi to catch the broadcast, and reroute it maybe thanks to netcat
- I thought of linking directly the flooding device to the Ethernet to USB adapter... but I don't know if this could work with a straight cable
My Raspbian version is:
Code: Select all
lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
I can see it in ifconfig:
Code: Select all
enx00010a0abc98: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:01:0a:0a:bc:98 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So my /etc/dhcpcd.conf looks like:
Code: Select all
interface enx00010a0abc98
static ip_address 192.168.0.16/24
static routers=192.168.0.254
static domain_name_servers=212.27.40.241
Could anyone help?
Thanks.