LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2002, 01:35 PM   #1
Noobee
LQ Newbie
 
Registered: Jul 2002
Posts: 2

Rep: Reputation: 0
Network causing unhappiness!


Hi everyone,

I have a strange issue and am hoping for a little help. I have two class C subnets. When I assign the IP/Gateway from one class C, everything works great. When I change the IP/Gateway to the other subnet, it doesn't.

On subnet 1, everything works.

On subnet 2, I can ping localhost but when I ping the IP assigned to my NIC, it gets the first packet then all the others bounce. I cannot ping anything outside the box. The strange thing is that from another machine on subnet 2, I can ping the linux box and even telnet to it (although getting to the login screen takes forever).

If I swap the IP/Gateway info back to subnet 1, everything works fast and correctly. I have no static routes set. The only changes I'm making are in /etc/sysconfig/network (gateway) and /etc/sysconfig/network-scripts/ifcfg-eth0 (ip) and dropping/restarting the network.

I'm using Redhat 7.0, kernel 2.2.16-22

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
123.74.176.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 123.74.176.1 0.0.0.0 UG 0 0 0 eth0
 
Old 07-17-2002, 11:24 PM   #2
chens_83
Member
 
Registered: Dec 2001
Location: Adelaide , South Australia
Distribution: redhat 7.2, Debian , OpenBSD
Posts: 123

Rep: Reputation: 15
do you have a firewall???
post in your subnet masks and ip addresses for both the subnets
 
Old 07-18-2002, 11:24 AM   #3
Noobee
LQ Newbie
 
Registered: Jul 2002
Posts: 2

Original Poster
Rep: Reputation: 0
I do have a firewall but that shouldn't matter when pinging the IP associated with my NIC, should it? Even if I had no network cable connected, shouldn't I be able to ping the IP? Right now, when I try to ping the IP, the first ping returns and the rest time out.

My first IP is 201.98.66.75 w/subnet 255.255.255.0 -> This one works without any issues.

Second IP is 123.74.176.253 w/subnet 255.255.255.0 -> This one returns first ping and times out the rest although I can ping/telnet into the box from another machine on the same subnet - it's just slow.

Thanks for your help!

PS: The first two octects have been changed on the iP addresses for security and such.
 
Old 07-18-2002, 12:15 PM   #4
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
the 201.x.x.x and 123.x.x.x are belong to different network ID, maybe you would like to try using the custom subnet mask to borrow x bit depeding on how you want to design it, instead of the default subnet mask.

Last edited by shoot2kill; 07-18-2002 at 12:18 PM.
 
Old 07-18-2002, 02:01 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If I understand correctly, there's a solution:
Subnet 1: gateway set to IP from subnet 1 (nic1)
Subnet 2: gateway set to IP from subnet 2 (nic2)
Router: 2 nics, one for subnet1, the second one for subnet2.

It looks you're using one nic on router with 2 subnets. It's not a good solution, especially when they are so different.
 
  


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
identify application causing network traffic maenho Linux - Software 2 03-03-2005 09:24 AM
Network switch causing problems? marcheikens Linux - Hardware 18 10-26-2004 11:16 PM
IPtables firewall causing network slowdown lucktsm Linux - Security 3 05-11-2004 11:37 PM
9.2 installation causing network problems centerice Linux - Networking 1 02-05-2004 07:21 AM
Default Route Causing SLOW network MageMaster Linux - Networking 0 08-07-2003 04:15 PM

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

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