Unable to connect to a server from our AIX server via FTP


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Unable to connect to a server from our AIX server via FTP
# 15  
Old 02-20-2020
You should try pinging your own IP address first:

try this:

Code:
ping 172.16.80.80

and for fun

Code:
ping 127.0.0.1

and to be complete

Code:
ping localhost

and post back the results (each in it's on code tag block).
# 16  
Old 02-20-2020
Code:
# ping -c 5 172.16.80.80
PING 172.16.80.80: (172.16.80.80): 56 data bytes
64 bytes from 172.16.80.80: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 172.16.80.80: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 172.16.80.80: icmp_seq=2 ttl=255 time=0 ms
64 bytes from 172.16.80.80: icmp_seq=3 ttl=255 time=0 ms
64 bytes from 172.16.80.80: icmp_seq=4 ttl=255 time=0 ms

--- 172.16.80.80 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms

Code:
# ping -c 10 127.0.0.1
PING 127.0.0.1: (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=255 time=0 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=255 time=0 ms

--- 127.0.0.1 ping statistics ---
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
#


Code:
# ping -c 5 172.16.80.85
PING 172.16.80.85: (172.16.80.85): 56 data bytes
64 bytes from 172.16.80.85: icmp_seq=0 ttl=128 time=0 ms
64 bytes from 172.16.80.85: icmp_seq=1 ttl=128 time=0 ms
64 bytes from 172.16.80.85: icmp_seq=2 ttl=128 time=0 ms
64 bytes from 172.16.80.85: icmp_seq=3 ttl=128 time=0 ms
64 bytes from 172.16.80.85: icmp_seq=4 ttl=128 time=0 ms

--- 172.16.80.85 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
#

--- Post updated at 02:01 PM ---

Can you tell me how to open port 20? Do i need to modify anything in the /etc/services file ?
# 17  
Old 02-20-2020
Quote:
Originally Posted by Bruno2020

Can you tell me how to open port 20? Do i need to modify anything in the /etc/services file ?
Bruno,

You do not need to worry about port 20 (yet). That line of thinking is leading you off track (sorry Rudi) because you need to establish you have a working route (network connection) between your private IP address space and the Internet. What you are describing (so far) is just a simple network configuration issue.

You cannot ping your ftp host. ping does not use ports. The ping protocol works at the transport layer.

Quote:
There is no TCP or UDP port number associated with ICMP packets as these numbers are associated with the transport layer above.
So, if you cannot ping, you can do nothing (unless ping is blocked by a firewall rule, but then you have other problems, and you are not ready for that yet) .... on any of the ports from 1 to over 65,000 (65,535 TCP and 65,535 UDP ports, to be exact), open or not, LOL. You can open port 20 as wide as a truck and you will still not be able to connect to it; because you have described basic networking issues. You cannot ping at the transport layer (yet).

Since you can ping your own interface (that is good news, at least) , you need to try to ping the next hop on your network (normally your router, but you have not provided a diagram. Please upload a sketch as I mentioned, using the attachment feature of the site, not an external img hosting link).

Do you know what the IP address of your router is?

Also, can you run the arp command on your computer?

Try:

Code:
$ arp -a

That is the next step.... you need to see if you can or cannot connect (ping) the next hop in your network.

You are getting "ahead of yourself" if you try to work / troubleshoot at the TCP or UDP layer before you make sure you are good to go lower in the stack (at the transport layer).

That is why we need to establish you can ping first.

Understand yet? To troubleshoot networking issues, it is best to start at the bottom and work your way up the protocol stack (not the other way around). If you learn to troubleshoot like this, you will find it much easier and much faster to solve problems, I promise.
# 18  
Old 02-21-2020
Hi,

Yes, i was able to locate the gateway on my network.

Code:
# lsconf | grep -i gateway
        Gateway: 172.16.80.100
# ping -c 5 172.16.80.100
PING 172.16.80.100: (172.16.80.100): 56 data bytes
64 bytes from 172.16.80.100: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 172.16.80.100: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 172.16.80.100: icmp_seq=2 ttl=255 time=0 ms
64 bytes from 172.16.80.100: icmp_seq=3 ttl=255 time=0 ms
64 bytes from 172.16.80.100: icmp_seq=4 ttl=255 time=0 ms

--- 172.16.80.100 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms

Code:
# arp -a
  ? (172.16.80.232) at 3c:a0:67:a7:0:c3 [ethernet] stored in bucket 4

  ? (172.16.80.85) at 0:d8:61:65:e2:63 [ethernet] stored in bucket 6

  ? (172.16.80.92) at 74:e6:e2:1a:59:2 [ethernet] stored in bucket 13

  ? (172.16.80.100) at 58:8d:9:3f:17:31 [ethernet] stored in bucket 21

  ? (172.16.80.109) at 4c:cc:6a:fa:35:6 [ethernet] stored in bucket 30

  ? (172.16.80.2) at 0:1c:c0:d0:90:8e [ethernet] stored in bucket 72

  ? (172.16.80.3) at 0:e0:4c:3a:e1:34 [ethernet] stored in bucket 73

  ? (172.16.80.4) at 30:9c:23:44:3a:9 [ethernet] stored in bucket 74

  ? (172.16.80.5) at 4c:cc:6a:fa:37:84 [ethernet] stored in bucket 75

  ? (172.16.80.8) at 0:27:e:0:a6:ed [ethernet] stored in bucket 78

  ? (172.16.80.17) at c4:65:16:1d:93:e8 [ethernet] stored in bucket 87

  ? (172.16.80.34) at 48:5b:39:c0:b3:52 [ethernet] stored in bucket 104

  ? (172.16.80.35) at 0:e0:4c:df:38:95 [ethernet] stored in bucket 105

  ? (172.16.80.36) at 0:e0:4c:73:1:d1 [ethernet] stored in bucket 106

  ? (172.16.80.37) at 3c:52:82:9:8f:e [ethernet] stored in bucket 107

  ? (172.16.80.43) at 0:27:e:0:12:27 [ethernet] stored in bucket 113

  ? (172.16.80.49) at 0:e0:4c:64:12:86 [ethernet] stored in bucket 119

  ? (172.16.80.52) at 0:e0:4c:3a:5d:62 [ethernet] stored in bucket 122

  ? (172.16.80.54) at 0:e3:74:27:60:c9 [ethernet] stored in bucket 124

  ? (172.16.80.55) at 0:1a:4d:1c:35:6 [ethernet] stored in bucket 125

  ? (172.16.80.57) at 48:5b:39:c0:b3:50 [ethernet] stored in bucket 127

  ? (172.16.80.59) at 40:8d:5c:67:5a:c8 [ethernet] stored in bucket 129

  ? (172.16.80.62) at 74:d4:35:bd:c:51 [ethernet] stored in bucket 132

  ? (172.16.80.63) at 40:8d:5c:3c:e3:88 [ethernet] stored in bucket 133

  ? (172.16.80.64) at 48:5b:39:c0:b3:77 [ethernet] stored in bucket 134

  ? (172.16.80.65) at 0:60:67:70:f7:c8 [ethernet] stored in bucket 135

  ? (172.16.80.67) at 0:16:76:87:2:67 [ethernet] stored in bucket 137

  ? (172.16.80.69) at 0:e0:4c:17:2:5a [ethernet] stored in bucket 139

  ? (172.16.80.77) at 0:24:1d:5f:3b:1f [ethernet] stored in bucket 147

bucket:    0     contains:    0 entries
bucket:    1     contains:    0 entries
bucket:    2     contains:    0 entries
bucket:    3     contains:    0 entries
bucket:    4     contains:    1 entries
bucket:    5     contains:    0 entries
bucket:    6     contains:    1 entries
bucket:    7     contains:    0 entries
bucket:    8     contains:    0 entries
bucket:    9     contains:    0 entries
bucket:   10     contains:    0 entries
bucket:   11     contains:    0 entries
bucket:   12     contains:    0 entries
bucket:   13     contains:    1 entries
bucket:   14     contains:    0 entries
bucket:   15     contains:    0 entries
bucket:   16     contains:    0 entries
bucket:   17     contains:    0 entries
bucket:   18     contains:    0 entries
bucket:   19     contains:    0 entries
bucket:   20     contains:    0 entries
bucket:   21     contains:    1 entries
bucket:   22     contains:    0 entries
bucket:   23     contains:    0 entries
bucket:   24     contains:    0 entries
bucket:   25     contains:    0 entries
bucket:   26     contains:    0 entries
bucket:   27     contains:    0 entries
bucket:   28     contains:    0 entries
bucket:   29     contains:    0 entries
bucket:   30     contains:    1 entries
bucket:   31     contains:    0 entries
bucket:   32     contains:    0 entries
bucket:   33     contains:    0 entries
bucket:   34     contains:    0 entries
bucket:   35     contains:    0 entries
bucket:   36     contains:    0 entries
bucket:   37     contains:    0 entries
bucket:   38     contains:    0 entries
bucket:   39     contains:    0 entries
bucket:   40     contains:    0 entries
bucket:   41     contains:    0 entries
bucket:   42     contains:    0 entries
bucket:   43     contains:    0 entries
bucket:   44     contains:    0 entries
bucket:   45     contains:    0 entries
bucket:   46     contains:    0 entries
bucket:   47     contains:    0 entries
bucket:   48     contains:    0 entries
bucket:   49     contains:    0 entries
bucket:   50     contains:    0 entries
bucket:   51     contains:    0 entries
bucket:   52     contains:    0 entries
bucket:   53     contains:    0 entries
bucket:   54     contains:    0 entries
bucket:   55     contains:    0 entries
bucket:   56     contains:    0 entries
bucket:   57     contains:    0 entries
bucket:   58     contains:    0 entries
bucket:   59     contains:    0 entries
bucket:   60     contains:    0 entries
bucket:   61     contains:    0 entries
bucket:   62     contains:    0 entries
bucket:   63     contains:    0 entries
bucket:   64     contains:    0 entries
bucket:   65     contains:    0 entries
bucket:   66     contains:    0 entries
bucket:   67     contains:    0 entries
bucket:   68     contains:    0 entries
bucket:   69     contains:    0 entries
bucket:   70     contains:    0 entries
bucket:   71     contains:    0 entries
bucket:   72     contains:    1 entries
bucket:   73     contains:    1 entries
bucket:   74     contains:    1 entries
bucket:   75     contains:    1 entries
bucket:   76     contains:    0 entries
bucket:   77     contains:    0 entries
bucket:   78     contains:    1 entries
bucket:   79     contains:    0 entries
bucket:   80     contains:    0 entries
bucket:   81     contains:    0 entries
bucket:   82     contains:    0 entries
bucket:   83     contains:    0 entries
bucket:   84     contains:    0 entries
bucket:   85     contains:    0 entries
bucket:   86     contains:    0 entries
bucket:   87     contains:    1 entries
bucket:   88     contains:    0 entries
bucket:   89     contains:    0 entries
bucket:   90     contains:    0 entries
bucket:   91     contains:    0 entries
bucket:   92     contains:    0 entries
bucket:   93     contains:    0 entries
bucket:   94     contains:    0 entries
bucket:   95     contains:    0 entries
bucket:   96     contains:    0 entries
bucket:   97     contains:    0 entries
bucket:   98     contains:    0 entries
bucket:   99     contains:    0 entries
bucket:  100     contains:    0 entries
bucket:  101     contains:    0 entries
bucket:  102     contains:    0 entries
bucket:  103     contains:    0 entries
bucket:  104     contains:    1 entries
bucket:  105     contains:    1 entries
bucket:  106     contains:    1 entries
bucket:  107     contains:    1 entries
bucket:  108     contains:    0 entries
bucket:  109     contains:    0 entries
bucket:  110     contains:    0 entries
bucket:  111     contains:    0 entries
bucket:  112     contains:    0 entries
bucket:  113     contains:    1 entries
bucket:  114     contains:    0 entries
bucket:  115     contains:    0 entries
bucket:  116     contains:    0 entries
bucket:  117     contains:    0 entries
bucket:  118     contains:    0 entries
bucket:  119     contains:    1 entries
bucket:  120     contains:    0 entries
bucket:  121     contains:    0 entries
bucket:  122     contains:    1 entries
bucket:  123     contains:    0 entries
bucket:  124     contains:    1 entries
bucket:  125     contains:    1 entries
bucket:  126     contains:    0 entries
bucket:  127     contains:    1 entries
bucket:  128     contains:    0 entries
bucket:  129     contains:    1 entries
bucket:  130     contains:    0 entries
bucket:  131     contains:    0 entries
bucket:  132     contains:    1 entries
bucket:  133     contains:    1 entries
bucket:  134     contains:    1 entries
bucket:  135     contains:    1 entries
bucket:  136     contains:    0 entries
bucket:  137     contains:    1 entries
bucket:  138     contains:    0 entries
bucket:  139     contains:    1 entries
bucket:  140     contains:    0 entries
bucket:  141     contains:    0 entries
bucket:  142     contains:    0 entries
bucket:  143     contains:    0 entries
bucket:  144     contains:    0 entries
bucket:  145     contains:    0 entries
bucket:  146     contains:    0 entries
bucket:  147     contains:    1 entries
bucket:  148     contains:    0 entries

There are 29 entries in the arp table.

#

Regards,
Bruno
# 19  
Old 02-21-2020
Great. OK.... let's check your subnetwork and routing.

Can you issue the this command on AIX?

Code:
route -n

or

Code:
route -vn

and also, for completeness:

Code:
ifconfig -a

Thanks.
# 20  
Old 02-21-2020
Code:
# ifconfig -a
en0: flags=1e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),LARGESEN
D,CHAIN>
        inet 172.16.80.80 netmask 0xffff0000 broadcast 172.16.255.255
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN>
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1%1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
#

The route command with the given options somehow doesn't work.

Code:
# route -n
usage: route [ -nqCvf ]  cmd [[ -<qualifers> ] args ]
# route -vn
usage: route [ -nqCvf ]  cmd [[ -<qualifers> ] args ]
# route -nqCvf
# route
usage: route [ -nqCvf ]  cmd [[ -<qualifers> ] args ]


Here is the routing table info :

Code:
# netstat -rn
Routing tables
Destination        Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default            172.16.80.100     UG       12     32395 en0      -      -
127/8              127.0.0.1         U        15    122582 lo0      -      -
172.16.0.0         172.16.80.80      UHSb      0         0 en0      -      -   =>
172.16/16          172.16.80.80      U        31     64804 en0      -      -
172.16.80.80       127.0.0.1         UGHS     54   9690815 lo0      -      -
172.16.255.255     172.16.80.80      UHSb      2        64 en0      -      -

# 21  
Old 02-21-2020
My first thought is you have a routing problem and perhaps your netmask is set wrong. But I cannot be sure.

Are you sure your netmask for your subnetwork is correctly set to 0xffff0000? (This seems possibly an error).

Do you have the ability to login to your default router host at 172.16.80.100 and check the netmask there? What is that device?

Normally, we do not see big /16 netmasks in subnetwork devices.

Cheers
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Not able to connect to new FTP server

Hi All, We have done new FTB setup. I am not able to to connect to this new target server. Here is the new setup to send files to the FTB : - Login : FTB-TAN-DEV-SAP - Protocol : SFTP - Port : 54322 - Hostname : ftb-dev.apj.hp - Env : DEV - Target ID : 3225 I tried connecting to the... (5 Replies)
Discussion started by: ROCK_PLSQL
5 Replies

2. Solaris

Unable to connect sun server.

Hi, I am unable to connect sun server, server model is sun fire v440 on server 2 ports are there. serial management, and network management. I would like to know how to connect serial port if I dont have com port on my system? and on Network Management no ip address is configured. ... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Linux

Unable to connect to Server machine from a client machine using ftp service

Hi, Could you please help me with the below issue.. I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1). I'm trying to connect to server from the client machine using ftp service. I have installed vsftpd daemon on both the machines. I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies

