Avatar of MichaelBalack
MichaelBalack
Flag 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.
NetworkingUbuntuRaspberry PiHardwareOperating Systems

Avatar of undefined
Last Comment
MichaelBalack

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Dr. Klahn

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
MichaelBalack

ASKER
hi all,

Please see the attachment.
Raspberry-pi.docx
MichaelBalack

ASKER
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.
MichaelBalack

ASKER
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.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes