LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-03-2017, 10:12 PM   #1
prashast.srivastava
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled
Not being able to setup a gdbserver connection over a bridged tap interface


Hi so I am trying to remotely debug a binary running in QEMU by running a gdbserver on the emulated guest and then trying to connect to it from the host. I had setup a host-only network using a bridge and a tap interface as given below and even though I am able to ping the guest from the host and vice-versa I am still not able to get gdb to connect remotely to the gdbserver on the guest:

My bridge is setup on the host as given below:

Code:
 brctl addbr br0
 ip addr add 192.168.179.1/24 broadcast 192.168.179.255 dev br0
 ip link set br0 up
To which I then create a tap interface and add to the bridge:

Code:
ip tuntap add dev tap0 mode tap
ip link set tap0 up promisc on
brctl addif br0 tap0
I was then using dnsmasq to get the VM's eth0 be assigned a IP address using the given command.

Code:
dnsmasq --interface=br0 --bind-interfaces --dhcp-range=192.168.179.10,192.168.179.254
I was wondering as to what could be the issue as to why I am not able to connect remotely to the gdbserver even though I am able to ping the guest successfully. Is there a forwarding rule that I need to add or can anyone tell me as to how should I approach this problem? I chose this thread because I feel it's a networking issue and probably there is a routing issue that I need to take care of.
 
Old 05-05-2017, 03:06 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
What's Linux distribution on Host and what's VM om guest?
 
Old 05-05-2017, 03:24 PM   #3
prashast.srivastava
LQ Newbie
 
Registered: May 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Host is Ubuntu 16.04 and guest is a Debian squeeze mipsel 32-bit image which I was emulating using QEMU.
 
Old 05-08-2017, 02:35 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You run GDB target on guest machine and GDB debug client on host machine, don't you?
If so, it might have problem. GDB doesn't request network only. It request CPU too. You might have to use two machine to do your debugging.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bridged VLAN TAP adapter no propagating on bridge interface scheidel21 Linux - Networking 1 01-28-2016 12:34 PM
[SOLVED] Bridging tap interface with ethernet interface rjm1 Linux - Networking 9 09-13-2013 09:29 AM
[SOLVED] KVM Qemu instance bridged tap interface disconnects, cutting me off from the guest rylan76 Linux - Virtualization and Cloud 1 11-07-2012 06:35 AM
Bridged interface not getting input traffic. ndarkduck Linux - Virtualization and Cloud 3 10-18-2010 02:31 PM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-12-2009 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration