LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-11-2011, 05:12 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
Can't ping after setting IP address in OpenSolaris


I'm trying to setup an OpenSolaris 2009 VM I've managed to assign an IP address and ifconfig -a includes the following line:

inet 192.98.215.80 --> 255.255.255.0 netmask ffffff00

but I'm unable to ping in or out. I'm new to OpenSolaris and don't understand what else I'd need to do just to be able to ping it?
 
Old 10-11-2011, 05:39 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
What VM are you using? VirtualBox doesn't allow pinging if you have set up the network adapter as NAT.

jlinkels
 
Old 10-11-2011, 05:42 AM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
I'm using Hyper-V, the virtual network config looks fine and is working OK on other VMs so I'm thinking it's an Open Solaris problem. I keep getting 'ICMP host unreachable from gateway 192.98.215.80' when trying to ping out.

Edit: After doing this it output the following to the command line:

opensolaris in.routed[537]: route 255.255.255.0 --> 192.98.215.80 nexthop is not directly connected

What does this mean? I'm not sure if it's relevant but /etc/resolv.conf has been populated with the correct IP addresses for our DNS servers automatically.

Last edited by Mark_667; 10-11-2011 at 08:00 AM.
 
Old 10-11-2011, 08:29 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Now I am just a poor Linux guy and don't know if Solaris has the same ideas about networking but let me try.

What host are you trying to ping? Is it in the 192.98.215.nnn range? It should be because your subnet is 255.255.255.0

What does the route -n command show (if that exists?) You should see at least:
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.98.215.80     0.0.0.0         255.255.255.0   U     1      0        0 eth0
0.0.0.0           192.98.215.xxx  0.0.0.0         UG    0      0        0 eth0
The red IP address should be an address in this range. Is it?

jlinkesl
 
Old 10-11-2011, 09:16 AM   #5
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
#netstat -rn gave:
Code:
Routing Table: IPv4
	Destination	Gateway		Flags	Ref	Use	Interface
255.255.255.0		192.98.215.80	UH	1	0	dnet0
127.0.0.1		127.0.0.1	UH	1	66	lo0
The address I'm trying to ping is on the same subnet, I'm just trying to get basic network connectivity working here. Does the above output mean anything to anyone?
 
Old 10-11-2011, 10:07 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Please post the output of:
Code:
ifconfig -a
traceroute target_IP
dladm show-link
dladm show-ether

Last edited by jlliagre; 10-11-2011 at 10:08 AM.
 
Old 10-11-2011, 11:17 AM   #7
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
Code:
ifconfig -a
traceroute target_IP
dladm show-link
dladm show-ether

#ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index
 1
 		inet 127.0.0.1 netmask ff000000
 dnet0: flags=1000851<UP,POINTTOPOINT,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
 	inet 192.98.215.80 --> 255.255.255.0 netmask ffffff00
 	ether 0:15:5d:c8:482a
 
 <more loop back stuff here>
 
 traceroute <target_IP>
 traceroute to <target_IP> (<target_IP>), 30 hops max, 40 byte packets
  1 192.98.215.80 (192.98.215.80) 1.376 ms !H 0.419 ms !H 0.315 ms !H
#

#dlam show-link
bash: dlam: command not found
#
 
Old 10-11-2011, 12:15 PM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
See? jlliagre knows Solaris, while I don't

But he asked for the output of dladm and you have a typo in that command (writing dlam instead of dladm)

jlinkels
 
Old 10-11-2011, 03:38 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Indeed

In any case, the dnet0 interface is configured in POINTTOPOINT mode which is the reason why you can't ping or do anything useful with it.

This should temporarily fix the issue:

Code:
ifconfig dnet0 unplumb
ifconfig dnet0 plumb
ifconfig dnet0 192.98.215.80 netmask 255.255.255.0 broadcast 192.98.215.255 up
For a permanent one, have a look at /etc/hostname.dnet0
 
  


Reply



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
can't ping domain name, but can ping ip address dtra Linux - Networking 4 04-03-2013 05:02 PM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
[SOLVED] ping www.google.co.in gives unknown host error ,ping to LAN address works fine aspiring_stellar Linux - Newbie 10 05-24-2011 03:26 PM
can't ping local IP address but can ping remote hosts rob_xx17 Linux - Networking 4 12-02-2006 08:39 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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