Link to home
Start Free TrialLog in
Avatar of MichaelBalack
MichaelBalackFlag for Singapore

asked on

Why adding default gateway for raspberry pi failed?

This is using a raspberry-pi. My co-worker has defined a bridge called br-lan on top of the physical eth0. Please see attached docx for ifconfig command. Please also see the networking settings on /etc/network/interfaces, /etc/network/interfaces.d/br-lan, and /etc/dhcpcd.conf files. See the ip addressing settings of br-lan as follows:

       ip - 192.168.100.199
       mask - 255.255.255.0
      default gateway - 192.168.100.2
     dns - 203.211.152.66

However, the default gateway setting doesn't seem to work. Please see the results of route -n. I also try to set br-lan to dhcp, and the result is, eth0 grabs the ip - 192.168.100.199.

Appreciate for any help. Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Dr. Klahn
Dr. Klahn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MichaelBalack

ASKER

hi all,

Please see the attachment.
Raspberry-pi.docx
Hi all,

problem sorted out. The root cause is not on this raspberry pi, rather it is on the firewall. Default gateway is defined correctly, with routes work perfectly. This is what we sorted out.
Thanks for expert - Dr Klahn in pointing out that the default gateway is working. Yes, nothing wrong with the raspberry pi, instead, the firewall is the culprit.