Sun

solaris 10 bring up interface ?

Have a little V100 box running Solaris 10, it makes an okay light-duty server. Has two fast ethernet interfaces
Code:
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
dmfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.16.30.25 netmask ffffff00 broadcast 172.16.30.255
ether 0:3:ba:f8:9e:b9
dmfe1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
inet 172.16.30.26 netmask ffffff00 broadcast 172.16.30.255
ether 0:3:ba:f8:9e:ba

So far so good ... but the other day this foo unplugged the switch, both interfaces went down, the second one never came back up. This has happened before, dmfe1 is stubborn.

< ifconfig dmfe1 up > doesn't bring it up ...
Code:
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
dmfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.16.30.25 netmask ffffff00 broadcast 172.16.30.255
ether 0:3:ba:f8:9e:b9
dmfe1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
inet 172.16.30.26 netmask ffffff00 broadcast 172.16.30.255
ether 0:3:ba:f8:9e:ba

I know I can reboot but stubborn. Is there a simple way to force the second interface into a running state ?
Yes, of course. BTW I'm far from an expert on this stuff but I don't see any difference in your two printouts. Did I miss something?
The interfaces already have ip addresses assigned. What isn't working?

If you're using dhcp I think it's something like

Code:
dhclient dmfe1


But that doesn't seem like it's the problem because the interfaces have ip addresses.

_________________
Paint It Blue
bluecode wrote:
Yes, of course. If you're using dhcp ...

Static ip :(
Quote:
The interfaces already have ip addresses assigned. What isn't working?

See the RUNNING part missing from the second interface in the printout ? It's like a Cisco port that's administratively down. Everything is there but it doesn't work. Dead as a doornail.

Quote:
BTW I'm far from an expert on this stuff but I don't see any difference in your two printouts. Did I miss something?

That was the point :D I ifconfig dmfe1 upped it, no change. Also tried a few similar commands (plumb) with same result .... I'm not much of a Solaris prison either. Luckily, it usually doesn't give any trouble.
Haha I get it now. I saw the running or not, I meant between the two screenshots no difference. Ok. I'll get back to you in a few hours if nobody else does. I actually get along pretty well with Solaris. It's just that I can't keep all the different commands straight between the OS I have running over here. I'll have to bring up a box and try it. I'm not running all the machines I usually run because all my UPS batteries are now dead :evil:

_________________
Paint It Blue
bluecode wrote:
I'll get back to you in a few hours if nobody else does.

I gave up and hit < reboot -- -r > It came back up with both interfaces without touching a thing. Every hint I could find of that problem on the innertubes was about a bad cable or switch but pretty sure that's not the problem here, since a reboot fixed everything.

Strange.
Quote:
I actually get along pretty well with Solaris.

As long as you stick to the command line, it's pretty decent. Reliable as hell, that's for sure.
If this happens again try

ifconfig interface plumb up
ifconfig interface ipaddress

_________________
Paint It Blue
The other way is to check your configs, down the interfaces and do a "svcadm restart physical".

_________________
Stuff.
bluecode wrote:
If this happens again try

ifconfig interface plumb up
ifconfig interface ipaddress

This should work, it's supposed to, but I tried it several times in different ways and it does not. I wonder what is going on that both interfaces go down when the switch powers off (that part makes sense) but only one comes back up ? Yet the second one says everything is correct, except it is not RUNNING. :( And it's not the cable or switch because a full reboot resets everything with no other chages..

zmttoxics wrote:
The other way is to check your configs, down the interfaces and do a "svcadm restart physical".

Good idear. I will probly get another chance, that plug is too easy to disconnect by mistake ...
hamei wrote:
bluecode wrote:
If this happens again try

ifconfig interface plumb up
ifconfig interface ipaddress

This should work, it's supposed to, but I tried it several times in different ways and it does not. I wonder what is going on that both interfaces go down when the switch powers off (that part makes sense) but only one comes back up ? Yet the second one says everything is correct, except it is not RUNNING. :( And it's not the cable or switch because a full reboot resets everything with no other chages..


The only time I have seen NICs go away like that is on Winblows multiboots since Winbloze often disables NICs for power saving and then the other OS can't use it. Thankfully this can't be the case because there is no SPARC Winbloze AFAIK :lol:

Is this a NIC you installed or is it original equipment? It sounds like something is definitely wrong if only a reboot brings it back up(indicating needing a POR?)

_________________
Paint It Blue
to make an interface persistent in solaris do the following:

Code:
#dladm show-link
#ifconfig interface plumb up
#ifconfig interface IPv4-address netmask+netmask
#vi /etc/hostname.interface
IPv4-address netmask+netmask
eg:
192.168.84.3 netmask 255.255.255.0
For Solaris 10 11/06 and earlier releases of Oracle Solaris 10, add entries for the new interfaces into the /etc/inet/ipnodes file.
Add entries for the new interfaces into the /etc/inet/hosts file.
reboot -- -r

_________________
no plan
yetanother**ixuser wrote:
to make an interface persistent in solaris do the following

Thank, other. That's all correct, the interface is persistent, hardware-wise it's part of the mainboard (V100's don't have pci sockets : in fact they don't have any kind of peripherals). The first time it did this I immediately thought, "Oh shit, hardware failure" but when you reboot, both ports come back up fine. It's just that none of the ifconfig commands put dmfe1 into a running mode.

I'll try toxic's method next time and see what happens.