Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-13-2003, 02:18 PM   #1
LQ Newbie
Registered: Apr 2003
Location: Oklahoma
Distribution: Redhat
Posts: 25

Rep: Reputation: 15
Add Simple Route Table


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.


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 - - - U - 40 - 0 - 0 - eth1 - - - U - 40 - 0 - 0 - eth0 - - - UG - 40 - 0 - 0 - eth
Old 08-17-2003, 02:26 AM   #2
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.


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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:00 PM.

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