Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Network configuration in Solaris 8 Post 1008 by 98_1LE on Friday 2nd of February 2001 09:24:03 AM
Old 02-02-2001
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]
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

problem with Solaris in Network configuration

WEe have installed Intel version of Solaris 8 in a machine .we skipped the network configuration at the begning.we selected unnetworked.Now we need to connect the same machine to a network. We configured the Card using ifconfig but its taking the ip address itself as the Default G/W. I need help... (4 Replies)
Discussion started by: premkumar
4 Replies

2. HP-UX

HP-UX Network Configuration

Hi, I have installed a HP-UX B.11.00 U 9000/800 Server in one of the domain. And I'm also able to telnet/ping into this server from systems in the same domain. But I'm not able to telnet/ping into this server from a different domain. So, what shoud need to do to achieve this... (6 Replies)
Discussion started by: S.Vishwanath
6 Replies

3. IP Networking

network configuration files

I have solaris 2.8 on an ultra 1 and just configured the following files: defautrouter resolv.conf nsswitch.conf netmasks hosts but when I reboot, my NIC still is not configured. Which file do I need to configure to keep the NIC configured after reboot? (3 Replies)
Discussion started by: DarkLord
3 Replies

4. Solaris

network configuration

hi again... i configured my network settings sometiime ago using the sys-unconfig command.the active link was rtls0. there was some problem with the network so i changed the ISP. now when im trying to reconfigure the system wit sys-unconfig, it tries to configure the network on rtls1 (and shows... (1 Reply)
Discussion started by: strider
1 Replies

5. Solaris

Solaris 10 network configuration problem with zone

I am seeking help from the gurus in this forum and hope that I can find answers soon. Anyone who provide the answers will be greatly appreciated. I have a sparc box with Solaris 10 on it. We install Solaris with zone structure. One global zone and two other zone. I installed Oracle DB on global... (6 Replies)
Discussion started by: duke0001
6 Replies

6. SCO

Network Configuration

I have a SCO 5.07 Server and I am trying to get it on my network. I have edited the /etc/hosts file and /etc/rc2.d/s99route . I has connectivity on the NIC card but not sure if I am forgetting another file. Thanks! (2 Replies)
Discussion started by: andrewd
2 Replies

7. UNIX for Dummies Questions & Answers

network configuration

I am using solaris 10, my internet works alright but each time i reboot i keep loosing my connection. I will have to use the ifconfig iprb0 192.168.1.xx netmask 255.255.255.0 up and Route add default 192.168.1.xxx command to gain back my internet. I know there is a better way of addressing... (1 Reply)
Discussion started by: seyiisq
1 Replies

8. Solaris

Network configuration

Hi I have installed Solaris 5.10 on Intel x86 machine (standalone). I want to access internet through solaris. How should I configure the network? Is static IP or DHCP advisable? (5 Replies)
Discussion started by: johnl
5 Replies

9. Solaris

Solaris Network Configuration

Hi How do I configure a network card in Solaris 10? using the command ifconfig, and also please advise me for persisting this ip address what are the files newly created and modify. I am a new baby in solaris:) (4 Replies)
Discussion started by: vipinmurali
4 Replies

10. Solaris

Network interface configuration - Solaris 11

Hi, I am new in Solaris 11. I can't even make the NIC work. Here is the issue: Any help will be greatly appreciated. (6 Replies)
Discussion started by: aixlover
6 Replies
HOSTS(5)						      BSD File Formats Manual							  HOSTS(5)

NAME
hosts -- host name data base DESCRIPTION
The hosts file contains information regarding the known hosts on the network. It can be used in conjunction with the DNS, and the NIS maps 'hosts.byaddr', and 'hosts.byname', as controlled by nsswitch.conf(5). For each host a single line should be present with the following information: address hostname [alias ...] These are: address Internet address hostname Official host name alias Alias host name Items are separated by any number of blanks and/or tab characters. A hash sign (``#'') indicates the beginning of a comment; characters up to the end of the line are not interpreted by routines which search the file. When using the name server named(8), or ypserv(8), this file provides a backup when the name server is not running. For the name server, it is suggested that only a few addresses be included in this file. These include address for the local interfaces that ifconfig(8) needs at boot time and a few machines on the local network. This file may be created from the official host data base maintained at the Network Information Control Center (NIC), though local changes may be required to bring it up to date regarding unofficial aliases and/or unknown hosts. As the data base maintained at NIC is incomplete, use of the name server is recommended for sites on the DARPA Internet. As network addresses, both IPv4 and IPv6 addresses are allowed. IPv4 addresses are specified in the conventional dot (``.'') notation using the inet_pton(3) routine from the Internet address manipulation library, inet(3). IPv6 addresses are specified in the standard hex-and-colon notation. Host names may contain any printable character other than a field delimiter, newline, or comment character. FILES
/etc/hosts The hosts file resides in /etc. SEE ALSO
gethostbyname(3), nsswitch.conf(5), ifconfig(8), named(8) Name Server Operations Guide for BIND. HISTORY
The hosts file format appeared in 4.2BSD. BSD
November 17, 2000 BSD
All times are GMT -4. The time now is 11:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy