Ping problem???


 
Thread Tools Search this Thread
Operating Systems Solaris Ping problem???
# 1  
Old 09-05-2011
Ping problem???

Hi friends,
I am running Solaris 10, which is connected to a DSL router running DHCP. During the installation I chose not to use DHCP and assigned a permanent IP address to solaris machine. I also did not choose any name service as well. The rest of the details are as under.
Solaris Machine
IP Address: 192.168.1.10
Mask: 255.255.255.0
DSL Router
IP Address: 192.168.1.1


the dhcpagent file reads as

Code:
 
$ cat /etc/default/dhcpagent
#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident  "@(#)dhcpagent.dfl      1.11    07/01/29 SMI"
#
#
# This file contains tunable parameters for dhcpagent(1M).
#
# All parameters can be tuned for a specific interface by prepending
# the interface name to the parameter name.  For example, to make
# RELEASE_ON_SIGTERM happen on all interfaces except hme0, specify:
#
# hme0.RELEASE_ON_SIGTERM=no
# RELEASE_ON_SIGTERM=yes
#
# An interface name alone specifies IPv4 DHCP.  For DHCPv6, append ".v6".
# Some examples:
#
# hme0.RELEASE_ON_SIGTERM=no    specify hme0 v4 behavior
# hme0.v6.RELEASE_ON_SIGTERM=no specify hme0 v6 behavior
# RELEASE_ON_SIGTERM=no         match all v4 interfaces
# .v6.RELEASE_ON_SIGTERM=no     match all v6 interfaces
# By default, when the DHCP agent is sent a SIGTERM (typically when
# the system is shut down), all managed addresses are dropped rather
# than released.  Dropping an address does not notify the DHCP server
# that the address is no longer in use, leaving it possibly available
# for subsequent use by the same client.  If DHCP is later restarted
# on the interface, the client will ask the server if it can continue
# to use the address.  If the server either grants the request, or
# does not answer (and the lease has not yet expired), then the client
# will use the original address.
#
# By uncommenting the following parameter-value pairs, all managed
# interfaces are released on SIGTERM instead.  In that case, the DHCP
# server is notified that the address is available for use.  Further,
# if DHCP is later restarted on the interface, the client will not
# request its previous address from the server, nor will it attempt to
# reuse the previous lease.  This behavior is often preferred for
# roaming systems.
#
# RELEASE_ON_SIGTERM=yes
# .v6.RELEASE_ON_SIGTERM=yes
# By default, the DHCP agent waits 3 seconds to collect OFFER
# responses to a DISCOVER.  If it receives no OFFERs in this time, it
# then waits for another 3 seconds, and so forth.  To change this
# behavior, set and uncomment the following parameter-value pair.
# Note: this does not control the retransmission strategy for
# DISCOVERs, which is formally specified in RFC 2131.  This parameter
# is specified in seconds.
#
# OFFER_WAIT=
# By default, the DHCP agent does not send out a client identifier
# (and hence, the chaddr field is used by the DHCP server as the
# client identifier.)  To make the DHCP agent send a client
# identifier, set and uncomment the following parameter-value pair.
# Note that by default this is treated as an NVT ASCII string.  To
# specify a binary value, prepend "0x" to a sequence of hexadecimal
# digits (for example, the value 0xAABBCC11 would set the client
# identifier to the 4-byte binary sequence 0xAA 0xBB 0xCC 0x11).
#
# CLIENT_ID=
# By default, the DHCP agent will try to request the hostname currently
# associated with the interface performing DHCP.  If this option is
# enabled, the agent will attempt to find a host name in /etc/hostname.<if>,
# which must contain a line of the form
#
#       inet name
#
# where "name" is a single RFC 1101-compliant token.  If found, the token
# will be used to request that host name from the DHCP server.  To prevent
# this, uncomment the following line.
#
# REQUEST_HOSTNAME=no
# By default, a parameter request list requesting a subnet mask (1),
# router (3), DNS server (6), hostname (12), DNS domain (15), broadcast
# address (28), and encapsulated vendor options (43), is sent to the DHCP
# server when the DHCP agent sends requests.  However, if desired, this
# can be changed by altering the following parameter-value pair.  The
# numbers correspond to the values defined in the IANA bootp-dhcp-parameters
# registry at the time of this writing.
#
PARAM_REQUEST_LIST=1,3,6,12,15,28,43
# The default DHCPv6 parameter request list has preference (7), unicast (12),
# DNS addresses (23), DNS search list (24), NIS addresses (27), and
# NIS domain (29).  This may be changed by altering the following parameter-
# value pair.  The numbers correspond to the values defined in the IANA
# dhcpv6-parameters registry at the time of this writing.
.v6.PARAM_REQUEST_LIST=7,12,23,24,27,29

the hosts file reads as

Code:
$ cat /etc/hosts
#
# Internet host table
#
::1     localhost
127.0.0.1       localhost
192.168.1.10    virtual-solaris virtual-solaris.home.com loghost

When I try to ping the router or another computer, I see the following result.

