Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help: Connection Problem

Reply
Thread Tools Display Modes

Help: Connection Problem

 
 
Amy Lee
Guest
Posts: n/a

 
      03-20-2008, 12:43 PM
Hello,

There are 7 PCs at my office and I make 2 team of them. 3 PCs is a group
called A net, other 4 PCs is a group called B net. A net IP range is from
192.168.0.1 to 192.168.0.3, B net IP range is from 11.11.11.1 to
11.11.11.4. A net uses a switch X, B net uses a switch Y. These PCs are
running Redhat 9 Linux.

I face a problem when I wanna connect A and B net.

What should I do if I hope connect A and B net? Do I need another PC as a
gateway or just a ether line?

Thank you very much~

Regards,

Amy Lee
 
Reply With Quote
 
 
 
 
Jack Snodgrass
Guest
Posts: n/a

 
      03-20-2008, 01:15 PM
On Thu, 20 Mar 2008 21:43:59 +0800, Amy Lee wrote:

> Hello,
>
> There are 7 PCs at my office and I make 2 team of them. 3 PCs is a group
> called A net, other 4 PCs is a group called B net. A net IP range is from
> 192.168.0.1 to 192.168.0.3, B net IP range is from 11.11.11.1 to
> 11.11.11.4. A net uses a switch X, B net uses a switch Y. These PCs are
> running Redhat 9 Linux.
>
> I face a problem when I wanna connect A and B net.
>
> What should I do if I hope connect A and B net? Do I need another PC as a
> gateway or just a ether line?
>
> Thank you very much~
>
> Regards,
>
> Amy Lee


Assuming that the A group and B group are isolated right now, all you
need to do is set up 1 Pc in the A group or B group that has 2 NICs..
one will be cabled to the A switch and one will be cabled to the B switch.
It will have both a 192.168.0.x and 11.11.11.x ip address assigned to it.
If each group makes it their default router, then traffic for the 'other'
group will go via the AB PC automatically.....

something like that.

jack



--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
Scott Hemphill
Guest
Posts: n/a

 
      03-20-2008, 04:54 PM
Jack Snodgrass <(E-Mail Removed)> writes:

> On Thu, 20 Mar 2008 21:43:59 +0800, Amy Lee wrote:
>
>> Hello,
>>
>> There are 7 PCs at my office and I make 2 team of them. 3 PCs is a group
>> called A net, other 4 PCs is a group called B net. A net IP range is from
>> 192.168.0.1 to 192.168.0.3, B net IP range is from 11.11.11.1 to
>> 11.11.11.4. A net uses a switch X, B net uses a switch Y. These PCs are
>> running Redhat 9 Linux.
>>
>> I face a problem when I wanna connect A and B net.
>>
>> What should I do if I hope connect A and B net? Do I need another PC as a
>> gateway or just a ether line?
>>
>> Thank you very much~
>>
>> Regards,
>>
>> Amy Lee

>
> Assuming that the A group and B group are isolated right now, all you
> need to do is set up 1 Pc in the A group or B group that has 2 NICs..
> one will be cabled to the A switch and one will be cabled to the B switch.
> It will have both a 192.168.0.x and 11.11.11.x ip address assigned to it.
> If each group makes it their default router, then traffic for the 'other'
> group will go via the AB PC automatically.....
>
> something like that.


Also, don't use 11.11.11.x. That IP address range has been assigned
to the Dod Network Information Center in Columbus, OH.

You could use 192.169.1.x, or 10.x.y.z, instead. These are private IP
addresses that shouldn't be routed to the Internet.

Scott
--
Scott Hemphill (E-Mail Removed)
"This isn't flying. This is falling, with style." -- Buzz Lightyear
 
Reply With Quote
 
Scott Hemphill
Guest
Posts: n/a

 
      03-20-2008, 06:31 PM
Scott Hemphill <(E-Mail Removed)> writes:

> Jack Snodgrass <(E-Mail Removed)> writes:
>
>> On Thu, 20 Mar 2008 21:43:59 +0800, Amy Lee wrote:
>>
>>> Hello,
>>>
>>> There are 7 PCs at my office and I make 2 team of them. 3 PCs is a group
>>> called A net, other 4 PCs is a group called B net. A net IP range is from
>>> 192.168.0.1 to 192.168.0.3, B net IP range is from 11.11.11.1 to
>>> 11.11.11.4. A net uses a switch X, B net uses a switch Y. These PCs are
>>> running Redhat 9 Linux.
>>>
>>> I face a problem when I wanna connect A and B net.
>>>
>>> What should I do if I hope connect A and B net? Do I need another PC as a
>>> gateway or just a ether line?
>>>
>>> Thank you very much~
>>>
>>> Regards,
>>>
>>> Amy Lee

