• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

2 Networks Intercommunication.

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Mi6

Member
Joined
Aug 13, 2001
Location
Montreal & Toronto
network.JPG


This is how i have my network setup now.

both networks are connected to my main server with 2 network cards.

eht0 is on 192.168.1.X
eth1 is on 192.168.2.X

eth0 is my dsl network, and is the connection box 1 should be using
eth1 is my cable network, and box 1 should be using it to run HALF-LIFE DEDICATED Server only ( unless i add more )

what i want to do is force the HLDS to bind to that access, thats fine i can do that via the config

but my other problem is that i want both networks to be able to talk to each other

so that me on 192.168.1.X can ping a box on the 192.168.2.X network and have access to the routers web interface via my 1.X network

what i need is a way to do this, i tried routing, but i'm not sure what to enter, it makes sence to me but dosen't seem to work.

btw all this is on a network mixed with gentoo and redhat. box 1 is a Redhat 8.0

thanks in advance, Jon
 
okey so i been playing around, i added routes from the cable router as follow

Destination Lan IP Subnet Mask Default Gateway Hop Count Interface
192.168.1.0 255.255.255.0 0.0.0.0 1 Lan
Destination Lan IP Subnet Mask Default Gateway Hop Count Interface
192.168.2.0 255.255.255.0 0.0.0.0 1 Lan

made some changes to my firewall on the number 1 box
and now that box is able to access the web interface at 192.168.2.1
and able to ping on both networks 192.168.1.X & 2.X

also added the boxes to my hosts and it seems to work out.
+ i added some routing information on the box 1 as i added to the router.

so now if i under stand it properly i just need to add routing information to my other router and it should fix the problem?

can anyone confirm this for me?
thanks

*Edit
ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.4 : 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.454 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.225 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.228 ms

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 2000ms
rtt min/avg/max/mdev = 0.225/0.302/0.454/0.108 ms

ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) from 192.168.2.101 : 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=150 time=0.668 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=150 time=0.597 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=150 time=0.588 ms

--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 1999ms
rtt min/avg/max/mdev = 0.588/0.617/0.668/0.045 ms
 
Last edited:
First off, system 1 needs to have the ability to route. Under most linux's edit /etc/sysctl.conf and make sure the following line is uncommented (or added to the file) 'net.ipv4.ip_forward = 1'

The DSL Router must have a static route that points 192.168.2.0/24 to the IP address of system 1 on interface eth0

The Cable Router must have a static route that points 192.168.1.0/24 to the IP address of system 1 on interface eth1

System 1 will have to have the default route pointed to 192.168.2.1 (the cable router). There are other ways to handle this, but they are not easily done..
 
okey, i re-aranged my setup. and now box 1 is on the dsl router and now im on the cable router (linksys) i want to be able to ping the other network.

how would i go about that.
 
okey well no other diagram yet, but i did manage to fix the problem and wanted to post my sucess just in case some one was actualy reading my posts ;)


anyway!

it all started with me playing Ninja Gaiden on my xbox, and then i got to think hey, why not mod the xbox so i can load games faster and maybe overclock it....so i started reading up on it....then when to a irc server to talk to some xbox guys to get there opinion on what i wanted to so with my xbox...then some dude out of nowere was playing and said

[3:02am] <Alienz> ask me anything
[3:02am] <+M|6> anything?
[3:02am] <Alienz> yes, anything
[3:02am] <+M|6> hmm
[3:02am] <+M|6> let me think

then i told him about my dual network problem.....he told me
[3:16am] <Alienz> M|6, try a cross over from one router to the other

and i did, with no luck since my main router is on 192.168.1.1 and my other network is on 192.168.2.1 they would not talk...so i got to thinking hey why not put them on the same internal ip 192.168.1.X and just space them appart

so now i have it setup as:

DSL Router: 192.168.1.1
Computers on that DHCP: 192.168.1.2/3/4/5 and so on
&
Cable Router: 192.168.1.100
Computers on that dhcp: 192.168.1.101/102/103/104 and so fort

and now i'm able to talk to both networks internaly !!!!

+ i got to use my one and only cross over cable i had from another network!
anyone have any questions? don't ask me =p
 
Back