Internet and ftp are slow
Internet and ftp are slow
Hi,
I have Centos 6.5 installed in an old pc.
I have some network configuration issues which are:
a) internet loads pagee very slowly (only the 1st time. the 2nd it's quick - probably reads the cache). From windows pc works fine (the router is the same).
b) ftp (vsftpd) from my windows client is very slow to login (I wait about 20 sec after I give the password). Then it works ok.
I have de-activated all the firewalls (router, client, unix) but it didn't get better.
I know that I didn't give you any detail (files, outputs) but you can assist me if you want because I don't have much experience in linux.
Thanks
I have Centos 6.5 installed in an old pc.
I have some network configuration issues which are:
a) internet loads pagee very slowly (only the 1st time. the 2nd it's quick - probably reads the cache). From windows pc works fine (the router is the same).
b) ftp (vsftpd) from my windows client is very slow to login (I wait about 20 sec after I give the password). Then it works ok.
I have de-activated all the firewalls (router, client, unix) but it didn't get better.
I know that I didn't give you any detail (files, outputs) but you can assist me if you want because I don't have much experience in linux.
Thanks
Re: Internet and ftp are slow
Perhaps it's a name server issue? Are the name servers configured in /etc/resolv.conf the same ones you have on your Windows machine?
Re: Internet and ftp are slow
First of all, I want to say that resolv.conf has changed.
I have those lines in the file
# Generated by NetworkManager
domain Home
search Home lnx.gr
nameserver 192.168.2.1
The file was changed by networkmanager.
This is probably because the router gave new ip to the linux server (yesterday it was 192.168.2.6 and today is 192.169.2.3).
So, many questions came out.
1) Is it possible to make router not to change the ip's although I have dns? If yes, how?
2) should i disallow network manager to change that file?
3) Is the resolv.conf correct?
Now, after that change, ftp from windows to unix server doesn't work at all!
Something very strange is happening.
I type ftp 192.168.2.3 and I'm getting ftp> as reply. No message at all! Not even connection refused or sth like that.
I disabled iptables again but the same.
You can see the screenshot.
And something else.
putty and telnet from windows to linux work perfect!
I have those lines in the file
# Generated by NetworkManager
domain Home
search Home lnx.gr
nameserver 192.168.2.1
The file was changed by networkmanager.
This is probably because the router gave new ip to the linux server (yesterday it was 192.168.2.6 and today is 192.169.2.3).
So, many questions came out.
1) Is it possible to make router not to change the ip's although I have dns? If yes, how?
2) should i disallow network manager to change that file?
3) Is the resolv.conf correct?
Now, after that change, ftp from windows to unix server doesn't work at all!
Something very strange is happening.
I type ftp 192.168.2.3 and I'm getting ftp> as reply. No message at all! Not even connection refused or sth like that.
I disabled iptables again but the same.
You can see the screenshot.
And something else.
putty and telnet from windows to linux work perfect!
- Attachments
-
- Untitled.png (23.71 KiB) Viewed 5469 times
Re: Internet and ftp are slow
vermio wrote: 1) Is it possible to make router not to change the ip's although I have dns? If yes, how?
Add your computers MAC address to the routers dhcp table for a static ip, you will have that ip every time (so long as you connect to the network with same network card) you'll IP will be the same regardless of operating system. You can do this by running ifconfig on your machine, then add MAC address on router admin page. Though that's probably not the issue. Go to network manager and see if your connection settings are good. Open network manager, select your network interface, select edit, select IPv4 Setting, mine is setup for automatic dhcp, and probably for you too. That might be the easiest fix. I'd restart the computer in between changes or bare minimum restart network manager.
Re: Internet and ftp are slow
buzz9 wrote:vermio wrote: 1) Is it possible to make router not to change the ip's although I have dns? If yes, how?
Add your computers MAC address to the routers dhcp table for a static ip, you will have that ip every time (so long as you connect to the network with same network card) you'll IP will be the same regardless of operating system. You can do this by running ifconfig on your machine, then add MAC address on router admin page. Though that's probably not the issue. Go to network manager and see if your connection settings are good. Open network manager, select your network interface, select edit, select IPv4 Setting, mine is setup for automatic dhcp, and probably for you too. That might be the easiest fix. I'd restart the computer in between changes or bare minimum restart network manager.
Well.
I tried to add to my router the macaddresses and a static ip for each machine I want to use. But although this option existed in the manual, there wasn't into my router's setup!!!
So, I decided to put a static ip to each machine I use.
I gave xxx.xxx.x.3 to my windows pc and xxx.xxx.x.4 to linux.
Windows worked without any issues.
Linux finally - after many efforts - worked partially.
Ftp works very fast now.
But internet does not work at all.
And there is something that it doesn't seem correct to me:
I have two network interfaces: ifcfg-eth0 and ifcfg-eth0.static.
If I delete the static, network doesn't startup!!!
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Internet and ftp are slow
Turn off NetworkManager and turn on network.
chkconfig NetworkManager off
service NetworkManager stop
chkconfig network on
service network restart.
You need to add the GATEWAY to /etc/sysconfig/network
and you nameserver to /etc/resolv.conf.
See the FAQ. http://wiki.centos.org/FAQ/CentOS6
chkconfig NetworkManager off
service NetworkManager stop
chkconfig network on
service network restart.
You need to add the GATEWAY to /etc/sysconfig/network
and you nameserver to /etc/resolv.conf.
See the FAQ. http://wiki.centos.org/FAQ/CentOS6
Re: Internet and ftp are slow
I did what you said.
No change at all.
I'm uploading the two files in case I made a mistake (nameserver maybe).
No change at all.
I'm uploading the two files in case I made a mistake (nameserver maybe).
- Attachments
-
- files.zip
- (552 Bytes) Downloaded 101 times
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Internet and ftp are slow
I don't download random zip files.
Re: Internet and ftp are slow
OK,
Here they are:
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mguru.lnx.gr
GATEWAY=192.168.2.1
/etc/resolv.conf
# Generated by NetworkManager
search lnx.gr
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
DNS1=192.168.2.4
DNS2=8.8.8.
Here they are:
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mguru.lnx.gr
GATEWAY=192.168.2.1
/etc/resolv.conf
# Generated by NetworkManager
search lnx.gr
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
DNS1=192.168.2.4
DNS2=8.8.8.
Re: Internet and ftp are slow
Your resolv.conf is completely wrong. When it says
it means that you should put lines like that in the ifcfg-ethX file, not in resolv.conf. If you want to update resolv.conf directly then you should update it to have lines like
Code: Select all
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
Code: Select all
search mydomain.net
nameserver 192.168.2.4
nameserver 8.8.8.8
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke