unable ping ipaddress


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unable ping ipaddress
# 1  
Old 05-29-2003
unable ping ipaddress

I have Sco openserver 5.0. It had a 125. ip. I changed it to a 192. ip. was unable to ping the 192. I was told to change it in the
etc/tcp
etc/hosts

files which i did. still unable to ping.
i am getting a message unable to route to host.

I also have an error in my etc/tcp file on line 130 unexpected fi

here is a copy of my tcp file

Thank you for your help in advance

*****************************************
Code:
#!/bin/sh
# The following was generated from 
# NLS/english/tcprc.gen
#
MF_TCPRC=tcprc.cat@tcp
#
MS_TCPRC=1
CANT_FIND_PS=1
STARTING=2
STOPPING=3
STOPPED=4
USAGE=5
:
#      @(#)tcp.sh,v 6.44 1996/01/19 18:34:29 aes Exp - STREAMware TCP/IP  source
#
# Copyrighted as an unpublished work.
# (c) Copyright 1987-1995 Legent Corporation
# All rights reserved.
#
#      SCCS IDENTIFICATION
#
# TCP start/stop script
# Usage: tcp [ start | stop ]
#

#
# DOMAIN now set in DEFAULT
#

DEFAULT=/etc/default/tcp

PATH=/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin
#
# all tcp processes
#
ALLPROCS="/inetd|strerr|routed|rwhod|timed|gated|rarpd|slattach|bootpd|pppd|xntpd|snmpd|lpd|irdd|aasd|dhcpd/"

# 
# defaults will be overridden from /etc/default/tcp
#

DOMAIN=sco.COM
NETMASK=
BROADCAST=

if [ -r $DEFAULT ]; then
	. $DEFAULT
fi

if [ -x /bin/ps ] ; then
	/bin/su root -c "/bin/ps -ef" > /tmp/tps$$ 2>/tmp/ps.err$$
	/bin/rm -f /tmp/ps.err$$
else
	echo "$0: \c"
	dspmsg $MF_TCPRC -s $MS_TCPRC $CANT_FIND_PS "Can't find ps\n"
	exit 1
fi

do_slink=0
grep "ksl.disable" /dev/string/boot >/dev/null 2>&1
[ $? = 0 ] && do_slink=1

case "$1" in