>>
>> Assuming that the A group and B group are isolated right now, all you
>> need to do is set up 1 Pc in the A group or B group that has 2 NICs..
>> one will be cabled to the A switch and one will be cabled to the B switch.
>> It will have both a 192.168.0.x and 11.11.11.x ip address assigned to it.
>> If each group makes it their default router, then traffic for the 'other'
>> group will go via the AB PC automatically.....
>>
>> something like that.

>
> Also, don't use 11.11.11.x. That IP address range has been assigned
> to the Dod Network Information Center in Columbus, OH.
>
> You could use 192.169.1.x, or 10.x.y.z, instead. These are private IP
> addresses that shouldn't be routed to the Internet.


Aack! Don't use 192.169.1.x. That was a typo. Use 192.168.1.x.

Scott
--
Scott Hemphill (E-Mail Removed)
"This isn't flying. This is falling, with style." -- Buzz Lightyear
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      03-20-2008, 06:58 PM
On Thu, 20 Mar 2008, in the Usenet newsgroup comp.os.linux.networking, in
article <HjuEj.5301$CO3.2876@trnddc04>, Jack Snodgrass wrote:

>Amy Lee wrote:


>> There are 7 PCs at my office and I make 2 team of them. 3 PCs is
>> group called A net, other 4 PCs is a group called B net. A net IP
>> range is from 192.168.0.1 to 192.168.0.3, B net IP range is from
>> 11.11.11.1 to 11.11.11.4. A net uses a switch X, B net uses a switch Y.


See RFC1918 (or RFC3330) for "suitable" IP address ranges. Your "B net"
can use 192.168.11.1 to 192.168.11.4 and not have to worry about
confusion. The '11.x.x.x' net is actually in use on the Internet.

>> These PCs are running Redhat 9 Linux.


Red Hat 9 was end-of-life 30 April 2004, although there were a few
backported errata released randomly until July 2006. It is now
unsupported, and should be replaced. As long as the systems have NO
access to the Internet (or any other hostile place), this could be OK,
but you really should get a "modern" distribution to avoid problems.

>> What should I do if I hope connect A and B net? Do I need another
>> PC as a gateway or just a ether line?


>Assuming that the A group and B group are isolated right now, all you
>need to do is set up 1 Pc in the A group or B group that has 2 NICs..
>one will be cabled to the A switch and one will be cabled to the B switch.


Agree

>It will have both a 192.168.0.x and 11.11.11.x ip address assigned to it.


Meaning eth0 will be (EXAMPLE) 192.168.0.1 and eth1 will be 11.11.11.1
or similar.

>If each group makes it their default router, then traffic for the 'other'
>group will go via the AB PC automatically.....


Well, that's one way to block all Internet access. Please be careful
about throwing around that 'default' word. IP networking uses the word
'default' in the programming sense - meaning "use this if nothing else
fits". That is, given the choice of A, B, and default, how do you get
to E? It's not A or B, so it must use the default.

The routing table on hosts on the "A net" should look like this:

[example ~]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 18 lo
11.11.11.0 192.168.0.1 255.255.255.0 UG 0 0 420 eth0
[example ~]$

while hosts on the "B net" should look like this:

[nutherbox ~] /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
11.11.11.0 0.0.0.0 255.255.255.0 U 0 0 43521 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 18 lo
192.168.0.0 11.11.11.1 255.255.255.0 UG 0 0 617 eth0
[nutherbox ~]

For these boxes (and assuming the obsolete Red Hat 9), you need to
create files named '/etc/sysconfig/network-scripts/route-eth0' that has
a single line that reads

192.168.0.0/24 via 11.11.11.1

or

11.11.11.0/24 via 192.168.0.1

with suitable corrections for your actual numbers/netmask. On the box
with two NICs, the routing table should look like this:

[thirdbox ~]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 82564 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 18 lo
11.11.11.0 0.0.0.0 255.255.255.0 U 0 0 58489 eth1
[thirdbox ~]$

and this is created by having /etc/sysconfig/network-scripts/ifcfg-eth0
and /etc/sysconfig/network-scripts/ifcfg-eth1 with the correct numbers.

>something like that.


echo 1 > /proc/sys/net/ipv4/ip_forward

on the box with two NICs, so it knows it should forward packets from one
network to the other. On Red Hat 9, this was controlled by having a line

FORWARD_IPV4=yes

in /etc/sysconfig/network.

Old guy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection Problem Canu Wireless Networks 6 09-07-2005 12:48 AM
Connection problem Joe Windows Networking 7 12-20-2004 12:14 AM
Odd connection problem msmcg Broadband Hardware 1 07-22-2004 05:56 AM
W98 to XP connection problem Jeff Malka Wireless Internet 3 12-25-2003 11:01 PM
internet connection problem with MS TV/video connection adapter Carl Windows Networking 0 08-08-2003 09:37 PM



1 2 3 4 5 6 7 8 9 10 11