Why adding default gateway for raspberry pi failed?

MichaelBalack
MichaelBalack used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Principal Software Engineer
Commented:
Is there, in fact, a device such as a fiber modem on the network at address 192.168.100.2 which is capable of acting as a gateway?
MichaelBalackSenior System Engineer

Author

Commented:
hi all,

Please see the attachment.
Raspberry-pi.docx
MichaelBalackSenior System Engineer

Author

Commented:
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.
MichaelBalackSenior System Engineer

Author

Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial