Help with setting up linux router across subnets

justint

Banned
Dec 6, 1999
1,429
0
0
Hi,
I am a little confused about how exactly I should go about this. I have a linux machine running a stock 2.4.14 kernel on Redhat , with two ethernet cards. What I want to do is configure the machine with the proper route statements to route traffic between two subnets with different IP ranges. What combination of route add commands do I need? This should be easy but I must be doing something wrong as nothing seems to work.


eth0

IP: 192.12.200.10
Netmask: 255.255.255.0


eth1

IP: 192.168.0.10
Netmask: 255.255.252.0


 

EricHagen

Member
Jun 18, 2001
93
0
0
clear this up for me.

Whats you're outgoing gateway address and what adpter is it on? (default route)

I'm no expert so give me a few minutes to figure it out

Should be fun,

Eric

 

EricHagen

Member
Jun 18, 2001
93
0
0
route ADD 192.12.200.0 MASK 255.255.255.0 xxx.xxx.xxx.xxx insert your gateway in xxx.xxx (assuming this is the outbound route)

route ADD 192.168.0.10 MASK 255.255.252.0 192.168.0.10

I think you have trouble here if one of the subnets has two routers. is that the case? One outbound and one going to the other subnet? You would have to have the outgoing router (Which is probably the default route on the upper level subnet) bounce the packets back down to your new router/system to be forwarded to the second network. Tricky, eh?

Eric
 

EricHagen

Member
Jun 18, 2001
93
0
0
The only way I can think of doing it would be to have a router on the outgoing port that was pointing all traffic destined for the .252 mask subnet back at your intranet bridge for routing.

Otherwise, you have to set a persistent static route to the intranet bridge on EACH computer on the network only for that particular subnet.

The ideal way to do it is to have both subnets AND the upstream connection (all three trunks) branching from a single router.

Eric
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |