LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-15-2007, 07:22 PM   #1
vmeli
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
No Routing Needed


I have 2 NICs in my pc. 192.168.1.10(eth0-default gw) and 192.168.2.10(eth1). The routing is done by a cisco router. The problem is that when I ping my pc in eth1 from 192.168.178.1.0/24 network I get no response.

All that I want is that connections made in eth1 will use eth1, no matter if the connections is made from 192.168.1.0 network.

My current routing table is

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
 
Old 04-15-2007, 09:19 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
You need to enable ip forwarding at the kernel level. I believe you do “sysctl net.ipv4.ip_forward=1”
 
Old 04-16-2007, 07:19 AM   #3
vmeli
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
ip forwarding is already enabled.
 
Old 04-16-2007, 07:59 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
where is 192.168.178.1.0/24? how does your cisco router fit in to the topology?
 
  


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
Help needed for routing sound sebapuj Ubuntu 0 11-12-2006 01:35 PM
[Help Needed] TWO DEFAULT GW - Routing problem igoruch Linux - Networking 9 07-02-2006 05:32 PM
Special case of routing mudule needed! woosting Linux - Networking 5 06-03-2005 07:43 AM
Routing command needed carrellc Linux - Networking 6 05-28-2004 11:59 AM
Routing Problem? Help Needed. KevinGuy Linux - Networking 7 07-12-2003 05:21 AM


All times are GMT -5. The time now is 08:25 AM.

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