LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-13-2003, 02:18 PM   #1
dwpondscum
LQ Newbie
 
Registered: Apr 2003
Location: Oklahoma
Distribution: Redhat
Posts: 25

Rep: Reputation: 15
Add Simple Route Table


Hello!

Long story short - I have a SuSE8.1 machine connected to a cable modem. It has two NICs. I would like to have NIC1 connected to the cable modem and NIC2 to the local network. Apache will be running on NIC1. I want to setup Squid to run on NIC2. However, to do this I am guessing that I need to setup a route from NIC1 to NIC2.

NIC 1 IP: 10.158.0.1
NIC 2 IP: 192.168.0.1

I am very ignorant on how to set this up. Any help would be useful. I have looked at a some how-tos and readmes, but nothing has been really clear.

My current route table is shown below. Sorry about the format. This form did not like multiple spaces to show the table. Dashes seperate the values for the table.

The output of #route is below:

Kernel IP routing table
Destination - Gateway - Genmask - Flags - MSS - Window - irtt - Itface
68.xxx.xxx.192 - 0.0.0.0 - 255.255.255.192 - U - 40 - 0 - 0 - eth1
192.168.0.0 - 0.0.0.0 - 255.255.0.0 - U - 40 - 0 - 0 - eth0
0.0.0.0 - 68.xxx.xxx.193 - 0.0.0.0 - UG - 40 - 0 - 0 - eth
 
Old 08-17-2003, 02:26 AM   #2
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
you can check if you have IP Forwarding enabled or not by checking the value in /proc/sys/net/ipv4/ip_forward

if it is 0 (disabled), change it to 1.
 
  


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
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
How to add a route table for eth1 and make it the default banner Linux - General 3 05-08-2005 11:14 AM
What in happening to my route table??? Julian_Thong Linux - Networking 2 08-22-2004 01:16 PM
route table prob fdr Linux - Wireless Networking 0 02-03-2004 05:41 AM
Route table christianj Linux - Networking 3 11-17-2002 08:24 AM


All times are GMT -5. The time now is 02:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration