I set myself up a Solaris 11.1 server for educational purposes. Everything was going fine, then one day it dropped off the network. I hadn't done anything configuration wise that could justify this.
So I started looking around the net for answers, and have not been able to find resolution. Any help would be greatly appreciated.
All I want is for it to be on DHCP, no need for a static IP. Though during my testing I did try assigning it a static IP, and that also didnt work.
I dont believe the router to be the issue, as all other devices connecting to it appear to be running fine - but then again, all those devices are over WiFi and the Solaris box is Ethernet. The only thing I havent ruled out completely is maybe the ethernet ports are all stuffed, or the ethernet port on the Solaris box is stuffed.
So I've tried and retried a whole host of things... here is some output
root@solaris:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask ff000000
net0:1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask ff000000
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
net0: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 3
root@solaris:~# netadm list
TYPE PROFILE STATE
ncp Automatic online
ncu:phys net0 online
ncu:ip net0 online
ncp DefaultFixed disabled
loc DefaultFixed offline
loc Automatic online
loc NoNet offline
root@solaris:~# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full rge0
vboxnet0 Ethernet up 1000 full vboxnet0
root@solaris:~# dladm show-link
LINK CLASS MTU STATE OVER
net0 phys 1500 up --
vboxnet0 phys 1500 up --
root@solaris:~# route flush
root@solaris:~# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
127.0.0.1 127.0.0.1 UH 20 2358 lo0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
::1 ::1 UH 2 8 lo0
root@solaris:~# route -p add default 192.168.1.254
add net default: gateway 192.168.1.254: Network is unreachable
Just as a note with the routes, at some point during my testing, adding that route above did in fact work and I could see it in the routing table. It didnt make a difference, but it was there. Now it isnt working...
root@solaris:~# ipadm create-addr -T dhcp net0
ipadm: warning: : Communication with dhcpagent timed out
Now interestingly, while it is trying to do this above command (takes a few mins to timeout), the following comes up in my syslog for the router... It repeats over and over again. It looks like it is trying to give my Solaris machine an IP but then it wont take it. Also looking at my DHCP table in the router it will state the IP address/host and then say Expired under the lease.
Feb 06 17:49:15 daemon DHCP SERVER: DHCPDISCOVER from bc:5f:f4:95:ce:b8 via br0
Feb 06 17:49:16 daemon DHCP SERVER: DHCP offer to bc:5f:f4:95:ce:b8
This is really frustrating me at the moment and I would appreciate all the help I can get.
netstat -D will show the status of the DHCP client on Solaris, which might provide some clue. There are debugging options to the dhcpagent process as well if you check out its man page. It's possible that rge, is one of the devices that I seem to recall being a little flaky and you might need to unload/reload it; rebooting would be the most straightforward way but you can also try disabling the network/physical:default service and then using modunload to unload the rge driver. I forget whether you need to do a subsequent modload before enabling network/physical:default again.
I'm no networking expert, but its sounds like your DHCP lease expired. Solaris 11 uses ISC DHCP so I would google for some examples of
creating a static IP for ISC DHCP. When I was testing Auto Install for this example, I tested this but my memory has already faded:
I hope someone more knowledgeable will help.
Thanks for the reply Dave.
root@solaris:~# netstat -D
Interface State Sent Recv Declined Flags
net0 SELECTING 1111 0 0
I also tried taking down the network/physical:default, modunload rge and then modload rge. The modload rge seemed to hang. I restarted my box and saw that rge was loaded (on reboot I assume), so then I started up the network/physical:default svc. This didnt seem to do the trick either.
This is really starting to do my head in.
I'm tempted to go buy a super cheap router to test against, just to eliminate my router being the issue
So things are working... but not in any way as expected...
So I was in the same state as before, things not working. I got annoyed and drove to my local PC shop and bought a TPLink network card (which to be honest I had no idea if it would even have drivers). I shut down my PC (for about the 10th time today), unplugged everything, and installed the network card.
I then plugged everything back in and even plugged the ethernet cable into the originally port... I didnt even plug it into the new port I installed.
I start up Solaris... and BANG I'm on the network with DHCP.
This makes no sense to me, but I am now at least a little more relaxed and can investigate what happened or... next time I have network issues, just buy a new NIC and not even use it