LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-17-2006, 04:24 AM   #1
abhiar
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
Internal communication between NICs


Hi!!
I am relatively new to Linux. Any help in this regard will be highly appreciated.
I am trying to setup private testbed network using Linux 2.4.18 kernel and for that purpose, I have some machines configured with 2 NICs. Although i can ping any two directly connected machines from each other on each of their interfaces but cant go any further than that.

I have tried setting /proc/sys/net/ipv4/ip_forward as 1 but to no avail. To my adventures, I realised that i couldn't ping eth0 from eth1 interface and vice versa.

Thanks in advance.
 
Old 10-17-2006, 06:56 AM   #2
syedabdul
Member
 
Registered: Nov 2005
Location: india
Posts: 32

Rep: Reputation: 15
Trying for the same.


This is one way i can think of:

1) enable ip forwarding
2) Then run iptables as follows

iptables -A FORWARD -i eth0 -o eth1
3) add the route in the routing table .


Any help appreciated.

Thanks,
Abdul.
 
Old 10-17-2006, 10:08 AM   #3
Farrukh Fida
Member
 
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34

Rep: Reputation: 15
Quote:
Originally Posted by abhiar
Hi!!
I am relatively new to Linux. Any help in this regard will be highly appreciated.
I am trying to setup private testbed network using Linux 2.4.18 kernel and for that purpose, I have some machines configured with 2 NICs. Although i can ping any two directly connected machines from each other on each of their interfaces but cant go any further than that.

I have tried setting /proc/sys/net/ipv4/ip_forward as 1 but to no avail. To my adventures, I realised that i couldn't ping eth0 from eth1 interface and vice versa.

Thanks in advance.
hi,
yes enable Ip farwarding by editing


echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth0 -o eth1
iptables -A FORWARD -i eth1 -o eth0

Kind regards,
Farrukh.

Last edited by Farrukh Fida; 10-17-2006 at 10:14 AM.
 
Old 10-17-2006, 11:51 AM   #4
syedabdul
Member
 
Registered: Nov 2005
Location: india
Posts: 32

Rep: Reputation: 15
Hi,

Enabling ipforwarding should do bcoz kernel performs routing by default.

plz assign different ip to both the interfaces and check
netconfig --device=eth0
netconfig --device=eth1

service network restart
.

But enabling ipforwarding is a must.

Thanks,
Abdul.
 
  


Reply



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
Communication between users jsownz Linux - General 3 09-22-2006 03:12 PM
Problem when configuring 2 NICs for internal LAN and cable internet mailavj Linux - Networking 24 04-07-2005 09:42 AM
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
2 NICs with 2 Servers - Communication problem - Help Koroshiya Linux - Networking 0 01-13-2005 06:22 PM
Installation of internal HP DAT 40i DDS internal tape drive netkepala Linux - Hardware 3 11-08-2004 12:22 PM

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

All times are GMT -5. The time now is 04:08 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