Operating System - Tru64 Unix
1828579 Members
2218 Online
109982 Solutions
New Discussion

FTP issue (newbie)

 
paolo prinsecchi
New Member

FTP issue (newbie)

Hello all,
sorry to bother you with somethign that is certainly very basic.

TRU64 V5.1

We inherited this system from a consociate. For various reasons, we need to change the IP address to a new subnet.

Once done, FTP stopped working. We can telnet to the server with the new IP, but when FTP'ing we get a "Connected" message, but then the session gets terminated after 60 seconds or so. We can FTP from the server itself, though (either to the IP address or to 127.0.0.1).

Any suggestion? I was reading the forum, there is a similar post with suggestions about checkign the DNS settings.
On this server I did not found a nsswitch file, so we created it copying what listed in taht message. I have added the server names/IPs in the /etc/hosts file, but it still does not resolve anything. Is there anything obvious we are missing? Ip-level security settings?

Any command or log taht would be of help?

I'm sorry to say it, but I really do not use unix very often. If you have any suggestion, please don't assume I know much about this OS.

Thanks,
Paolo

8 REPLIES 8
Vladimir Fabecic
Honored Contributor

Re: FTP issue (newbie)

Hello
Please post steps what you did while changing address.
Also post /etc/rc.config /etc/hosts and /etc/resolv.conf
In vino veritas, in VMS cluster
Ann Majeske
Honored Contributor

Re: FTP issue (newbie)

The nsswitch.conf file was implemented in one of the more recent patch kits of V5.1B. Since you did not find the file on your system it probably isn't running a version that uses the nsswitch.conf file. On previous versions the svc.conf file is used instead of the nsswitch.conf file. See "man svc.conf" for information on the svc.conf file.

With the FTP, can you successfully copy things for the 60 seconds or does it just hang for 60 seconds and then disconnect?

Have you tried rcp?

Ann
Rob Leadbeater
Honored Contributor

Re: FTP issue (newbie)

Hi,

I suspect that you have a name resolution problem somewhere...

From the Tru64 server, make sure that a forward and reverse name lookup of the connecting client looks OK with nslookup

# nslookup

# nslookup

It would also be useful to see the same thing from the client's point of view...

Also, can you post the output of "sizer -v" so we can see exactly which version of Tru64 you're running...

Cheers,

Rob
paolo prinsecchi
New Member

Re: FTP issue (newbie)

Hello all, thanks for the replies so far. I have collected answers to your questions below (I changed the domain names to protect the guilty).

From the files it appears the hostname is still on the old domain (zzz.com), but should now be changed to xxx.com.

Any suggestion?

And (newbie question), how do I bounce the services after changing a parameter? Can't keep rebooting the box...


#### How did we change the IP addresses?
We changed IP Address through Sysman utility

#### sizer -v
Compaq Tru64 UNIX V5.1 (Rev. 732); Mon Apr 1 17:07:23 IST 2002

#### Copy of file /etc/svc.conf

aliases=local
auth=local
group=local
hosts=local,bind,yp
netgroup=local
networks=local
passwd=local
protocols=local
rpc=local
services=local
SECLEVEL=BSD


