Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-15-2005, 07:21 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Rep:
|
Setting up a gateway with two eth's
I am using an FC3. I have two eth's on it. eth0 : 192.168.1.2 and eth1: 192.168.1.3 There is a GW with 192.168.1.1 to access the Internet and it is connected to my eth0. I can access the web and everything is working fine.
My problem is, I want to setup a private LAN behind my eth1 (using IP addresses, say, 192.168.1.4 - 192.168.1.10 everything to be on /24and same NETWORK 192.168.1.0 ). I have set ON the ip forwarding. I can access the Internet from my machine and I can also ping thru both eth0 and eth1.
I have set the GW to be 192.168.1.3 on the clients in my private network.
I can't ping to 192.168.1.3 from my private network.
Please help me to workaround this...and I don't want to MASQUERADE at this point. And also, Is it possible to have the same network on either side of the GW?
|
|
|
09-15-2005, 07:33 AM
|
#2
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
|
Gate Ways
I'd try to have all gateways as the same IP on the local network
Also netmask.
|
|
|
09-15-2005, 07:36 AM
|
#3
|
LQ Newbie
Registered: Sep 2004
Location: Denmark
Distribution: Kubuntu and Debian
Posts: 6
Rep:
|
Let me see if a got this right. Your fedorabox with the eth0 to the internet and the eth1 to the private network is connected all right and can acces the internet. Can it acces the clients on the private network? And vice versa? Sure you don't have a firewall installed?
|
|
|
09-15-2005, 08:05 AM
|
#4
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
Hi
eruantalon
thanks for replying, gee help me...
That's it. U got the problem right. I can ping from my FC3 on either side. Of course using -I eth1 when pinging thru eth1. But I can't ping from my private LAN to eth1 (192.168.1.3). And of course I have shut down the IPTABLES.
I need to add another question here...
In my FC3 is there a way to tell the applications to use which eth to use like for the ping?
|
|
|
09-15-2005, 08:23 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
Hi
GlennsPref
thanx for replying.
I didn't get your point.
Do u mean to use the same IP address (192.168.1.3) and the subnet mask /24 on all the clients in the private LAN. That is obvious and I have done that already...
Please explain me if I am incorrect
|
|
|
09-15-2005, 01:23 PM
|
#6
|
LQ Newbie
Registered: Sep 2004
Location: Denmark
Distribution: Kubuntu and Debian
Posts: 6
Rep:
|
To bad i just reformatted my server. It was set up to do just what you wanted I could have checked the config :-)
It sounds very strange that one computer can ping the other but not the other way around. It still sounds to as if it is a firewall og similar problem. If there is a connection it should work both ways unless something was actively blocking it. But I'm no expert
|
|
|
09-15-2005, 08:08 PM
|
#7
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
|
all clients Pointing to the same gateway, yes.
OK
|
|
|
All times are GMT -5. The time now is 04:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|