* daisychain addresses
@ 2004-03-12 9:43 Andrew Langdon-Davies
2004-03-12 14:15 ` chuck gelm
2004-03-12 16:21 ` Ray Olszewski
0 siblings, 2 replies; 6+ messages in thread
From: Andrew Langdon-Davies @ 2004-03-12 9:43 UTC (permalink / raw)
To: linux-newbie
Hello,
In a daisychain network such as this:
fw/router------server------workstation1------workstation2 (these are
descriptions, not real hostnames), how should the addresses be set up?
At the moment, all the machines are on 192.168.0.0. Is this wrong? Each
machine can ping its neighbour but no farther, except for 'server',
which can connect to the Internet via 'fw/router'. But 'workstation1'
cannot ping 'fw/server', even after doing 'route add fw/router gw server
eth0'. Using numerical addresses makes no difference. All my /etc/hosts
list every machine. Daisychaining does not seem to be very much covered
in the documentation I've found. I'm sure I'm making a basic mistake
(apart from being too stingy to invest in hubs or switches or whatever).
Therefore, a basic (and very general) question: What is the correct way
to address machines in this sort of topology?
TIA,
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: daisychain addresses
2004-03-12 9:43 daisychain addresses Andrew Langdon-Davies
@ 2004-03-12 14:15 ` chuck gelm
2004-03-12 14:52 ` Andrew Langdon-Davies
2004-03-12 16:21 ` Ray Olszewski
1 sibling, 1 reply; 6+ messages in thread
From: chuck gelm @ 2004-03-12 14:15 UTC (permalink / raw)
To: Andrew Langdon-Davies; +Cc: linux-newbie
Andrew Langdon-Davies wrote:
> Hello,
> In a daisychain network such as this:
> fw/router------server------workstation1------workstation2 (these are
> descriptions, not real hostnames), how should the addresses be set up?
> At the moment, all the machines are on 192.168.0.0. Is this wrong?
> Each machine can ping its neighbour but no farther, except for
> 'server', which can connect to the Internet via 'fw/router'. But
> 'workstation1' cannot ping 'fw/server', even after doing 'route add
> fw/router gw server eth0'. Using numerical addresses makes no
> difference. All my /etc/hosts list every machine. Daisychaining does
> not seem to be very much covered in the documentation I've found. I'm
> sure I'm making a basic mistake (apart from being too stingy to invest
> in hubs or switches or whatever). Therefore, a basic (and very
> general) question: What is the correct way to address machines in this
> sort of topology?
> TIA,
> Andrew
Hi, Andrew:
Q. "...how should the addresses be set up?"
A. On different networks.
Q. "...Is this wrong?"
A. No if you 'subnet', yes if you do not.
Statement: "But 'workstation1' cannot ping 'fw/server', even after doing
'route add fw/router gw server eth0'."
Comment: I would like to see the output of 'ifconfig' and 'route -n' on
'workstation1'.
You have, at least, one other topology option without adding hardware.
Though,
I'll try to answer your question modified thusly:
"What is ['the correct','a way','a good way'] to address machines in
this sort of topology?".
internet<?>fw/router<192.168.0.1>------<192.168.0.2>server<192.168.1.2>---
---<192.168.1.3>workstation1<192.168.2.3>------<192.168.2.4>workstation2
I think. Your mileage may vary. ;-)
Regards, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: daisychain addresses
2004-03-12 14:15 ` chuck gelm
@ 2004-03-12 14:52 ` Andrew Langdon-Davies
2004-03-12 16:10 ` chuck gelm
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Langdon-Davies @ 2004-03-12 14:52 UTC (permalink / raw)
To: linux-newbie
chuck gelm wrote:
> Andrew Langdon-Davies wrote:
>
>> Hello,
>> In a daisychain network such as this:
>> fw/router------server------workstation1------workstation2 (these are
>> descriptions, not real hostnames), how should the addresses be set up?
>> At the moment, all the machines are on 192.168.0.0. Is this wrong?
>> Each machine can ping its neighbour but no farther, except for
>> 'server', which can connect to the Internet via 'fw/router'. But
>> 'workstation1' cannot ping 'fw/server', even after doing 'route add
>> fw/router gw server eth0'. Using numerical addresses makes no
>> difference. All my /etc/hosts list every machine. Daisychaining does
>> not seem to be very much covered in the documentation I've found. I'm
>> sure I'm making a basic mistake (apart from being too stingy to invest
>> in hubs or switches or whatever). Therefore, a basic (and very
>> general) question: What is the correct way to address machines in this
>> sort of topology?
>> TIA,
>> Andrew
>
> Comment: I would like to see the output of 'ifconfig' and 'route -n' on
> 'workstation1'.
>
[root@p2 root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:A0:24:8C:52:EE
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3767699 errors:0 dropped:0 overruns:0 frame:0
TX packets:2588830 errors:0 dropped:0 overruns:0 carrier:0
collisions:266057 txqueuelen:100
RX bytes:3880255550 (3700.5 Mb) TX bytes:217346015 (207.2 Mb)
Interrupt:5 Base address:0x220
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7417 errors:0 dropped:0 overruns:0 frame:0
TX packets:7417 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6702039 (6.3 Mb) TX bytes:6702039 (6.3 Mb)
[root@p2 root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.0.100 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
> You have, at least, one other topology option without adding hardware.
> Though,
> I'll try to answer your question modified thusly:
> "What is ['the correct','a way','a good way'] to address machines in
> this sort of topology?".
>
> internet<?>fw/router<192.168.0.1>------<192.168.0.2>server<192.168.1.2>---
> ---<192.168.1.3>workstation1<192.168.2.3>------<192.168.2.4>workstation2
>
I suspected that might be the/an answer; I'll try it when I get a
moment. But I don't understand why adding the gw line to the routing
table as described in my original post makes no difference.
Thanks for your time.
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: daisychain addresses
2004-03-12 14:52 ` Andrew Langdon-Davies
@ 2004-03-12 16:10 ` chuck gelm
0 siblings, 0 replies; 6+ messages in thread
From: chuck gelm @ 2004-03-12 16:10 UTC (permalink / raw)
To: Andrew Langdon-Davies; +Cc: linux-newbie
Andrew Langdon-Davies wrote:
> chuck gelm wrote:
>
>> Andrew Langdon-Davies wrote:
>>
>>> Hello,
>>> In a daisychain network such as this:
>>> fw/router------server------workstation1------workstation2 (these are
>>> descriptions, not real hostnames), how should the addresses be set
>>> up? At the moment, all the machines are on 192.168.0.0. Is this
>>> wrong? Each machine can ping its neighbour but no farther, except
>>> for 'server', which can connect to the Internet via 'fw/router'. But
>>> 'workstation1' cannot ping 'fw/server', even after doing 'route add
>>> fw/router gw server eth0'. Using numerical addresses makes no
>>> difference. All my /etc/hosts list every machine. Daisychaining does
>>> not seem to be very much covered in the documentation I've found.
>>> I'm sure I'm making a basic mistake (apart from being too stingy to
>>> invest in hubs or switches or whatever). Therefore, a basic (and
>>> very general) question: What is the correct way to address machines
>>> in this sort of topology?
>>> TIA,
>>> Andrew
>>
>>
>> Comment: I would like to see the output of 'ifconfig' and 'route -n'
>> on 'workstation1'.
>>
> [root@p2 root]# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:A0:24:8C:52:EE
> inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:3767699 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2588830 errors:0 dropped:0 overruns:0 carrier:0
> collisions:266057 txqueuelen:100
> RX bytes:3880255550 (3700.5 Mb) TX bytes:217346015 (207.2 Mb)
> Interrupt:5 Base address:0x220
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:7417 errors:0 dropped:0 overruns:0 frame:0
> TX packets:7417 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:6702039 (6.3 Mb) TX bytes:6702039 (6.3 Mb)
>
> [root@p2 root]# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 192.168.0.100 192.168.0.1 255.255.255.255 UGH 0 0
> 0 eth0
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 0 lo
> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
> 0 eth0
>
>
>> You have, at least, one other topology option without adding
>> hardware. Though,
>> I'll try to answer your question modified thusly:
>> "What is ['the correct','a way','a good way'] to address machines in
>> this sort of topology?".
>>
>> internet<?>fw/router<192.168.0.1>------<192.168.0.2>server<192.168.1.2>---
>>
>> ---<192.168.1.3>workstation1<192.168.2.3>------<192.168.2.4>workstation2
>>
> I suspected that might be the/an answer; I'll try it when I get a
> moment. But I don't understand why adding the gw line to the routing
> table as described in my original post makes no difference.
> Thanks for your time.
> Andrew
Hi, Andrew:
In your topology you show 'workstation1' connecting to both 'server'
and 'workstation2',
yet 'ifconfig' show only one external network device!
You need two external network devices in all hosts except
'workstation2'. :-|
HTH, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: daisychain addresses
2004-03-12 9:43 daisychain addresses Andrew Langdon-Davies
2004-03-12 14:15 ` chuck gelm
@ 2004-03-12 16:21 ` Ray Olszewski
2004-03-12 19:13 ` Andrew Langdon-Davies
1 sibling, 1 reply; 6+ messages in thread
From: Ray Olszewski @ 2004-03-12 16:21 UTC (permalink / raw)
To: linux-newbie
At 10:43 AM 3/12/2004 +0100, Andrew Langdon-Davies wrote:
>Hello,
>In a daisychain network such as this:
>fw/router------server------workstation1------workstation2 (these are
>descriptions, not real hostnames), how should the addresses be set up? At
>the moment, all the machines are on 192.168.0.0. Is this wrong? Each
>machine can ping its neighbour but no farther, except for 'server', which
>can connect to the Internet via 'fw/router'. But 'workstation1' cannot
>ping 'fw/server', even after doing 'route add fw/router gw server eth0'.
>Using numerical addresses makes no difference. All my /etc/hosts list
>every machine. Daisychaining does not seem to be very much covered in the
>documentation I've found. I'm sure I'm making a basic mistake (apart from
>being too stingy to invest in hubs or switches or whatever). Therefore, a
>basic (and very general) question: What is the correct way to address
>machines in this sort of topology?
>TIA,
>Andrew
It depends on what actual topology you are describing by "daisychaining".
Others replying to you seem to be assuming that each host (except the
rightmost one in your representation) has two NICs (Ethernet interfaces).
In that case, you could use a setup something like the following:
Internet
|
eth0
(ext.er.nal.ip)
router
(192.168.1.254)
eth1
|
eth0
(192.168.1.1)
server
(192.168.2.254)
eth1
|
eth0
(192.168.2.1)
workstation1
(192.168.3.254)
eth1
|
eth0
(192.168.3.1)
workstation2
Each system in this daisychain (except workstation2) serves as a router for
the system immediately below it and is that system's default gateway.
Depending on details you haven't provided about what you have in mind,
EITHER --
A. Each system NATs the network immediately below it (so, for
example, traffic from workstation2 to the Internet gets NAT'd 3 times); -OR-
B. Each router has a routing table that allows it to fins ALL the
networks below it in my diagram (so, for example, "router" knows that
"server" is its route to 192.168.2.0/24 and 192.168.3.0/24).
If you are trying approach B here, then the entry "route add fw/router gw
server eth0" does only half the job. On "fw/router", you need an entry
something like "route add workstation1/24 server eth?" (the last ? because
I don't know how your interfaces are assigned).
The other possibility is to run "server" and "workstation1" as bridges
rather than routers. In that case, all the hosts would have addresses on
the same IP network (probably 192.168.1.0/24) and the bridging hosts would
bridge. OR you could use one network and set up "server" and "workstation1"
to proxy-ARP the addresses "below" them.
All this assumes, though, that each system (except workstation2) has 2
NICs. The example ifconfig output you posted in reply to someone else's
request, though, shows only an eth0 in the example host, workstation1. So I
suspect you actually have some different physical setup than what I assume
above (and chuck also assumed, I think). If that's the case, then you're
going to have to describe it more completely and exactly to get real help
with it ... my response above, and the responses of others, are likely not
to apply to your actual setup.
For example, you may trying to describe a thinnet network ... and I must
say that thinnet, not multiple NICs, is the first physical-layer
arrangement I think of when someone mentions "daisychaining". In that case,
only the router has 2 interfaces, and your setup looks something like this:
T
| ----eth1(192.168.1.254) fw/router(ext.er.nal.ip)eth0 ---- Internet
|
| ---- eth0 (192.168.1.1) server
|
| --- eth0 (192.168.1.2) workstation1
|
| --- eth0 (192.168.1.3) workstation2
|
T
(the Ts at top and bottom remind us that thinnet needs hardware terminators
at both ends.)
In this case, all the machines DO belong on the same /24 network, and
fw/router's LAN IP address IS the default gateway for all of them. So
adding route add fw/router gw server eth0' would be incorrect ... though
HOW (or, even possibly, whether) it would fail depends on unreported
details of the configuration of "server".
If we haven't guessed correctly about what you mean by "daisychaining",
please clarify. Specifically:
provide a diagram more in the style of the one I present above
(that is, make it vertical, and include exact interface names and IP
addresses);
include the output of "ifconfig -a" and "netstat -nr" for EVERY
host you want us to troubleshoot;
mention what version of Linux (distro name, distro version, and
kernel version, the last coming from "uname -a") each system is running; and
report the EXACT error associated with every ping that fails.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: daisychain addresses
2004-03-12 16:21 ` Ray Olszewski
@ 2004-03-12 19:13 ` Andrew Langdon-Davies
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Langdon-Davies @ 2004-03-12 19:13 UTC (permalink / raw)
To: linux-newbie
Thank-you all. I think I can see my way from here. I now have something
(more) to work on over the weekend in between mowing lawns. A couple of
clarifications: 'workstation2' doesn't actually exist yet, because I
realised I was doing something wrong. As regards hardware, I have a
roomful of nics, but no lawn-mowers. In fact, there are no lawns round
my end of Barcelona, either. It's all old flats, which is also why my
network diagram was horizontal instead of vertical. If it were vertical
workstation2 would end up in the flat below me, and the lady who lives
there is 90 and....
I promise to give you more details if I don't get it right.
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-03-12 19:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 9:43 daisychain addresses Andrew Langdon-Davies
2004-03-12 14:15 ` chuck gelm
2004-03-12 14:52 ` Andrew Langdon-Davies
2004-03-12 16:10 ` chuck gelm
2004-03-12 16:21 ` Ray Olszewski
2004-03-12 19:13 ` Andrew Langdon-Davies
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox