08-15-2007
You certainly can.
First do "ifconfig -a" to see what ethernet cards you have.
Then create a /etc/hostname.ifname where ifname is the name of the interface. for example
/etc/hostname.le0
/etc/hostname.hme0
or whatever.
Put in that file the hostname of the machine, and then put an entry in the /etc/hosts file. Do a reboot and it should configure the ethernet card.
There is more you can do to set up the netmask, nodename and /etc/resolve.conf, do a search of this site for details.
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
My knowledge bucket of UNIX is almost empty. I have developed an application in EXCEL which can create XML files (Metadata) from Binaries.
These binaries are stored in UNIX server on regular intervals. Currently I am transferring all binaries(GBs of files) to WINDOWS using WINSCP and... (2 Replies)
Discussion started by: bobs
2 Replies
2. Solaris
Hi,
I have Solaris 10 8/07 on SPARC and I can't log in Web console. When I opened browser (Firefox 3) at localhost:6789 I get Save file dialog which asks me to save some file with .part at the end. What information should I provide to find out where is the trouble?..
Internet explorer says... (3 Replies)
Discussion started by: Sapfeer
3 Replies
3. Shell Programming and Scripting
Hi,
Can someone help me on how to ftp to UNIX server from an another UNIX Server.
I tried the follwoing but it is not working.
ftp -n 10.10.0.1
quote user usrname
quote pass passwd
ls
Though ftp is starting it is not allowing me run command.....
it is asking to
Thanks in... (5 Replies)
Discussion started by: EmbedUX
5 Replies
4. Shell Programming and Scripting
Hi,
One of the folders in UNIX is mapped with a drive on Windows.From this UNIX machine I want to connect to the Windows Server, perform some checks and view the results back on the UNIX machine.
For e.g. if I touch a file under the shared folder on UNIX, I should be able to telnet to Windows... (2 Replies)
Discussion started by: swasid
2 Replies
5. Hardware
Hello.
I have a sun v245 and I have no hard drive for it yet but i would like to connect it to my home router by ethernet cable so I can use Alom remotely. Could someone please tell me how to set it up.
Thank You (1 Reply)
Discussion started by: SunV245
1 Replies
LEARN ABOUT OPENSOLARIS
nodename
nodename(4) File Formats nodename(4)
NAME
nodename - local source for system name
SYNOPSIS
/etc/nodename
DESCRIPTION
When a machine is standalone or its IP address is configured locally, the /etc/nodename file contains the system name. By convention, the
system name is the same as the hostname associated with the IP address of the primary network interface, for example, hostname.hme0.
If the machine's network configuration is delivered by the RPC bootparams protocol, the /etc/nodename file is not used, as the system name
is delivered by the remote service.
Given a system name value, regardless of source, the uname utility invoked with the -S option is used to set the system name of the running
system.
If the machine's network configuration is delivered by the DHCP protocol, the /etc/nodename file is used only if the DHCP server does not
provide a value for the Hostname option (DHCP standard option code 12).
A system name configured in /etc/nodename should be unique within the system's name service domain in order to ensure that any network ser-
vices provided by the system will operate correctly.
Given a system name value, regardless of source, the uname utility invoked with the -S option is used to set the system name of the running
system.
EXAMPLES
Example 1 Syntax
The syntax for nodename consists of a single line containing the system's name. For example, for a system named myhost:
myhost
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
NIS+(1), uname(1), named(1M), ypbind(1M), attributes(5)
NOTES
The nodename file is modified by Solaris installation and de-installation scripts.
SunOS 5.11 9 Feb 2004 nodename(4)