Thread View: comp.os.linux.networking
2 messages
2 total messages
Started by Casey Claiborne
Wed, 03 Apr 1996 15:09
ISDN, networking and machines - oh my!
Author: Casey Claiborne
Date: Wed, 03 Apr 1996 15:09
Date: Wed, 03 Apr 1996 15:09
86 lines
3547 bytes
3547 bytes
Hi,
I have a problem that I am hoping someone out there can help
me solve. I have a small network consisting of the following
1. A 486 SX 33Mhz w/a 3COM 3c509 (ISA bus) Ethernet card
2. A Pentium 120Mhz w/a 3COM 3c590 (PCI bus) Ethernet card
3. A 6 port hub
4. An Ascend 25 router.
----------- ----------- -------------
| 486 SX | --------|------| HUB |------| Ascend 25 |
----------- | ----------- -------------
|
|
----------- |
|Pentium | --------|
-----------
I wanted to connect the two computers to the hub and then the hub,
in turn, would be connected to the router. After which the router
is connected to the ISDN provider.
Ok -
The people who provided the ISDN said that they could connect the
two machines together as well. So - they did but the problem is
that the two machines will talk to each other *only* when the
ISDN line is up (I signed up for dial-up ISDN).
The second thing is that I wanted to have the option of
having the 486 SX machine come up in stand alone function. In
other words, I would like that 486 not be connected to the network.
When this machine is functioning "stand alone", I want to be
able to use the ppp0 interface to dial out to another provider.
Reason:
The Pentium machine is to be accessed by the outside
world all of the time. The 486 SX machine and the Pentium
machine are to be connected only when backups are needed.
(The tape backup is on the 486 SX machine and I was thinking
that I could remote mount the disks on the Pentium machine
and then back them up).
While I am on the 486 SX Machine (in stand alone),
I might occasionally want to connect to the outside world
to download something. With ppp0, I can start the connection,
get what I need, and then disconnect it by killing the process.
Also, the ISDN address is static, the PPP0 address is assigned
dynamically, I thought that people would be less likely to
be able to ransack the 486SX machine if it (the machine) was
associated with an address that is assigned dynamically. Additionally,
this provider offers newsgroups, shell, mail, etc. while the ISDN
provider offers ISDN *only*.
| ppp0 (IP address assigned from provider is dynamic)
|
----------- ----------- -------------
| 486 SX | |------| HUB |------| Ascend 25 |
----------- | ----------- -------------
|
|
----------- |
|Pentium | --------|
-----------
One of the installation people said that I could just reboot
the system and choose a kernel that does not have the
3c509 card defined as part of it - but I cant get the
ppp0 interface working after doing this.
After doing lots of testing, I have found that the reason
why the two machines will not talk to each is other is a
routing problem.
I dont know if it is possible for it (the routing table) to
be set up to talk to two 2 different providers - any help,
hints or advice on this would be *greatly* appreciatd :)
Sorry about the length - I just wanted to be clear.
TIA
Casey
Re: ISDN, networking and machines - oh my!
Author: Christopher Cradock
Date: Thu, 04 Apr 1996 08:31
Date: Thu, 04 Apr 1996 08:31
79 lines
4081 bytes
4081 bytes
Casey Claiborne wrote: > --cut-- > > After doing lots of testing, I have found that the reason > why the two machines will not talk to each is other is a > routing problem. > > Casey Casey you hit it on the head there. You need to do the following: The router's port on the ISDN side gets the IP address provided to you by the service provider. The provider also needs to give you a network address for the network around the hub (or you need to ask for one from the Internet authorities and then register its use with the service provider). In this way they can then route all traffic for your network down their ISDN line to you. If they have given the router, pentium and 486 all individual IP addresses on the same IP network then each packet has to travel the length of the ISDN to find its ultimate destination (even if its linked to the local hub!) hence why your network works while the ISDN is active. Given the previous case (your own network) you then place in each machine's routing table two entries: route add -net 'localnet' dev eth0 metric 1 route add default gw 'router-ip-address' metric 1 Now your network is active and local traffic knows where to go. (By the way you must enter the commands in that order, else you will get a "no route to IP address from the "add default" command.) Incidentally, if the service provider has given you a network, its likely to be a small subnet of a larger range. You must code the correct netmask on the "ifconfig" command for the above to work in all cases and avoid using the first and last IP address of the range (these are the broadcast addresses). If they have provided you with case 2, individual IP addresses, all is not lost, you must simply explicitly add routes for each host into the routing table and then the default route via the router. eg on the 486: route add -host 'pent-ip-addr' dev eth0 metric 1 route add -host 'router-ip-addr dev eth0 metric 1 route add default gw 'router-ip-addr' metric 1 and then you should be cooking. On your second point, disconnecting the 486 from the network, simple, you don't even have to remove anything physical. Simply "ifconfig eth0 down" the link. Then external agents can't do anything to the box. Because now the kernel isn't listening to the ethernet card. Your backup script then contains "ifconfig eth0 up; backitup;ifconfig eth0 down". and then you only have the link active as long as you need. Further, if this is still a worry, disable inetd or entries in /etc/inetd.conf for those facilities you are never going to use. EG if you are always only telnetting from the 486 to the pentium, then remove the telnetd entry, you don't use it, why should other people? Same is true for rlogind, rshd, ftpd and the portmapper facilities. These are rarely if ever needed on a purely client machine. Also read your router manual, in most cases it is possible to tell the router to barr undesired traffic. EG if your pentium is only offering web services then tell your router to filter out all unsolicited requests to your network other than for services to port 80. (TCP packets have a flag in them telling the network if the packet is a reply (a solicited message) to an original request. So for instance if you telnet out over the ISDN, all returning packets have this flag set, however someone trying to telnet you, being unsolicited, has this flag clear. The router can filter on this.) Chris Cradock cradockc@oup.co.uk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads