LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2003, 10:10 AM   #1
jmono
Member
 
Registered: Feb 2003
Location: Colombia
Distribution: Mandrake
Posts: 52

Rep: Reputation: 15
Question routing


hi everyone

can anyone help me???

i need to set up a PC with Linux Mandrake 9.0 as a router, i have two network cards in it, one as 10.1.0.9 and the other one as 10.2.0.1

what do i need to set up to make this router works???
what IP addresses should i use in the others PCS connected to the router??
or what am i doing is wrong???

greetz
mono
 
Old 11-10-2003, 08:56 AM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
You need ip_forwarding enabled and you need the routing tables on _all_ the machines set correctly.

I assume all the machines have 255.255.0.0 netmasks.
You need the routing table on all the 10.1.x.x machines set so the default route to 10.2.x.x is via your router. The 10.2.x.x machines need a default route to 10.1.x.x via you router.

What is the best way to set a route automatically on lots of machines?
 
Old 11-10-2003, 02:47 PM   #3
jmono
Member
 
Registered: Feb 2003
Location: Colombia
Distribution: Mandrake
Posts: 52

Original Poster
Rep: Reputation: 15
ok mate, thanks
but where can i edit the routing table???
and where i enable ip_forwarding???
 
Old 11-11-2003, 07:37 AM   #4
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
>where i enable ip_forwarding???

I don't use mandrake so I don't know, there is probably a box to
tick in the graphical system administration program.

You can do it with the command
echo 1 > /proc/sys/net/ipv4/ip_forward

but obviously you need that to happen in the startup scripts somewhere
so it is set when the machine reboots.


>where can i edit the routing table???
I assume the other machines are windows so you use the route
command in a dos box.

If you are unfortunate enough to still have win95 machines then you may have to use a batchfile or somthing to set the route because win95 dosn't support persistant routes.

If the machines are given an ip by a DHCP server you may be able to get the server to give the machines the necessary route.
 
Old 11-15-2003, 07:13 AM   #5
jmono
Member
 
Registered: Feb 2003
Location: Colombia
Distribution: Mandrake
Posts: 52

Original Poster
Rep: Reputation: 15
ohh.. please anyone?
help me with Madrake, i don`t know where to find tha files that i need to edit!!
 
Old 02-07-2006, 06:20 AM   #6
thanhnguyenupt
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Hi everyone!
I am living in the countryside where IT don't development. But I very love IT and spacial Linux. However, I can't install Debian or others program about Linux.
Can you help me?
Thank you very much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ip Routing alanfullmer Linux - Networking 1 03-18-2005 12:20 PM
Routing gtkmike Linux - Networking 1 11-13-2003 09:21 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Routing in RH 8.0 Hybrid Blue Linux - Networking 2 10-12-2003 05:41 PM
Routing jimval7 Linux - Networking 3 02-08-2002 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration