summaryrefslogtreecommitdiff
path: root/hurd/running/qemu/networking.mdwn
blob: 0c8e0ae89b3c87f619e5bfdb4b2f239da8ab74e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[[!meta copyright="Copyright © 2007, 2008, 2013 Free Software Foundation,
Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

## User mode network

This is the default networking option for qemu.  This does not require root
previleges.  If you have DHCP running it will take the ip as 10.0.2.15

You can setup an ip 10.0.2.*
Gateway is 10.0.2.2
Name server is 10.0.2.3
Netmask is 255.255.255.0

You can setup the pfinet translator with the command

    $ settrans -fgap /servers/socket/2 /hurd/pfinet -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0

Configure nameserver in /etc/resolve.conf

    nameserver 10.0.2.3

Setup a proxy with the command

    $ export http_proxy="http://<proxy.com>:<port>"

Note: you can add this to your /etc/profile file so that every time you don't
have to setup this.

If you are using a direct connection to internet install a proxy server on the
host os and use this.  (I was not able to use it without proxy)

You might be able to do it using iptables, some clues
<http://sujith-h.livejournal.com/9520.html>

Use scp,ftp... to transfer files, read about [[sharing_files]].