From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: Skip Tavakkolian Date: Fri, 6 Jul 2018 12:25:01 -0700 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="0000000000008925110570599f3b" Subject: Re: [9fans] Static ip configuration for a standalone cpu server in qemu on Linux Topicbox-Message-UUID: d932c70e-ead9-11e9-9d60-3106f5b1d025 --0000000000008925110570599f3b Content-Type: text/plain; charset="UTF-8" You could use private network addresses (10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16). Your /lib/ndb/local file can then be setup around a subnet like 192.168.9.0/24. According to the following, qemu uses 10.0.2.0/24 when using "user mode networking" and provides a virtual dhcp (10.0.2.2), dns (10.0.2.3) and cifs (10.0.2.4). Using "tap" mode, you get to pick the subnet in qemu-ifup script. https://en.wikibooks.org/wiki/QEMU/Networking On Fri, Jul 6, 2018 at 9:43 AM Alexander Kapshuk < alexander.kapshuk@gmail.com> wrote: > I've installed Plan 9 in qemu on Linux as instructed here: > https://9p.io/wiki/plan9/Installing_Plan_9_on_Qemu/index.html > > Now I'm in the process of converting it into a standalone cpu server. > I'm following the instructions given here: > https://9p.io/wiki/plan9/Configuring_a_Standalone_CPU_Server/index.html > > I would like to configure a static IP address for the cpu server, so I > can drawterm into it from other machines on my home network. > My knowledge of networking is limited. I understand that I need to put > this: > ip/ipconfig -g ether /net/ether0 > > into my /cfg/$sysname/cpurc. > > What I don't understand, and am asking for assistance with, is where > those three ip addresses in the example above have to come from. Do I > add them to the ethernet interface on the host system, or is there a > way to do this from within the Plan 9 system? > > Thanks. > Alexander Kapshuk. > > --0000000000008925110570599f3b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You could use private network addresses (10.0.0.0/8,=C2=A0 172.16.= 0.0/12 or 192.168.0.0/16). Your /= lib/ndb/local file can then be setup around a subnet like 192.168.9.0/24.=C2=A0 According to the following, qemu= uses 10.0.2.0/24 when using "user = mode networking" and provides a virtual dhcp (10.0.2.2), dns (10.0.2.3= ) and cifs (10.0.2.4).=C2=A0 Using "tap" mode, you get to pick th= e subnet in qemu-ifup script.



On Fri, Jul 6, 2018 at 9:43 AM Alexander Kapshuk <alexander.kapshuk@gmail.com> wrot= e:
I've installed Plan 9 in qem= u on Linux as instructed here:
https://9p.io/wiki/plan9/Installing_Pla= n_9_on_Qemu/index.html

Now I'm in the process of converting it into a standalone cpu server. I'm following the instructions given here:
https://9p.io/wiki/plan9/Conf= iguring_a_Standalone_CPU_Server/index.html

I would like to configure a static IP address for the cpu server, so I
can drawterm into it from other machines on my home network.
My knowledge of networking is limited. I understand that I need to put this= :
ip/ipconfig -g <gateway-addr> ether /net/ether0 <ip-addr> <i= p-mask>

into my /cfg/$sysname/cpurc.

What I don't understand, and am asking for assistance with, is where those three ip addresses in the example above have to come from. Do I
add them to the ethernet interface on the host system, or is there a
way to do this from within the Plan 9 system?

Thanks.
Alexander Kapshuk.

--0000000000008925110570599f3b--