LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Temporary failure in name resolution while bridging interfaces (https://www.linuxquestions.org/questions/linux-networking-3/temporary-failure-in-name-resolution-while-bridging-interfaces-4175615626/)

roopkumard19 10-13-2017 06:54 PM

Temporary failure in name resolution while bridging interfaces
 
Hi All,

I'm trying to build a mesh network using batman-adv. My goal is to give internet connectivity to the mesh network. I was able to form a simple mesh network between 2 raspberry pi's. The first Pi is getting the internet connection from my home router through ethernet (eth0) while the wifi interface (wlan0) of both the pi's are used for forming the mesh network via adding them to the batman-adv virtual interface bat0. Now, I bridged the eth0 and bat0 of the first Pi using bridge-utils, so that the mesh network will get the internet connection. When I try to ping from the first Pi to the internet, I'm getting the error "Temporary failure in name resolution". I have also tried to do a NAT forwarding between the two interfaces using Iptables, but it is not working. Please note, only after bridging the ethernet interface (eth0) and the virtual interface (bat0), I'm not able to connect to the internet. I have disabled the dhcpcd and wpa_supplcant as it will interfere with the mesh networks. Here is my /etc/network/interfaces file of the first Pi,

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.102
netmask 255.255.255.0
gateway 192.168.0.1
---------------------------
my /etc/resolv.conf,

nameserver 8.8.8.8
nameserver 127.0.1.1
nameserver 192.168.0.1 #gateway
----------------------------
My exact requirement with a picture can be found here
Kindly let me know where did I go wrong. Appreciate the response!

roopkumard19 10-14-2017 07:36 PM

Problem got resolved. I made a mistake in bridging the interfaces.


All times are GMT -5. The time now is 06:52 AM.