start)
	if [ "$do_slink" = 1 ]; then
		if [ "$LEVEL" = "sysinit" ]; then
			do_slink=0
			do_basic=0
			do_ifs=0
			do_remainder=0
		else
			do_slink=1
			do_basic=1
			do_ifs=1
			do_remainder=1
		fi
	else
		if [ "$LEVEL" = "sysinit" ]; then
			do_slink=0
			do_basic=1
			do_ifs=1
			do_remainder=0
		else
			do_slink=0
			do_basic=0
			do_ifs=1
			do_remainder=1
		fi
	fi

	if [ "$do_slink" = 1 ]; then
		slink
	fi
	
	if [ "$do_basic" = 1 ]; then

		#
		# Tune the kernel.  Various defaults will be initialized by
		# drivers when slink/ksl run.  We override them here.
		#
		/etc/inconfig

		#
		# set the host name
		#
		hostname `uname -n`.$DOMAIN
	fi
	
	if [ "$do_ifs" = 1 ]; then
		#
		# Interface configuration -- edit as appropriate.
		#
		ifconfig lo0 127.0.0.1 perf 57344 57344 1
		ifconfig -p net0 /syslog.pid`
			/bin/su root -c "/bin/ps -p $SYSLOGDPID" | grep syslogd > /dev/null 2>&1
		fi

		if [ $? -eq 0 ]; then
			kill -1 $SYSLOGDPID
		else
			rm -f /etc/syslog.pid
		fi

		if [ ! -f /etc/syslog.pid -a -x /etc/syslogd -a -f /etc/syslog.conf ]
		then
			/etc/syslogd
		fi
	fi
	
	if [ "$do_remainder" = 1 ]; then

		dspmsg $MF_TCPRC -s $MS_TCPRC $STARTING "Starting TCP services: "
		
		if [ -x /etc/inetd ]; then
			SDD=`who -a | grep -s "^sdd " | grep -v exit`
			if [ -n "$SDD" ]
			then
			    # sd starts inetd with no LUID for
			    # high security systems
			    /usr/bin/sd inetd < /dev/console &
			else
			    /etc/inetd &
			fi
		fi
		
		#
		# Initialize PPP interfaces before other things that care
		# about interfaces
		#
		if [ -x /etc/pppd -a -f /etc/ppphosts ] ;then
			/etc/pppd; echo "pppd \c"
		fi
		
		if [ -x /etc/snmpd -a -f /etc/snmpd.conf ]; then
			/etc/snmpd & 
			echo "snmpd \c" 
		fi
	
		#
		# Name server should start before almost everything
		#
		
		if [ -x /etc/named  -a -x /etc/ndc ]; then
			if [ -f /etc/named.boot -o -f /etc/named.conf ]; then
				echo "named\n"
				/etc/ndc start
			fi
		fi
	
		#
		# Choice of routing daemons.
		#
		if [ -x /etc/routed -a ! -f /etc/gated.conf ]; then
			routed &
			echo "routed \c"
		fi
	
		#	Do NOT run irdd with either gated or routed
		#	if [ -x /etc/irdd -a -f /etc/irdd.conf ]; then
		#		/etc/irdd &
		#		echo "irdd \c"
		#	fi
	
		if [ -x /etc/gated -a -f /etc/gated.conf ]; then
			/etc/gated &
			echo "gated \c"
		fi
	
		#	if [ -x /etc/rarpd -a -f /etc/ethers ]; then
		#		/etc/rarpd -a &
		#		echo "rarpd \c"
		#	fi
	
		#
		# Uncomment these lines if you want to run timed.  Add -M
		# to the timed command if you want this machine to be a
		# potential master server.
		#
		#	if [ -x /etc/timed -a ! -f /etc/ntp.conf ]; then
		#		timed &
		#		echo "timed \c"
		#	fi
		
		#
		# Xntpd - Don't run this at the same time as timed.
			if [ -x /etc/xntpd -a -f /etc/ntp.conf ]; then
				tickadj -q -s
				xntpd
				echo "xntpd \c"
			fi
		
		#
		# Rwhod can slow your systems down a lot.
		#	if [ -x /etc/rwhod -a -d /usr/spool/rwho ]; then
		#		rwhod &
		#		echo "rwhod \c"
		#	fi
		
		if [ -x /usr/lib/lpd -a -f /etc/printcap ]; then
			/bin/rm -f /usr/spool/lpd/*/lock /usr/spool/lpd/lock
			/usr/lib/lpd &
			echo "lpd \c"
		fi

		#
		# Start Address Allocation Service daemon if there is a
		# configuration file present.
		#

		if [ -x /etc/aasd -a -f /etc/aasd.conf ]; then
			/etc/aasd &
			echo "aasd \c"
		fi
	
	fi

	echo ""
	/bin/rm -f /tmp/tps$$
	;;

stop)
	dspmsg $MF_TCPRC -s $MS_TCPRC $STOPPING "Stopping TCP/IP services...\n"
	
	#
	# Find all the TCP daemons and kill them
	#
	/usr/bin/awk "$ALLPROCS { if (NR == 1) next; print \"kill \" \$2 }" /tmp/tps$$ | \
	/bin/sh > /dev/null 2>&1

	# Wait a second to allow the kills to take effect.
	sleep 1

	/bin/rm -f /tmp/tps$$

	# stop the nameserver

	if [ -x /etc/ndc ]; then
		/etc/ndc stop
	fi

	dspmsg $MF_TCPRC -s $MS_TCPRC $STOPPED "TCP/IP services stopped.\n"
	;;

*)

	dspmsg $MF_TCPRC -s $MS_TCPRC $USAGE "Usage: %s [ start | stop ]\n" $0
	/bin/rm -f /tmp/tps$$
	exit 1
	;;

esac

/bin/rm -f /tmp/tps$$
exit 0

inserted code tags --oombera

Last edited by oombera; 02-16-2004 at 02:40 PM..
# 2  
Old 05-30-2003
pdoug76,

The extra fi is here (starting line 125 - ending line 129):

Code:
if [ ! -f /etc/syslog.pid -a -x /etc/syslogd -a -f /etc/syslog.conf ]
then
/etc/syslogd
fi
fi

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Unable to ping localhost

Hi all, I have gone through many posts related to this issue,but my issue wasn't resolved hence creating new thread. I am unable to ping localhost. ping localhost tries to ping localhost which is defined in DNS. My /etc/hosts has entry for localhost as 127.0.0.1 loopback localhost. ... (8 Replies)
Discussion started by: chpsam
8 Replies

2. Solaris

Unable to ping Windows

Hello, Am unable to ping the Windows Box, from my Solaris Box. They both are in same LAN, have the same IP Segments. Windows IP :: 10.141.14.120 Solaris IP :: 10.141.14.11 Unable to get why isnt working out.... When using the command 'ping 10.141.14.120', it gives the error as 'ping:... (4 Replies)
Discussion started by: jayanto
4 Replies

3. Solaris

Unable to ping New server

Hi ALL, I Have installed NEW v240 server through hyper terminal, After installation i unable to ping the server from out side server... i can see no entry in resolve.conf file.. but the server has DNS.. willl that issue.. please guide me ping the server from outside within the same network bk (1 Reply)
Discussion started by: suresh_krish
1 Replies

4. SuSE

unable to ping virtualbox machine

I current have Windows 7 running Virtualbox - OpenSUSE. From SUSE I can ping the Windows box 10.10.x.x no problems. But from the windows box I can't ping SUSE. I have tried disabling the firewall and sill no luck. Tried pinging host name and still no luck. The network gives an IP from... (2 Replies)
Discussion started by: woofie
2 Replies

5. IP Networking

unable to ping to my server

hi, I setup a Solaris machine in my server room and my client cannot access it. Can anyone advise? Test that i have done: -My client pc cannot ping the server. -My solaris server cannot ping client -My solaris server can ping it's gateway -Another NT machine 1 (10.179.30.26) in the... (8 Replies)
Discussion started by: skiturn
8 Replies

6. Solaris

unable to ping server

hi, I setup a Solaris machine in my server room and my client cannot access it. Can anyone advise? Test that i have done: -My client pc cannot ping the server. -My solaris server cannot ping client -My solaris server can ping it's gateway -Another NT machine 1 (10.179.30.26) in the server... (2 Replies)
Discussion started by: skiturn
2 Replies

7. IP Networking

Unable to ping the gateway IP itself

We are unable to bring one of our linux boxes into the network once it was restarted. But once we stop and start the network service. We are able to ping the gateway and get into network. After a minute or two we get the following reponse for the ping command 64 bytes from 124.168.215.40:... (6 Replies)
Discussion started by: chrisanto_2000
6 Replies

8. UNIX for Dummies Questions & Answers

unable to ping

DEar all i am receiving this error on start and then unable to ping (dlpid): unable to open network adapter driver (/dev/mdi/e3h0) what to do ? (2 Replies)
Discussion started by: sak900354
2 Replies

9. UNIX for Dummies Questions & Answers

Unable to ping my Ip in sco Unix

how do i change and ip in sco unix. (10 Replies)
Discussion started by: pdoug76
10 Replies

10. UNIX for Dummies Questions & Answers

Unable to ping host

Hi, dear all, I am rather new to Unix and have this problem where I cant seem to ping from 1 host to another. The scenerio is as follows: - 1 QNX host->Eth->1 SCO host the SCO host is configured with it's IP the QNX host is configured with another IP both in the same domain, ie, 172.20.3.XX... (3 Replies)
Discussion started by: gavon
3 Replies
Login or Register to Ask a Question