9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Networking questions.
@ 2025-01-25 13:42 Pär Moberg
  2025-01-25 18:01 ` adventures in9
  0 siblings, 1 reply; 7+ messages in thread
From: Pär Moberg @ 2025-01-25 13:42 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

Hi,
I have built my file & auth server and got it running somewhat.
I have two network cards and only one is configured, where do I read about
configure a second card?
//Pär

[-- Attachment #2: Type: text/html, Size: 269 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Networking questions.
  2025-01-25 13:42 [9front] Networking questions Pär Moberg
@ 2025-01-25 18:01 ` adventures in9
  2025-01-25 21:40   ` Pär Moberg
  0 siblings, 1 reply; 7+ messages in thread
From: adventures in9 @ 2025-01-25 18:01 UTC (permalink / raw)
  To: 9front

You can configure the second network device through '#l1'

The kernel device name for network device is #l (that's a lower case
L).  The first device, the one likely configured at boot will be #l0.
The next one will be #l1.

You get a directory by default to configure alternate networks, /net.alt .

You add the other network device to /net.alt;
bind -b '#l1' /net.alt

Then add a network stack, IP, TCP, etc. with the #I device (an upper case i);
bind -b '#I1' /net.alt

And add TLS since it is useful;
bind -b '#a' /net.alt

Then you run ipconfig, but specify the alternate networking stack;
ip/ipconfig -x /net.alt (add your gateway, IP , etc)

Some programs can be used with it be just adding the location of the
second network stack;
ip/ping google.com /net.alt

Or, you can bind /net.alt over /net, and programs will just read whats
in /net by default;
bind /net.alt /net
ip/ping google.com

The trick after that is to understand the effects of per-process
namespaces, and how to get the second network stack to be seen and
used by other processes.

On Sat, Jan 25, 2025 at 5:44 AM Pär Moberg <ghostdewolf@gmail.com> wrote:
>
> Hi,
> I have built my file & auth server and got it running somewhat.
> I have two network cards and only one is configured, where do I read about configure a second card?
> //Pär

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Networking questions.
  2025-01-25 18:01 ` adventures in9
@ 2025-01-25 21:40   ` Pär Moberg
  2025-01-25 23:30     ` adventures in9
  0 siblings, 1 reply; 7+ messages in thread
From: Pär Moberg @ 2025-01-25 21:40 UTC (permalink / raw)
  To: 9front

Could I copy net.alt to net.giga and just point stuff there instead?
My file/auth server (storefront) is quite "weak",Intel Atom 230, and
has only a 100Mbit on board and but it has a RTL8169 1Gbit card for
the CPU (powerfront1) to use hence the net.giga in the question.

The next question is how I setup ip routing so I can go from something
on 'net.giga' (192.168.99.x) port to the internet on 'net' (whatever
the home router sets) port?
The question after that is how do I setup the reverse on storefront so
I can term/drawterm into 'powerfront1' without port forwarding? (I
probably have to manually setup some routes on my Linux boxes that
live outside the 99 network.)
I don't dare to fiddle with the home internet router for family
approval reasons.
//Pär
Ps. I don't have a need for a firewall per se since I have a home
internet router in the way.

