LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-28-2012, 10:00 AM   #1
waddles
Member
 
Registered: Sep 2012
Posts: 372

Rep: Reputation: 1
Setting up ftp as static IP tween Slack machines


Trying to ftp between 2 slackware machines both at13.37.
Have rc.rpc as 751 but when run tftp from second maching TO first I get connected but trying to get/put a small 15 line script ends in timeouts. Ping also times out. ndftp which I am unfamiliar with until now does not connect but is refused by proftpd. Is that the proper server for ncftp?
I haven't set up ftp before so are there some steps I should be sure not to leave out? Thanks in advance 4 UR time/interest.
 
Old 11-28-2012, 06:21 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
rc.rpc is part of nfs. tftp (trivial file transfer protocol) and ftp use different protocols and are not interchangeable as clients.

ncftp is an alternative to the standard ftp client and is capable of connecting to the proftpd server.

The first step is to determine why you can not ping the PCs. No response could be due to a firewall if running. How are the two computers connected? Via a switch or directly cabled?
 
Old 11-29-2012, 02:17 AM   #3
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
Yes on rpc. But thought that perhaps portmap was involved as it was not running and then discovered Slackware starts it with rc.rpc. That confused me (not hard to do).
It is confusing to me too that tftp will connect and try to get/put and timeout but ncftp will not connect. Perhaps that is due to protocols?
The 2 machines are cable connected via nic cards. No firewall running as I have it running only when connected to Internet, no need otherwise. Will drop network connections when on Internet.
 
Old 11-29-2012, 07:45 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Depending on the age of the ethernet adapters they may or may not have the capability to auto detect straight vs crossover connection. Are the link LEDs illuminated? If not then you will need a crossover cable. If the link lights are illuminated that you will need to verify that connection is configured the same i.e. 10/100/1000 and full vs half duplex via the ethtool utility.

You should be able to connect to the ftp server on the same machine to demonstrate it is working correctly.
 
Old 11-30-2012, 02:12 AM   #5
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
Both ethernet port lights are ON.
Both cards are capable of both 10 and 100 base T.
I employed ethtool and all returned features were identical except for PHYAD, Speed, Duplex, Current message level, and Link detected.
On machine 2:
PHYAD: 32
Speed: 10 Mb/s
Duplex: Full
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes

On machine 1:
PHYAD: 1
Speed: 10 Mb/s
Duplex: Half
Current message level: 0x00000007 (7)
drv
Link detected: no

What is meaning of PHYAD and why different?
Why drv "blank" for machine 1 and "probe link" on #2?
I presume "Link detected: no" and speed and duplex might just be causing the problem.
I know I can change speed and duplex but not sure about changing Link detected.
tftp-ing to self on both machines produce a tftp prompt but when I attempt to get /etc/hosts they both time out and leave an empty hosts file.
Does this suggest anything further?
POST SCRIPT:
Tried to set speed and duplex with ethtool -s command. They did not change when I redisplayed the list of features. I then examined mii-tool and attempting to repeat changing speed and duplex got: SIOCGMIIPHY on 'eth0' failed: Invalid argument
Since both boards responded yes to advertising auto-negotiate doesn't that mean that they will negotiate speed and duplex and that setting them is superfluous? OR will the speed/duplex change after reboot?

Last edited by waddles; 11-30-2012 at 03:12 AM.
 
Old 11-30-2012, 07:42 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
tftp does not work with the proftp server. Use ftp.

Speed and mode must be matched. If both are set to auto negotiate then they should sync in theory however if your adapters do not auto detect crossover then it will fail.
 
Old 12-01-2012, 03:29 AM   #7
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
Setting up ftp as static IP tween Slack machines

I'll examine the cable.
Looking to find out what PHYAD means and why values of 1 and 32 so dispersed?
Is it to be expected that after using ethtool to set speed and duplex that it won't change those parameters if the card auto negotiates?
 
Old 12-01-2012, 05:28 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Not sure but I do not think the PHYAD matters.
 
Old 12-03-2012, 02:01 AM   #9
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
Kind of thought so too so did a search and got:
PHYAD ,as the name implies is PHY ADDRESS.
In reality it displays the port number on the system/switch for the on which ethtool command is used to query the value.
Example: PHYAD of 23 would mean (port number 23) on the system being queried.

Pulled cable and visually verified it as a cross-over cable which I now recall is what it should be. Remembered had built a cable test box so also checked electrically and verified all 3 of my cross-over cables.

Last edited by waddles; 12-03-2012 at 02:02 AM.
 
Old 12-03-2012, 06:18 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Have you tried configuring the adapters for the same speed and duplex?
Are you able to ping them now?
 
Old 12-04-2012, 12:01 AM   #11
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
Setting up ftp as static IP tween Slack machines

Recall that when I configured the one card before that it did not change apparently since it was auto-config-ing.
Will try pinging them later tonight if all goes well so I have time.
 
  


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
using static IP addressing for VM guest machines Jamf Linux - Networking 2 10-06-2012 01:30 AM
Setting Up live FTP Server with Static IP in Red-Hat Linux 6 manalisharmabe Linux - Server 5 05-21-2012 08:04 PM
setting static IP on linux PCs with no static IP address from internet provider? solvetek Linux - Networking 1 10-22-2011 08:04 AM
Accessing FTP site using FTP Clients s/w on XP machines. munirg2003 Linux - Security 5 06-26-2007 02:36 AM
Machines on different subnets / static IPs natv Linux - Networking 4 02-04-2007 02:34 PM

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

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