##### RC.CONFIG File
DISPLAYTYPE=
MAX_NETDEVS=
NETDEV_1=
NETDEV_2=
NETDEV_3=
NETDEV_4=
NETDEV_5=
NETDEV_6=
NETDEV_7=
IFCONFIG_1=
IFCONFIG_2=
IFCONFIG_3=
IFCONFIG_4=
IFCONFIG_5=
IFCONFIG_6=
IFCONFIG_7=
PAGEMINSZ=0
PAGEMAXSZ=0
QUOTA_CONFIG=
COLLECT_AUTORUN="0"
COLLECT_COMPRESSION="1"
COLLECT_ARGS=
export DISPLAYTYPE HOSTNAME NUM_NETCONFIG QUOTA_CONFIG
export NETDEV_0 NETDEV_1 NETDEV_2 NETDEV_3 NETDEV_4 NETDEV_5 NETDEV_6 NETDEV_7
export IFCONFIG_0 IFCONFIG_1 IFCONFIG_2 IFCONFIG_3 IFCONFIG_4 IFCONFIG_5
export IFCONFIG_6 IFCONFIG_7 RWHOD ROUTED ROUTED_FLAGS GATED GATED_FLAGS
export ROUTER MAX_NETDEVS COLLECT_AUTORUN COLLECT_COMPRESSION COLLECT_ARGS
export PAGERAW PAGEFILE PARTITION PARTITIONTYPE PAGEMINSZ PAGEMAXSZ
PAGERAW="1"
export PAGERAW
XLOGIN="cde"
export XLOGIN
LAT_SETUP="1"
export LAT_SETUP
ENVMON_CONFIGURED="0"
export ENVMON_CONFIGURED
ENVMON_HIGH_THRESH="55"
export ENVMON_HIGH_THRESH
HOSTNAME="punfty01.in.u1609.zzz.com"
export HOSTNAME
MAIL_CONF="YES"
export MAIL_CONF
RWHOD="no"
export RWHOD
RWHOD_FLAGS=""
export RWHOD_FLAGS
GATED_OLD="no"
export GATED_OLD
GATED="no"
export GATED
GATED_FLAGS=""
export GATED_FLAGS
ROUTED="no"
export ROUTED
ROUTED_FLAGS=""
export ROUTED_FLAGS
ROUTER="no"
export ROUTER
NETDEV_0="ee0"
export NETDEV_0
IFCONFIG_0="172.22.23.231 netmask 255.255.255.224"
export IFCONFIG_0
NUM_NETCONFIG="1"
export NUM_NETCONFIG


##### HOSTS File
127.0.0.1 localhost
172.22.23.231 punfty01.in.u1609.zzz.com punfty01
172.22.20.210 iallndc0.xxx.com
172.29.4.232 iapnndc0.xxx.com
172.22.23.230 ialla001.xxx.com

#### Resolv.Conf File
domain
nameserver 172.22.20.210
nameserver 172.29.4.232

paolo prinsecchi
New Member

Re: FTP issue (newbie)

A last update... we messed around with the hosts file, if the name/Ip of the client is added there we can connect via FTP with no problems.
Then we added the IP addresses of the DNS servers to resolv.conf, but we can't get it to work. If I run Nslookup, I get an error like "can't find server name for address 0.0.0.0". It seems not to read the server IP addresses in resolv.conf.
Vladimir Fabecic
Honored Contributor

Re: FTP issue (newbie)

It is DNS issue for sure.
So your first DNS server is 172.22.20.210.
Can you ping it? Hope there are no restrictions to DNS server access.
Yes, your domain is still zzz.com.
Do:
1. Replace line
HOSTNAME="punfty01.in.u1609.zzz.com"
with
HOSTNAME="punfty01.in.u1609.xxx.com"
in /etc/rc.config
2. Make your /etc/resolv.conf to be:
domain xxx.com
nameserver 172.22.20.210
nameserver 172.29.4.232
3. Replace line
172.22.23.231 punfty01.in.u1609.zzz.com punfty01
with
172.22.23.231 punfty01.in.u1609.xxx.com punfty01
in /etc/hosts
4. Restart inetd with
# rcinet restart
After you do that, check what Rob said.
Hope you changed /etc/routes as it should be.
In vino veritas, in VMS cluster
paolo prinsecchi
New Member

Re: FTP issue (newbie)

Thanks. We did some of these points, but need to to check /etc/routes to see what's in these. Let me ask the guys in India to have a look.
paolo prinsecchi
New Member

Re: FTP issue (newbie)

thanks, the route file was ok, with only one entry pointing to our firewall.

Actually restarting the server (maybe overkill) did the trick, we were tring to have inetd re-read the parameters with the -h option but evidently it was not enough.

Thanks to everybody for the help.