Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 11-23-2008, 11:31 AM   #1
Registered: Apr 2008
Posts: 114

Rep: Reputation: 15
ip_forward, routing

Hi, this is the scenario:

LAPTOP: eth0

PC has 2 interfaces: eth0 and eth1

Here the connections:

laptop(eth0) <--------> (eth0)PC(eth1)

PC has ip_forward = 0.

on "laptop" I type:

# route add -net eth0

Question is: why I'm able to ping if the ip_forwarding between the 2 interfaces is off?

Thank you.
Old 11-23-2008, 03:17 PM   #2
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
The PC is not forwarding packets if the packets are destined for the localhost, even if on a different interface.
Old 11-23-2008, 03:19 PM   #3
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
because an IP really isnt "bound" to a specific interface. The kernel owns it and knows which interface to route the traffic.

Since the kernel "owns" both and it is able to properly respond on the 10. interface to your ping to since it does not require any forwarding to another network. It never leaves the PC system.
Old 11-24-2008, 08:10 AM   #4
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
Thank you!


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
Routing and ip_forward endfx Linux - Networking 10 06-19-2007 09:28 PM
lost rc.ip_forward hardknox Slackware 5 03-24-2005 05:32 PM
ip_forward mikz Slackware 2 02-01-2005 05:49 AM
IP_Forward Neur0tek Linux - Newbie 9 05-09-2002 10:44 AM
ip_forward Sathe Linux - Networking 2 10-19-2001 01:53 AM > Forums > Linux Forums > Linux - Networking

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

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