On Sat, 25 Jan 2025 at 19:05, adventures in9 <adventuresin9@gmail.com> wrote:
>
> You can configure the second network device through '#l1'
>
> The kernel device name for network device is #l (that's a lower case
> L).  The first device, the one likely configured at boot will be #l0.
> The next one will be #l1.
>
> You get a directory by default to configure alternate networks, /net.alt .
>
> You add the other network device to /net.alt;
> bind -b '#l1' /net.alt
>
> Then add a network stack, IP, TCP, etc. with the #I device (an upper case i);
> bind -b '#I1' /net.alt
>
> And add TLS since it is useful;
> bind -b '#a' /net.alt
>
> Then you run ipconfig, but specify the alternate networking stack;
> ip/ipconfig -x /net.alt (add your gateway, IP , etc)
>
> Some programs can be used with it be just adding the location of the
> second network stack;
> ip/ping google.com /net.alt
>
> Or, you can bind /net.alt over /net, and programs will just read whats
> in /net by default;
> bind /net.alt /net
> ip/ping google.com
>
> The trick after that is to understand the effects of per-process
> namespaces, and how to get the second network stack to be seen and
> used by other processes.
>
> On Sat, Jan 25, 2025 at 5:44 AM Pär Moberg <ghostdewolf@gmail.com> wrote:
> >
> > Hi,
> > I have built my file & auth server and got it running somewhat.
> > I have two network cards and only one is configured, where do I read about configure a second card?
> > //Pär

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Networking questions.
  2025-01-25 21:40   ` Pär Moberg
@ 2025-01-25 23:30     ` adventures in9
  2025-01-25 23:43       ` ron minnich
  0 siblings, 1 reply; 7+ messages in thread
From: adventures in9 @ 2025-01-25 23:30 UTC (permalink / raw)
  To: 9front

Here are some examples I wrote about for various networking setups;
https://github.com/adventuresin9/NetworkRecipes

Or go look up some of my videos, you might find something close to
what you are trying to do;
https://youtube.com/@adventuresin9

On Sat, Jan 25, 2025 at 1:45 PM Pär Moberg <ghostdewolf@gmail.com> wrote:
>
> Could I copy net.alt to net.giga and just point stuff there instead?
> My file/auth server (storefront) is quite "weak",Intel Atom 230, and
> has only a 100Mbit on board and but it has a RTL8169 1Gbit card for
> the CPU (powerfront1) to use hence the net.giga in the question.
>
> The next question is how I setup ip routing so I can go from something
> on 'net.giga' (192.168.99.x) port to the internet on 'net' (whatever
> the home router sets) port?
> The question after that is how do I setup the reverse on storefront so
> I can term/drawterm into 'powerfront1' without port forwarding? (I
> probably have to manually setup some routes on my Linux boxes that
> live outside the 99 network.)
> I don't dare to fiddle with the home internet router for family
> approval reasons.
> //Pär
> Ps. I don't have a need for a firewall per se since I have a home
> internet router in the way.
>
> On Sat, 25 Jan 2025 at 19:05, adventures in9 <adventuresin9@gmail.com> wrote:
> >
> > You can configure the second network device through '#l1'
> >
> > The kernel device name for network device is #l (that's a lower case
> > L).  The first device, the one likely configured at boot will be #l0.
> > The next one will be #l1.
> >
> > You get a directory by default to configure alternate networks, /net.alt .
> >
> > You add the other network device to /net.alt;
> > bind -b '#l1' /net.alt
> >
> > Then add a network stack, IP, TCP, etc. with the #I device (an upper case i);
> > bind -b '#I1' /net.alt
> >
> > And add TLS since it is useful;
> > bind -b '#a' /net.alt
> >
> > Then you run ipconfig, but specify the alternate networking stack;
> > ip/ipconfig -x /net.alt (add your gateway, IP , etc)
> >
> > Some programs can be used with it be just adding the location of the
> > second network stack;
> > ip/ping google.com /net.alt
> >
> > Or, you can bind /net.alt over /net, and programs will just read whats
> > in /net by default;
> > bind /net.alt /net
> > ip/ping google.com
> >
> > The trick after that is to understand the effects of per-process
> > namespaces, and how to get the second network stack to be seen and
> > used by other processes.
> >
> > On Sat, Jan 25, 2025 at 5:44 AM Pär Moberg <ghostdewolf@gmail.com> wrote:
> > >
> > > Hi,
> > > I have built my file & auth server and got it running somewhat.
> > > I have two network cards and only one is configured, where do I read about configure a second card?
> > > //Pär

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Networking questions.
  2025-01-25 23:30     ` adventures in9
@ 2025-01-25 23:43       ` ron minnich
  2025-01-30 19:41         ` Pär Moberg
  0 siblings, 1 reply; 7+ messages in thread
From: ron minnich @ 2025-01-25 23:43 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 3643 bytes --]

just one thing here: "Could I copy net.alt to net.giga and just point stuff
there instead?"

you would never want to do that. It would not really end well to copy those
directories around.

You can use net.alt.

Don't forget there is nothing special about the name net.alt, it is a
convention that many programs use, nothing more.

Note that there is really nothing special about the name net. It's a
convention. It's a place that things get bound to, but if you were so
inclined, you could rebuild everything to look in /zog and it would work.





