I have qemu guest instance which has an interface with 192.168.0.4
static ip address. Also there is virtual interface tap0
without ip address and br0
which has 192.168.0.3
ip address on the host.
There are the commands which I used to set up bridge:
ip link add br0 type bridge
ip addr flush dev br0
ip addr add 192.168.0.3/24 brd 192.168.0.255 dev br0
ip tuntap add mode tap user $(whoami)
ip link set tap0 master br0
ip link set dev br0 up
ip link set dev tap0 up
A web-server is running inside qemu. When I try to perform simple get request with curl like this curl 192.168.0.4:8080
from the host, I get No route to host
error message. But if I perform the same request by python httplib.HTTPConnection("192.168.0.4:8080")
,
I receive response 200 OK
.
Could you please give me an advice to solve this issue with curl.