New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http-fetch fails with DNS resovle error. #169
Comments
A shot in the dark: try |
Unfortunately it doesn't solve it. |
From the documentation:
So it means that I have to make a network bridge to make it work? |
Well, I tried to solve it with a network bridge, but it just got worse. |
dns example also doesn't work for me: ARP: sending gratuitous from 10.0.0.2 |
Not sure how familiar you are with bridges, but note that you need to take down your current network connection, reassign your IP address to the bridge, and add the physical interface to the bridge. Any additional interfaces you add to the bridge will now have direct access to the network without IP forwarding. One thing which may go wrong with the bridged solution is that your gateway may filter packages coming from networks which it is not set up to handle. This is probably then case if tcpdump tells you that packages leave the physical interface. You might then try to use an IP in the right range but be careful to avoid conflicts, reconfigure the router, or configure your own machine to masquerade the device as itself using iptables. For masquerading I think you may need to use IP forwarding instead of a bridge, at least that's what I'm used to. (I assume you are running your own router. If not, the only options are getting an IP number from your sysadmin, or using masquerading.) |
Ok, I tried to do it with a bridge:
output:
|
There is probably no 10.0.0.1 gateway on your net. You can see the default route of your computer with |
Since mirage supports dhcp, the easiest is to pass |
Thanks. I was missing the --dhcp=true flag. Now http-fetch and dns example is working correctly. |
My system:
Ubuntu 16.04
I use the public google dns(8.8.8.8) for my computer
Ocaml version: 4.02.3
Mirage version: 2.9.1
Run as unix
Steps I did:
The console log
The text was updated successfully, but these errors were encountered: