Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Originally posted by jschiwal Question?
What is the gateway set to on the client machine?
Do you want to perform NAT translation to share an internet ip address. Otherwise, why have 2 gateways and why even have a switch for only one device?
Hi,
thanks for the reply.
for your question 1:
NIC has set as GW.
for question 2:
this setup is for bandwidth testing using NIST Net.
I don't want to do any NAT or filtering and I just want to route all the traffic from NIC1 to NIC2 and NIC2 to NIC1.
I have some more questions:
1> For normal routing do I need to use IPTABLES?
2> If not, how to setup just all traffic routing between NICs?
I would like to know answers to the following questions:
I have some more questions:
1> For normal routing do I need to use IPTABLES?
2> If not, how to setup just all traffic routing between NICs?
3> how to disable IPTABLES startup during boot?
thanks,
Thiru
Quote:
Originally posted by titan5 TRY THE FOLLOWING FOR IPTABLES
1. deleting a specific rule:
replace the -A in the rule with -D and repeat the rule.
deleting all rules:
iptables -F
2. saving iptables rules:
service iptables save
this will save the rules to /etc/sysconfig/iptables and the rules will be aplied
after every boot.
3. listing iptables rules:
listing the filter table:
iptables -L
listing the nat table:
iptables -t nat -L
Frankly, I have not set routing before, but I will try to test it on my RedHat 7.3 test PC.
becasue the newer version ES 3.0 which is currently running on our servers is a bit confusing because routing is enabled while IP FORWARDING is disabled !!
I will let you know as soon as I get more details.
To remove the IPTABLE rule use -D switch as I mentioned in my previous messae then SERVICE IPTABLES SAVE
Download the parprotued package from "somewhere" (google it). Install. Change ips for both nics to the same, with broadcast to 255.255.255.255 and netmask to 255.255.255.255. Run
parprouted eth0 eth1
Disable ip-tabling
iptables --flush
iptables -t nat --flush
/etc/init.d/iptables save
(to save iptables to restore with no rules at boot)
Now, your computer should act switch like. I've tried it myself, with success!
Originally posted by atlesn Download the parprotued package from "somewhere" (google it). Install. Change ips for both nics to the same, with broadcast to 255.255.255.255 and netmask to 255.255.255.255. Run
parprouted eth0 eth1
Disable ip-tabling
iptables --flush
iptables -t nat --flush
/etc/init.d/iptables save
(to save iptables to restore with no rules at boot)
Now, your computer should act switch like. I've tried it myself, with success!
Hi,
I am very happy to see your reply.
I need some information about this package. I wasted lot of time on this problem. I have left few days to reach my deadline.
I just want simple router that's it.
Please help me out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.