Network configuration in Solaris 8

Hi. I have installed Solaris 8 and I am trying to configure the network settings. For some reason every time I reboot, my card loses its configuration. I can run ifconfig and the only IP address bound to my card (on either interface) is 127.0.0.1. I can change that to a valid IP address on my network and connect to the network, but I cannot access anything outside. I do not know where to tll UNIX my gateway IP address. I guess this is really two questions. Thanks in advance for any help.

The network information is all stored in text files in the /etc directory. The installer should have prompted you for this information during the install and written all this information to disk.

/etc/defaultrouter contains the IP (or hostname if it's in the hosts file) of the gateway

/etc/hosts contains the IP and hostname of hosts known to the computer including the hosts own IP

/etc/nodename contains the hostname

/etc/resolv.conf contains DNS info in the format of:
nameserver {DNS_server_IP}

If this gets you on the Internet but you are unable to resolve hostnames (DNS), you need to edit the /etc/nsswitch.conf file and add dns into the hosts line.

There should be man pages on these filenames defining the exact format. Information plugged into the system with ifconfig is only temporary and is flushed when you reboot.

[Edited by 98_1LE on 02-02-2001 at 09:32 AM]

Hi there,
you must do the above mentioned things, of course, but there may be another mistake you made, if i really understood your problem:
The 127.0.0.1 is the loopback address, and as far as i know, you must not delete this adress, but leave it in your /etc/hosts as localhost.
(again: as far as i know....)

felida

The loopback interface is different than a hardware interface. Loopback is internal to the kernel and never sees an external device. For example, an ifconfig output:

Note that the loopback interface is not the same as the ethernet interfaces.

We may be having the same issue.....more details...
I'm attmpting to attach this box through a cable modem receiving DHCP addresses. The ifconfig command only returns a single interface lo0, with the loopback line mentioned above. Using webstart3.0 doesn't get networking done properly. I'm assuming that since I can only resolve the loopback interface that I need to initialize the ethernet card via a command line? I'm also not sure I've been able to resolve the MAC address correctly, is there a command line query for the MAC address?

Sun Docs are no help at all so far.

Thanks in advance

Try this thread for some discussions on arp, loopback, and virtual interfaces:

http://forums.unix.com/showthread.php?threadid=352

Well...it looks like i'm halfway there....here's what I learned (trial and error)

The lo0: interface (loopback) cannot be configured to DHCP, it must be a default system setting. However, by creating a file hostname.hme0 in the /etc directory (just a blank datafile) I was able to get the ifconfig command to initialize a useable interface. The following command got me a pingable connection out

ifconfig hme0 dhcp

thats the halfway part....I can ping numerical addresses 225.225.225.000 etc., but cannot resolve names such a http://www.sun.com......any suggestions?

thanks

[Edited by frustrated on 02-09-2001 at 05:40 PM]

What does your /etc/resolv.conf file look like (or does it exist). This is where you plug your DNS servers in for name resolution.

Can you elaborte on this a bit more.

In one of my Solaris books it mentions this file but it doesn't say too much else about it.

In looking at this file on my system (/etc/hostname.hme0) all I see is the hostname of my system, which is froggie11. I don't see an IP address or any other information.

Where is the IP address, subnet mask and other information stored, is it stored in any file?