LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-15-2003, 03:31 PM   #16
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30

Yes, it is.
But that doesn't help me, because the packets aren't reaching my Linux router.
They are going wirelessly from my desktop to my wireless router, and the wireless router is giving the error - they aren't going from my wireless router to my Linux router.
Remember, for all intents and purposes, the wireless router isn't connected to the internet, since my Linux router is just plugged into a normal port.
 
Old 07-15-2003, 03:41 PM   #17
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
well it looks like you got a nice big fat misconfiguration, cause it will work

you know that your clients arent using the linux machine for their default gateway

manually specify 1 client computer on the same subnet and use the linux ip as the gateway, which you specified as 192.168.1.102
 
Old 07-15-2003, 03:46 PM   #18
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
Im just going to redesign this whole thing on the thread because im bored

A = machine1
B = machine2
C = machine3

X = wireless router
Z = linux router

--------------- X
| | | |
A B C Z

Heres your IP setup

X = 192.168.1.1

A = 192.168.1.5
B = 192.168.1.6
C = 192.168.1.7

Z = 192.168.1.254

default gateway = 192.168.1.254
dns server = 192.168.1.254

and hopefully your running named on your linux machine, otherwise you must use the dns servers specified on your linux WAN eth,

/etc/resolv.conf

should have entries for those.
 
Old 07-15-2003, 03:47 PM   #19
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I'm not sure what you're telling me to do - correct me if i'm wrong.

You want me to set a client computer to use the Linux Router's IP as the default gateway, correct?

That's what i've been doing the entire time, and for some reason the packets aren't getting past my Linksys router.

I'm not running named, but I already have /etc/resolv.conf set up correctly on my client computers.

Last edited by pilot1; 07-15-2003 at 03:49 PM.
 
Old 07-15-2003, 03:50 PM   #20
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
all machines should be hooked up on the linksys switch side, and nothing on the wan

getting past the router is not an option because you wont be USING the router for anything but connectivity.
 
Old 07-15-2003, 03:52 PM   #21
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Machine Z has eth0 connected to the WAN. eth1 on the same computer is connected to a port on the router. Everything else is accessing the router wirelessly.

That is correct, right?

When I said the packets weren't getting past my Linksys router(X), I meant they weren't going from my Linksys router(X) to the Linux router(Z) plugged into a port on the Linksys router(X).

Last edited by pilot1; 07-15-2003 at 04:00 PM.
 
Old 07-15-2003, 03:59 PM   #22
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
If you look at that ping command I pasted then you'll see that the "Network unreachable" error message was coming from Machine X - if it had gotten to my Linux router(Machine Z) it would have been coming from Machine Z.
 
Old 07-15-2003, 04:00 PM   #23
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
absolutely not

you are no longer USING the router for anything but a switch

linux machine connection is as follows:
dhcp to modem
static to router, SWITCH port

machines a-c, SWITCH ports

disable your routers dhcp server
 
Old 07-15-2003, 04:02 PM   #24
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
All my clients are set to use static IPs, the dhcp server running on my router shouldn't have any effect on them, but I can still disable it. I'm not sure why that would effect anything, though.

And I know i'm only using the router as a switch, I have the network configured exactly as you just said above.
 
Old 07-15-2003, 04:04 PM   #25
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
the above mentions WAN

you should not be using that for anything now, and not using the uplink as well.

192.168.1.1 should not even show up in the route.
 
Old 07-15-2003, 04:06 PM   #26
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
When I refer to the WAN i'm referring to my cable modem/connection from eth0 to the WAN(internet).

I am not using the uplink or WAN ports for anything. The only port in use on my "switch" is one normal port.

Last edited by pilot1; 07-15-2003 at 04:08 PM.
 
Old 07-15-2003, 04:15 PM   #27
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
whats the route of the linux machine currently?
 
Old 07-15-2003, 04:21 PM   #28
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Here it is:
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0      *               255.255.255.0      U     0      0        0 eth1
<MyIP>           *               255.255.0.0        U     0      0        0 eth0
127.0.0.0        *               255.0.0.0          U     0      0        0 lo
default         <MyIP'sHostname> 0.0.0.0            UG    0      0        0 eth0
default         192.168.1.1               0.0.0.0            UG    0     0         0  eth1
I just noticed that the second default gateway is set to my switches IP, that is correct, right?

Last edited by pilot1; 07-15-2003 at 04:24 PM.
 
Old 07-15-2003, 04:25 PM   #29
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
You should only have 1 default gateway on the linux, otherwise, as you can tell, any packets coming on the eth1 is being routed to 192.168.1.1, and end there, instead of being routed to eth0 and its default gateway

route del -host default dev eth1

something like that

Last edited by hakcenter; 07-15-2003 at 04:28 PM.
 
Old 07-15-2003, 04:26 PM   #30
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
It's route del default gw dev eth1 (Or maybe it's a little different - I don't remember.)

But when I remove that I can no longer ping the Linux router from the client computers, and eth1 says it has sent and recieved 0 packets.

I was never able to ping my client computers from the Linux router and visa versa, until someone suggested adding the gateway.

Last edited by pilot1; 07-15-2003 at 04:30 PM.
 
  


Reply



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
IP Forwarding and Masquerading problems drakethegreat Linux - Networking 4 02-22-2005 01:56 AM
ip masquerading +yahoo voice chat problems newpenguin Linux - Networking 0 10-23-2003 05:57 PM
Masquerading & Firewall problems.. ugenn Linux - Networking 2 09-07-2003 01:31 PM
ip masquerading causes application problems in windows pollux0 Linux - General 6 12-17-2002 11:51 AM
IP Masquerading on Red Hat 7.3 Problems Joe Kerrigan Linux - Networking 4 08-04-2002 09:19 AM

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

All times are GMT -5. The time now is 06:25 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