LinuxQuestions.org
Visit Jeremy's Blog.
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 06-03-2009, 11:36 PM   #1
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Rep: Reputation: 16
Static IP Slowdown in Fedora 10


I setup a static ip through the /etc/sysconfig/network-scripts/ifcfg-eth0 file which I've appended below. The big issue I'm having is in significant delays in resolving names and connecting via ssh or http.

---begin ifcfg-eth0---
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:e0:4d:a9:b7:9f
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.142
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
---end ifcfg-eth0---

As I recall linksys routers have their own dns and I can indeed resolve urls. However a ping of google.com results in a 40-70% packet loss and I'm experiencing surprising delays when trying to connect to my http or ssh servers (ssh never seems to connect). For the record, I have disabled the NetworkManager and enabled the /etc/init.d/network for the necessary run time levels. Also this happens even if I hard code DNS ip's into the configuration file.

Thanks in advance for serious replies!

SOLVED! SEE THIRD POST. SOLUTION LIKELY APPLIES TO ALL DISTROS OF LINUX.

Last edited by Nuvious; 06-06-2009 at 07:06 PM. Reason: adding more information
 
Old 06-04-2009, 10:15 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You might want to check the interface:

ethtool eth0

This should show you at which speed and duplex it is running.

(or mii-tool -v eth0 for older NICs).

If you see speed less than 100 or duplex at half it might be causing your issues. Using ethtool -s with appropriate options might help although some Linksys routers want it to be set to autonegotiate.
 
Old 06-06-2009, 07:04 PM   #3
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Solved

Found out that it was only SSH that was slow. Since I changed to a static-ip, ssh was searching DNS for the domain name and DNS wasn't responding to a public ip range. I had to add the following line:

UseDNS no

to the file

/etc/ssh/sshd_config

and restart the ssh daemon. Problem solved.
 
  


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
Static IP Configuration in Fedora 10 josbro04 Linux - Networking 1 02-24-2009 12:10 AM
Firefox slowdown in Fedora 10 SoutheastSam Linux - Software 1 12-03-2008 10:20 PM
Fedora 8 , Setting a Static IP mickeyboa Fedora 11 11-26-2008 06:21 AM
Fedora 8 refuses to maintain static ip terry-duell Fedora 10 05-06-2008 07:09 AM
static ip settings not working in fedora 4 lauren Linux - Networking 4 01-25-2006 06:45 AM

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

All times are GMT -5. The time now is 03:44 AM.

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