Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-2008, 02:43 PM
Amy Lee
 
Posts: n/a
Help: Connection Problem

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
  #2 (permalink)  
Old 03-20-2008, 03:15 PM
Jack Snodgrass
 
Posts: n/a
Re: Help: Connection Problem

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
  #3 (permalink)  
Old 03-20-2008, 06:54 PM
Scott Hemphill
 
Posts: n/a
Re: Help: Connection Problem

Jack Snodgrass <jacks_temp_id_bf2142@verizon.net> 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 hemphill@alumni.caltech.edu
"This isn't flying. This is falling, with style." -- Buzz Lightyear
Reply With Quote
  #4 (permalink)  
Old 03-20-2008, 08:31 PM
Scott Hemphill
 
Posts: n/a
Re: Help: Connection Problem

Scott Hemphill <hemphill@hemphills.net> writes:

> Jack Snodgrass <jacks_temp_id_bf2142@verizon.net> 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 hemphill@alumni.caltech.edu
"This isn't flying. This is falling, with style." -- Buzz Lightyear
Reply With Quote
  #5 (permalink)  
Old 03-20-2008, 08:58 PM
Moe Trin
 
Posts: n/a
Re: Help: Connection Problem

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

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT. The time now is 11:42 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Free Advertising | Loans | Company Reports | Share Prices | Electricity Suppliers



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114