WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Two networks, one Netbooting  (Read 6819 times)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Two networks, one Netbooting
« on: September 28, 2013, 08:05:46 AM »
Hello all!

Attached to this message is a chat of the network that I'm trying to do. I have a router connected to the internet acting as a dhcp server to two machines and to the Nebooting server. The server is connected to the internet by eth0. Running the Terminal Server app, the server start to act like a dhcp server in eth1 to let the clients connect. The terminal server app from Core is configured so the server is the gateway of the clients.

The problem so far:
- clients are booting but not surfing the web
- when the Terminal Server starts, the server also stops surfing the web
- the iptables extension is loaded but the followind is not working to solve this:
Code: [Select]
$ sudo modprobe iptable_nat
$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
$ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Any suggestions please?
« Last Edit: October 04, 2013, 04:26:42 PM by Zendrael »

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: Two networks Netbooting
« Reply #1 on: September 28, 2013, 12:00:12 PM »
Nice, clear picture.  Let's start with some obvious details:

0) What version of TC are you using?

1) How are eth0's and eth1's networks configured?  IP of each, netmask, etc like the output of 'ifconfig|grep addr'.  The output of 'route -n' will also be helpful.

2) Aside from just loading the extension and running the app, have you done any configuration, ie configuring the dhcpd, IP interfaces, etc?


Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #2 on: September 28, 2013, 12:53:18 PM »
Hi genec!

The details are:

0) I'm running (Tiny)Core 4.7.7

1) ifconfig and rout output are attached to this message (as I could not copy/paste at the moment of writing).

2) Aside running the app (Core's Terminal Server) and configuring it as it asks, I did nothing else.

Another point is that, if I do NOT use the iptables instructions, the clients boot ok. When I do that, they stop booting too.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Two networks Netbooting
« Reply #3 on: September 28, 2013, 02:09:55 PM »
Code: [Select]
$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward

sudo does not affect redirection.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #4 on: September 29, 2013, 11:57:26 AM »
Hi tinypoodle!

I did exact the same commands as root (and without sudo, of course) and the scenario keeps the same.


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Two networks Netbooting
« Reply #5 on: September 29, 2013, 03:14:09 PM »
I can't understand your drawing, are Machine 01 vs. Terminal 01 & Machine N vs. Terminal N one and the same or not?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #6 on: September 29, 2013, 03:46:17 PM »
Hey tinypoodle!

The machines and terminals are different computers. I just enumerate then as like Machine #1, Machine #2, Machine #3, Machine #N because can be in the future more computers attached directly to the dhcp from the router and are not machines that will run Core ( 1 to N or 1 to X... more than one).

The terminals are computers that will boot to the Core Server computer and, as machines, there will be more than one (in fact there are 6 right now, but will be 8 in the future).

The enumeration or quantity itself is not relevant, the problem is just against the server receiving internet from the router dhcp server thru eth0 and acting like a dhcp server to provide netbooting from eth1 and letting the computers netbooted to run surf the web too.

I think my english is not good enought to explain but I hope that you understood.

Thanks!

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Two networks Netbooting
« Reply #7 on: September 29, 2013, 07:52:16 PM »
The enumeration or quantity itself is not relevant

What is of relevance is the network topology. ;)

What I don't understand is why you don't keep things simple and route traffic of all machines through the router on a single network, while only activating one NIC on Terminal Server. Is there any specific reason not to do so?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #8 on: September 29, 2013, 09:59:27 PM »
Hi Tinypoodle!

The networks are separated because the one with the Terminal Server is a Laboratory for children to learn the basics on computers and we don't want then to mess or to be playing with the network. The other machines on the network (the ones that will not boot to the server) have a intranet system.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Two networks Netbooting
« Reply #9 on: September 30, 2013, 12:07:49 AM »
Hmm, so I got a bit confused following this thread, mainly due to the topic set.

Do I understand correctly that Terminal Server works for you as expected, while your real issue is about turning the same Core box which coincidentally serves for netbooting into a router?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #10 on: September 30, 2013, 06:49:45 AM »
Hi tinypoodle!

Yes! The real issue is to get the Server and the clients to surf the web.

While I don't start the terminal server app on the server, it surfs ok. When I start it, it stops to surf. The clients boot ok but they don't surf the web either.

I'm trying to get all of then online (the other computers directly connected to the router already are ok).

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #11 on: October 01, 2013, 10:59:38 AM »
You can also think like this:
- The server gets and dynamic ip (and internet) trought DHCP in the eth0 interface
- The server must use the eth1 interface to the Terminal Server app
- the clients, will connect thru a switch or hub to the eth1 interface of the server
- the server and the clients must surf the web.


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Two networks Netbooting
« Reply #12 on: October 01, 2013, 04:25:31 PM »
And how do all other interfaces get an IP assigned?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #13 on: October 02, 2013, 07:59:16 AM »
All computers connected to the router get their IP's from the router DHCP. The same with the eth0 in the server.

The eth1 will only be used to provide the DHCP to the clients that will netboot to the server.

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Two networks Netbooting
« Reply #14 on: October 04, 2013, 07:28:20 AM »
The computers that will not boot to the Core Server are running other Linux distros or windows or FreeBSD and the DHCP of the router is necessary because some people connect their cellphones or tablets either.