LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-25-2004, 06:52 AM   #1
siva_bhavani
LQ Newbie
 
Registered: Aug 2003
Location: mumbai
Distribution: mandrake and redhat
Posts: 10

Rep: Reputation: 0
Unhappy Routeing between two subnets not working


i have a linux machine with two Ethernet cards. one is connected to the subnet 161.9.0.0/16 and the address assigned is 161.9.220.1. the second card is assigned 161.8.220.1 and connected to the subnet 161.8.0.0(actually for testing, only one laptop with ip address 161.8.220.2 is connected) . iam able to ping 161.9.220.1 from the laptop and similarly, ping 161.8.220.2(laptop) from the linux machine. but iam not able to ping 161.9.220.2,3,4,5 from the laptop. what could be the reason? thanks in advance.
the distro is mandrake 10.0 with kernel 2.6
 
Old 12-25-2004, 07:11 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
If I understand your post correctly, it sounds like you just need to enable ip forwarding.

Since I have never used mandrake, I can only give you the good ole fashion way of enbaling ip forwarding, but if mandrake uses sysctl, then you can enable ip forwarding using this utility. See: man sysctl

In the maen time, try the following command to see if this fixes your problem. you do NOT need to reboot to test.
Code:
[scowles@excelsior init.d]$ su
Password: 
[root@excelsior init.d]# cd /proc/sys/net/ipv4/
[root@excelsior ipv4]# cat ip_forward 
0
[root@excelsior ipv4]# echo "1" >ip_forward
[root@excelsior ipv4]# cat ip_forward  
1
[root@excelsior ipv4]#
Now test if you get a ping reply from the other subnet.
 
Old 12-28-2004, 07:59 AM   #3
siva_bhavani
LQ Newbie
 
Registered: Aug 2003
Location: mumbai
Distribution: mandrake and redhat
Posts: 10

Original Poster
Rep: Reputation: 0
Smile some more info

thanks a lot. i did sysctl -w /net/ipv4/ip_forward=1. that did the trick. both the sub nets are able to talk. the subsequent problem is this...

in one subnet, there is an application which sends out a message on udp broadcast on address 255.255.255.255. i want this to reach the other sub net. it is not. what needs to be done to get this going? it is reaching the linux router. but not getting forwarded...
 
  


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
help on subnets HappyGilmore Linux - Networking 12 07-07-2005 09:33 AM
newbie, subnets ... -mk- Linux - Networking 1 08-17-2004 03:41 AM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
Broadcast across subnets lezek Linux - Networking 3 01-01-2004 07:27 PM
samba and subnets mirko72 Linux - Networking 8 11-26-2003 12:56 PM

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

All times are GMT -5. The time now is 02:51 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
Open Source Consulting | Domain Registration