View Full Version : route traffic between two subnets :?:
tbaror
08-11-2004, 04:15 PM
hi,
i have created a knoppix machine with two network cards to act as simple router and let packets pass through the knoppix router between subnets
it might be a simple command via ip command but my linux skills are poor
please advice
thanks
tearinghairout
08-12-2004, 10:11 AM
You've not given us much information about your subnets and IP address configuration, so I am going to assume that you understand enough about TCP/IP to set all this up correctly, and your only remaining problem is how to get Linux/Knoppix to actually start forwarding packets.
The low level answer is to
echo 1 >/proc/sys/net/ipv4/ip_forward
This is usually enabled in the boot scripts by setting the appropriate entry in the file /etc/network/options [Hint: ip_forward=yes].
Disclaimers:
I am also assuming you have a hard disk install.
This works with the 2.4 kernel, I'm not completely sure about the 2.6 kernel.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.