Code:
# ping 192.168.1.1
192.168.1.1 is alive
# ping 192.168.1.2
192.168.1.2 is alive
# ping 192.168.1.10
192.168.1.10 is alive

I can ping the solaris machine from other computers, though!
What could be wrong, and how can I setup the default gateway???
# 2  
Old 09-05-2011
What is wring with the ping output? It says that those systems answered to your ping requests...
# 3  
Old 09-05-2011
Quote:
Originally Posted by bartus11
What is wring with the ping output? It says that those systems answered to your ping requests...
I am used to seeing messages which would say as
Code:
Reply from 192.168.1.1 TTL=252

something like this.
And I had seen such ping messages in my previous solaris installation, so what' wrong now? I cannot access the internet as well. For instance, on another windows computer
Code:
ftp ftp.freebsd.org

works fine, while the same under solaris doesn't, and it says
Code:
# ftp ftp.freebsd.org
ftp.freebsd.org: unknown host or invalid literal address


Last edited by gabam; 09-05-2011 at 12:09 PM..
# 4  
Old 09-05-2011
you have to configure your defaultgateway and name service... you'll find a ton of informations in this forum when you search for "solaris internet" or similar key words...
# 5  
Old 09-05-2011
enter

Code:
route add default  192.168.1.1

Why don't use DHCP ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

DNS problem : ping doesn't recognize hostname

I have vmware on my windows PC ( hostname : acer ). vmware has RHEL 7 ( hostname : rhel7 ) installed recently. RHEL IP configuration IP : 192.168.5.128 Netmask : 255.255.255.0 ssh to rhel7 works from acer using putty resolve.conf cat /etc/resolv.conf nameserver 192.168.5.1 host... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies

2. Shell Programming and Scripting

Ping - cut and sed - problem

How can I get the following result of the "ping" command? Example: root@OpenWrt:~# ping google.com -c1 | sed -n 1p PING google.com (216.58.210.14): 56 data bytes How can I get the data only in the range of ()? The result of what I want to get it: 216.58.210.14 Please use code... (4 Replies)
Discussion started by: andrewxxx
4 Replies

3. HP-UX

nslookup/ping resolve problem 11i v3

I am having a problem with a new server build that has got me completely baffled. This server has a private back end network so the way it is supposed to work is that the server thinks its ip address is 10.131.0.48 but the rest of the world knows it as 199.68.100.100 per DNS. It has to be this way... (2 Replies)
Discussion started by: keelba
2 Replies

4. AIX

Problem with 'ping' command

Hi All, I'm testing ping command on two servers. A,B,C,D are servers From A-->B: ping -c 3 -p ff -s30720 <B IP-Addres> This works fine. From C-->D: ping -c 3 -p ff -s30720 <D IP-Addres> This is NOT working and 100% packe loss :( But if I use 8700 instead of 30720 for packet size... (6 Replies)
Discussion started by: saraperu
6 Replies

5. Solaris

Ping Problem

Can someone tell me how I can get the following bolded output without having to issue the control C key when a ping is running? ping -s cca-wl6 PING cca-wl6: 56 data bytes 64 bytes from cca-wl6: icmp_seq=0. time=0.796 ms 64 bytes from cca-wl6: icmp_seq=1. time=0.581 ms 64 bytes from... (5 Replies)
Discussion started by: SkySmart
5 Replies

6. IP Networking

Ping Problem

Comp1=192.168.100.2 Comp2=192.168.100.6 both the comp have win2000 Os. Using Cross cable i have connected back to Back. When i ping From Comp1 to Comp2 its working fine. But When i ping From Comp2 to Comp1 its not working. I know don't know what went wrong please help me out.... (4 Replies)
Discussion started by: ashokmeti
4 Replies

7. UNIX for Dummies Questions & Answers

Problem to ping Linux server

I want to access window file system through Samba. when i ping Window machine through linux machine it connect, but in reverse case it shows "Request time out". could any one suggest what problem may be. (1 Reply)
Discussion started by: sonirajesh
1 Replies

8. UNIX for Dummies Questions & Answers

ping problem

I can ping by ip address but not by host name everything is on the same subnet check all of the normal files I can telnet in to the unix box but can not open a connect to the share dir. unix ver sunSO 5.9 all the other computers ar Windows XP (with firewall turn off) Thanks... (1 Reply)
Discussion started by: vviscomi
1 Replies

9. Shell Programming and Scripting

ping cronjob problem

Hi all, I'm trying to write a shell script that will ping a site and and write the date and 1 or 0 (for success or no success) to a file. it looks roughly like this: #/bin/sh set mydate = `date` set myvar = `ping -c 1 hostname | grep -c "100%"` if ($myvar == 1) then echo... (1 Reply)
Discussion started by: TylerDurden
1 Replies

10. Shell Programming and Scripting

Ping problem. system down!!

I wrote a script to test many systems to see if they are up or not. if a system is down, i am notified by email now, most of the time,when systems are down in my enviroment, it is because the user accidentally or purposely (not knowing the consequences) hit the power button. so these problems... (3 Replies)
Discussion started by: TRUEST
3 Replies
Login or Register to Ask a Question