Quantcast
Viewing all articles
Browse latest Browse all 4860

Advanced users • I need help with the ip route on my server - RPi4

I want to set my eth0 as the default IP route but when I do so it reverts back to wlan0

I have the metric for eth0 set to 100 and wlan0 set to 500 in the /etc/dhcpcd.conf so it could make eth0 more important but it still does not work if I run the `sudo ip route add default via 192.168.86.1 dev eth0 metric 100` command it works but when I restart the server the ip route reverts back to `192.168.86.0/24 dev eth0 proto dhcp scope link src 192.168.86.160 metric 100` I have provided what my dhcpcd.conf file looks like on the server.

/etc/dhcpcd.conf
```
interface eth0
static ip_address=192.168.86.160/24
static routers=192.168.86.1
static domain_name_servers=192.168.86.1
metric 100

interface wlan0
denyinterfaces wlan0
metric 5000
```

Statistics: Posted by mas6y6 — Fri Jul 05, 2024 12:33 am



Viewing all articles
Browse latest Browse all 4860

Trending Articles