Skip to main content

Adding IP Routes on Raspberry Pi

STEPS:

- Open a terminal and type in sudo nano /etc/network/interfaces.d/

- Add and modify the below interface and route configuration

auto eth0
iface eth0 inet dhcp
    up ip route add 192.168.50.0/24 via 192.168.1.1

 

- Save and close the file

 

- Restart the networking service:

 

sudo systemctl restart networking