On Sat, Jan 25, 2025 at 3:36 PM adventures in9 <adventuresin9@gmail.com>
wrote:

> Here are some examples I wrote about for various networking setups;
> https://github.com/adventuresin9/NetworkRecipes
>
> Or go look up some of my videos, you might find something close to
> what you are trying to do;
> https://youtube.com/@adventuresin9
>
> On Sat, Jan 25, 2025 at 1:45 PM Pär Moberg <ghostdewolf@gmail.com> wrote:
> >
> > Could I copy net.alt to net.giga and just point stuff there instead?
> > My file/auth server (storefront) is quite "weak",Intel Atom 230, and
> > has only a 100Mbit on board and but it has a RTL8169 1Gbit card for
> > the CPU (powerfront1) to use hence the net.giga in the question.
> >
> > The next question is how I setup ip routing so I can go from something
> > on 'net.giga' (192.168.99.x) port to the internet on 'net' (whatever
> > the home router sets) port?
> > The question after that is how do I setup the reverse on storefront so
> > I can term/drawterm into 'powerfront1' without port forwarding? (I
> > probably have to manually setup some routes on my Linux boxes that
> > live outside the 99 network.)
> > I don't dare to fiddle with the home internet router for family
> > approval reasons.
> > //Pär
> > Ps. I don't have a need for a firewall per se since I have a home
> > internet router in the way.
> >
> > On Sat, 25 Jan 2025 at 19:05, adventures in9 <adventuresin9@gmail.com>
> wrote:
> > >
> > > You can configure the second network device through '#l1'
> > >
> > > The kernel device name for network device is #l (that's a lower case
> > > L).  The first device, the one likely configured at boot will be #l0.
> > > The next one will be #l1.
> > >
> > > You get a directory by default to configure alternate networks,
> /net.alt .
> > >
> > > You add the other network device to /net.alt;
> > > bind -b '#l1' /net.alt
> > >
> > > Then add a network stack, IP, TCP, etc. with the #I device (an upper
> case i);
> > > bind -b '#I1' /net.alt
> > >
> > > And add TLS since it is useful;
> > > bind -b '#a' /net.alt
> > >
> > > Then you run ipconfig, but specify the alternate networking stack;
> > > ip/ipconfig -x /net.alt (add your gateway, IP , etc)
> > >
> > > Some programs can be used with it be just adding the location of the
> > > second network stack;
> > > ip/ping google.com /net.alt
> > >
> > > Or, you can bind /net.alt over /net, and programs will just read whats
> > > in /net by default;
> > > bind /net.alt /net
> > > ip/ping google.com
> > >
> > > The trick after that is to understand the effects of per-process
> > > namespaces, and how to get the second network stack to be seen and
> > > used by other processes.
> > >
> > > On Sat, Jan 25, 2025 at 5:44 AM Pär Moberg <ghostdewolf@gmail.com>
> wrote:
> > > >
> > > > Hi,
> > > > I have built my file & auth server and got it running somewhat.
> > > > I have two network cards and only one is configured, where do I read
> about configure a second card?
> > > > //Pär
>