4. UNIX for Advanced & Expert Users

Public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (1 Reply)
Discussion started by: sridhardwh
1 Replies

5. Linux

Generate public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (0 Replies)
Discussion started by: sridhardwh
0 Replies

6. Red Hat

unable to connect remote server using ssh

hi all i am unable to connect remote server using ssh but i am able to ping the server ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies

7. UNIX for Advanced & Expert Users

Unable to use FTP command to connect from one server to another

Hi, I have two unix servers A and B. from A i am trying to use the ftp command to connect to B but I am getting the "ftp: connect: A remote host refused an attempted connect operation." I checked the following things : 1.) Unix Server details for A and B after running the command uname -a... (3 Replies)
Discussion started by: mick_000
3 Replies

8. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

9. AIX

Unable to connect to AIX server through xmanager

Hi, I have xmanager installed on my windows PC. But I am not able to connect to AIX server. It's giving the error as follows: The X11 forwarding request was rejected. Graphics mode is not coming up in AIX server. Please help as I have to install oracle patchset urgently. (1 Reply)
Discussion started by: dwiravi
1 Replies

10. Shell Programming and Scripting

ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location. However, on running the script I find that I am not even able to connect to ftp server. I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP. IP used here is a dummy IP. What can go... (3 Replies)
Discussion started by: gram77
3 Replies
Login or Register to Ask a Question