[SLE] 2 Network Cards / Routing
Quick: "How do I set up 2 network cards and NOT route between them?" Long: We have had a MAJOR problem with our network recently and for reasons crystal clear we are changing IP addresses over. At the moment our network has a 101.x.x.x address and we have recently had a leased line installed: no prizes for guessing what's wrong with that picture! So, we are moving our IP addresses to the private address range 10.x.x.x . During the changeover, the Linux server needs to be accessed from both sides of the network so 2 NICs have been installed, one with a 10. address and the other with a 101. address. I do NOT want routing from the 101 side to the 10 side - - if so, our NT administrator will probably chuck some shi*t towards the fan as we are in effect recreating the network from scratch and so we do not want "pollution" of any sort from the 101 side coming into the 10 side. Finally - my question: Before I connect the second patch cable to the network, what should the /etc/route.conf look like. At the moment it has the following entries: 10.0.0.0 0.0.0.0 255.255.0.0 eth0 101.0.0.0 0.0.0.0 255.255.0.0 eth1 default 10.0.0.20 Does this mean routing is in place? I.e., if I ping 101.0.0.20 -- from a machine on the 10.x side will it route through via eth0 and out through eth1 and get to 101.0.0.20? Thanks very much in advance! Kev Jackson -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Hi, geeko@btinternet.com wrote:
Quick: "How do I set up 2 network cards and NOT route between them?"
You could setup a firewall(long) or disable packet forwarding between interfaces(quick) :) cat /proc/sys/net/ipv4/ip_forward if cat shows zero, it's not forwarding, and your workplace will smeel good :) if cat show one, it's forwarding, and you better disable it with: # echo 0 > /proc/net/sys/ipv4/ip_forward
I do NOT want routing from the 101 side to the 10 side -
10.0.0.0 0.0.0.0 255.255.0.0 eth0 101.0.0.0 0.0.0.0 255.255.0.0 eth1 default 10.0.0.20
Does this mean routing is in place? I.e., if I ping 101.0.0.20 -- from a machine on the 10.x side will it route through via eth0 and out through eth1 and get to 101.0.0.20?
Routing is configured to do the right thing. But the actual "routing" beteen the two interfaces is controlled by the contents of the file above
Regards, Adilson Ribeiro -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
What is your intention with this set-up? Why keep the old network? Could you just change all of the systems to the 10. addressing schema? How many computers to replace ip addresses? Tony On Fri, 13 Oct 2000 geeko@btinternet.com wrote:
Quick: "How do I set up 2 network cards and NOT route between them?"
Long: We have had a MAJOR problem with our network recently and for reasons crystal clear we are changing IP addresses over. At the moment our network has a 101.x.x.x address and we have recently had a leased line installed: no prizes for guessing what's wrong with that picture! So, we are moving our IP addresses to the private address range 10.x.x.x . During the changeover, the Linux server needs to be accessed from both sides of the network so 2 NICs have been installed, one with a 10. address and the other with a 101. address. I do NOT want routing from the 101 side to the 10 side - - if so, our NT administrator will probably chuck some shi*t towards the fan as we are in effect recreating the network from scratch and so we do not want "pollution" of any sort from the 101 side coming into the 10 side.
Finally - my question: Before I connect the second patch cable to the network, what should the /etc/route.conf look like. At the moment it has the following entries:
10.0.0.0 0.0.0.0 255.255.0.0 eth0 101.0.0.0 0.0.0.0 255.255.0.0 eth1 default 10.0.0.20
Does this mean routing is in place? I.e., if I ping 101.0.0.20 -- from a machine on the 10.x side will it route through via eth0 and out through eth1 and get to 101.0.0.20?
Thanks very much in advance!
Kev Jackson
-- -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (3)
-
adilson@rapunza.org
-
geeko@btinternet.com
-
tonyz@ctitek.com