[-- Attachment #2: Type: text/html, Size: 5407 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Networking questions.
  2025-01-25 23:43       ` ron minnich
@ 2025-01-30 19:41         ` Pär Moberg
  2025-02-03 21:07           ` Pär Moberg
  0 siblings, 1 reply; 7+ messages in thread
From: Pär Moberg @ 2025-01-30 19:41 UTC (permalink / raw)
  To: 9front

Thank you for the read.
Where does the settings that the installer set end up? I need to
change the interface/network card it uses for /net.

On Sun, 26 Jan 2025 at 00:46, ron minnich <rminnich@gmail.com> wrote:
>
> just one thing here: "Could I copy net.alt to net.giga and just point stuff there instead?"
>
> you would never want to do that. It would not really end well to copy those directories around.
>
> You can use net.alt.
>
> Don't forget there is nothing special about the name net.alt, it is a convention that many programs use, nothing more.
>
> Note that there is really nothing special about the name net. It's a convention. It's a place that things get bound to, but if you were so inclined, you could rebuild everything to look in /zog and it would work.
>
>
>
>
>
> On Sat, Jan 25, 2025 at 3:36 PM adventures in9 <adventuresin9@gmail.com> wrote:
>>
>> Here are some examples I wrote about for various networking setups;
>> https://github.com/adventuresin9/NetworkRecipes
>>
>> Or go look up some of my videos, you might find something close to
>> what you are trying to do;
>> https://youtube.com/@adventuresin9
>>
>> On Sat, Jan 25, 2025 at 1:45 PM Pär Moberg <ghostdewolf@gmail.com> wrote:
>> >
>> > Could I copy net.alt to net.giga and just point stuff there instead?
>> > My file/auth server (storefront) is quite "weak",Intel Atom 230, and
>> > has only a 100Mbit on board and but it has a RTL8169 1Gbit card for
>> > the CPU (powerfront1) to use hence the net.giga in the question.
>> >
>> > The next question is how I setup ip routing so I can go from something
>> > on 'net.giga' (192.168.99.x) port to the internet on 'net' (whatever
>> > the home router sets) port?
>> > The question after that is how do I setup the reverse on storefront so
>> > I can term/drawterm into 'powerfront1' without port forwarding? (I
>> > probably have to manually setup some routes on my Linux boxes that
>> > live outside the 99 network.)
>> > I don't dare to fiddle with the home internet router for family
>> > approval reasons.
>> > //Pär
>> > Ps. I don't have a need for a firewall per se since I have a home
>> > internet router in the way.
>> >
>> > On Sat, 25 Jan 2025 at 19:05, adventures in9 <adventuresin9@gmail.com> wrote:
>> > >
>> > > You can configure the second network device through '#l1'
>> > >
>> > > The kernel device name for network device is #l (that's a lower case
>> > > L).  The first device, the one likely configured at boot will be #l0.
>> > > The next one will be #l1.
>> > >
>> > > You get a directory by default to configure alternate networks, /net.alt .
>> > >
>> > > You add the other network device to /net.alt;
>> > > bind -b '#l1' /net.alt
>> > >
>> > > Then add a network stack, IP, TCP, etc. with the #I device (an upper case i);
>> > > bind -b '#I1' /net.alt
>> > >
>> > > And add TLS since it is useful;
>> > > bind -b '#a' /net.alt
>> > >
>> > > Then you run ipconfig, but specify the alternate networking stack;
>> > > ip/ipconfig -x /net.alt (add your gateway, IP , etc)
>> > >
>> > > Some programs can be used with it be just adding the location of the
>> > > second network stack;
>> > > ip/ping google.com /net.alt
>> > >
>> > > Or, you can bind /net.alt over /net, and programs will just read whats
>> > > in /net by default;
>> > > bind /net.alt /net
>> > > ip/ping google.com
>> > >
>> > > The trick after that is to understand the effects of per-process
>> > > namespaces, and how to get the second network stack to be seen and
>> > > used by other processes.
>> > >
>> > > On Sat, Jan 25, 2025 at 5:44 AM Pär Moberg <ghostdewolf@gmail.com> wrote:
>> > > >
>> > > > Hi,
>> > > > I have built my file & auth server and got it running somewhat.
>> > > > I have two network cards and only one is configured, where do I read about configure a second card?
>> > > > //Pär

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Networking questions.
  2025-01-30 19:41         ` Pär Moberg
@ 2025-02-03 21:07           ` Pär Moberg
  0 siblings, 0 replies; 7+ messages in thread
From: Pär Moberg @ 2025-02-03 21:07 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 4561 bytes --]

I found a half solution to my problem. I found that in plan9.ini you can
select which driver to probe for which etherX and since the on board fast
lan shows up as rtl8169 (actually is a RTL8101E/RTL8102) and my giga lan
card is a rtl8169 that didn't work so I ordered a Intel giga lan card and
hopes that it solves my problem.

Den tors 30 jan. 2025 20:41Pär Moberg <ghostdewolf@gmail.com> skrev:

> Thank you for the read.
> Where does the settings that the installer set end up? I need to
> change the interface/network card it uses for /net.
>
> On Sun, 26 Jan 2025 at 00:46, ron minnich <rminnich@gmail.com> wrote:
> >
> > just one thing here: "Could I copy net.alt to net.giga and just point
> stuff there instead?"
> >
> > you would never want to do that. It would not really end well to copy
> those directories around.
> >
> > You can use net.alt.
> >
> > Don't forget there is nothing special about the name net.alt, it is a
> convention that many programs use, nothing more.
> >
> > Note that there is really nothing special about the name net. It's a
> convention. It's a place that things get bound to, but if you were so
> inclined, you could rebuild everything to look in /zog and it would work.
> >
> >
> >
> >
> >
> > On Sat, Jan 25, 2025 at 3:36 PM adventures in9 <adventuresin9@gmail.com>
> wrote:
> >>
> >> Here are some examples I wrote about for various networking setups;
> >> https://github.com/adventuresin9/NetworkRecipes
> >>
> >> Or go look up some of my videos, you might find something close to
> >> what you are trying to do;
> >> https://youtube.com/@adventuresin9
> >>
> >> On Sat, Jan 25, 2025 at 1:45 PM Pär Moberg <ghostdewolf@gmail.com>
> wrote:
> >> >
> >> > Could I copy net.alt to net.giga and just point stuff there instead?
> >> > My file/auth server (storefront) is quite "weak",Intel Atom 230, and
> >> > has only a 100Mbit on board and but it has a RTL8169 1Gbit card for
> >> > the CPU (powerfront1) to use hence the net.giga in the question.
> >> >
> >> > The next question is how I setup ip routing so I can go from something
> >> > on 'net.giga' (192.168.99.x) port to the internet on 'net' (whatever
> >> > the home router sets) port?
> >> > The question after that is how do I setup the reverse on storefront so
> >> > I can term/drawterm into 'powerfront1' without port forwarding? (I
> >> > probably have to manually setup some routes on my Linux boxes that
> >> > live outside the 99 network.)
> >> > I don't dare to fiddle with the home internet router for family
> >> > approval reasons.
> >> > //Pär
> >> > Ps. I don't have a need for a firewall per se since I have a home
> >> > internet router in the way.
> >> >
> >> > On Sat, 25 Jan 2025 at 19:05, adventures in9 <adventuresin9@gmail.com>
> wrote:
> >> > >
> >> > > You can configure the second network device through '#l1'
> >> > >
> >> > > The kernel device name for network device is #l (that's a lower case
> >> > > L).  The first device, the one likely configured at boot will be
> #l0.
> >> > > The next one will be #l1.
> >> > >
> >> > > You get a directory by default to configure alternate networks,
> /net.alt .
> >> > >
> >> > > You add the other network device to /net.alt;
> >> > > bind -b '#l1' /net.alt
> >> > >
> >> > > Then add a network stack, IP, TCP, etc. with the #I device (an
> upper case i);
> >> > > bind -b '#I1' /net.alt
> >> > >
> >> > > And add TLS since it is useful;
> >> > > bind -b '#a' /net.alt
> >> > >
> >> > > Then you run ipconfig, but specify the alternate networking stack;
> >> > > ip/ipconfig -x /net.alt (add your gateway, IP , etc)
> >> > >
> >> > > Some programs can be used with it be just adding the location of the
> >> > > second network stack;
> >> > > ip/ping google.com /net.alt
> >> > >
> >> > > Or, you can bind /net.alt over /net, and programs will just read
> whats
> >> > > in /net by default;
> >> > > bind /net.alt /net
> >> > > ip/ping google.com
> >> > >
> >> > > The trick after that is to understand the effects of per-process
> >> > > namespaces, and how to get the second network stack to be seen and
> >> > > used by other processes.
> >> > >
> >> > > On Sat, Jan 25, 2025 at 5:44 AM Pär Moberg <ghostdewolf@gmail.com>
> wrote:
> >> > > >
> >> > > > Hi,
> >> > > > I have built my file & auth server and got it running somewhat.
> >> > > > I have two network cards and only one is configured, where do I
> read about configure a second card?
> >> > > > //Pär
>

[-- Attachment #2: Type: text/html, Size: 6844 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-02-03 21:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-25 13:42 [9front] Networking questions Pär Moberg
2025-01-25 18:01 ` adventures in9
2025-01-25 21:40   ` Pär Moberg
2025-01-25 23:30     ` adventures in9
2025-01-25 23:43       ` ron minnich
2025-01-30 19:41         ` Pär Moberg
2025-02-03 21:07           ` Pär Moberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).