LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-15-2005, 07:21 AM   #1
muru
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Rep: Reputation: 0
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?
 
Old 09-15-2005, 07:33 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
Gate Ways

I'd try to have all gateways as the same IP on the local network
Also netmask.
 
Old 09-15-2005, 07:36 AM   #3
eruantalon
LQ Newbie
 
Registered: Sep 2004
Location: Denmark
Distribution: Kubuntu and Debian
Posts: 6

Rep: Reputation: 0
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?
 
Old 09-15-2005, 08:05 AM   #4
muru
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 09-15-2005, 08:23 AM   #5
muru
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 09-15-2005, 01:23 PM   #6
eruantalon
LQ Newbie
 
Registered: Sep 2004
Location: Denmark
Distribution: Kubuntu and Debian
Posts: 6

Rep: Reputation: 0
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
 
Old 09-15-2005, 08:08 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
all clients Pointing to the same gateway, yes.
OK
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bridge with 2 eth's AndrOvr Linux - Networking 4 04-20-2005 12:14 PM
Setting up a Network Gateway Gomi Linux - Networking 2 03-24-2005 07:15 PM
Setting up a gateway... beebs Linux - Networking 6 10-16-2004 05:26 PM
Setting Up Linux for GATEWAY extremebfn Linux - Networking 2 08-27-2004 05:30 AM
Gateway Setting ChangeOfPace Linux - Networking 4 05-05-2004 09:44 AM

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

All times are GMT -5. The time now is 04:35 PM.

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