Sponsored Content
Full Discussion: HP-UX ifconfig question.
Operating Systems HP-UX HP-UX ifconfig question. Post 49857 by viRaven on Monday 12th of April 2004 01:51:57 PM
Old 04-12-2004
HP-UX ifconfig question.

This will most likely be a real dumb question for a HP-UX admin, but here it goes anyhow.

lan0 - is up and configured
lan1 - is down, I want to bring it up.

lanconfig....ifconfig is there a difference?

My real question is, in solaris there is an /etc/hostname."?" file, is there a corresponding file in HP-UX. I see one, for the existing NIC but the naming convention seems strange to me.

I.E. HP-UX: /etc/hostname.btlan4
lanscan shows no lan4, rather a lan0 and 1.

If someone could point me to the documentation or give me a quick reply it'd be much appreciated.

HP-UX 10.20 (Yah she's old)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Further question on 'ifconfig' output

I asked a similar question earlier and got a very good answer but a new doubt came up. This is a few lines of a '/sbin/ifconfig' command on my PC: RX packets:3781025 errors:0 dropped:0 overruns:0 frame:0 TX packets:1941909 errors:0 dropped:0 overruns:0 carrier:0 Does the RX and TX packets... (1 Reply)
Discussion started by: mint1981
1 Replies

2. UNIX for Dummies Questions & Answers

Why do I have to cd into /sbin to get to ifconfig?

I have to cd into /sbin in order to use ifconfig to check out my network cards. This has only started to happen since I downloaded the last update from RedHat(The machine runs RedHat 8.0). Does anyone know what happened? More importantly, are there any sources that can help me with this... (3 Replies)
Discussion started by: Jody
3 Replies

3. UNIX for Dummies Questions & Answers

Newbie ifconfig question

SunOS Release 5.7. Original ifconfig -a output: pnt0: flags=863<UP, BROADCAST,NOTRAILERS........ inet 10.2.34.49 netmask fffffe00 broadcast 10.2.34.255 ... Attempted to change ip address for pnt0. Typed the following command and forgot the "netmask" "ifconfig pnt0 10.2.35.49... (1 Reply)
Discussion started by: forbin24
1 Replies

4. UNIX for Dummies Questions & Answers

ifconfig

I am trying to change an IP address on a machine running HPUX10 After I change it I can ping it from the outside but it completely locks the console. After a reboot it returns back to its previous IP. Any ideas?? Thanks Brian (7 Replies)
Discussion started by: breigner
7 Replies

5. OS X (Apple)

ifconfig

Hi, I type (as root) "ifconfig en1 ether aa:aa: " but it doesnt change the mac of my airport. Can anyone help me? Thx. (0 Replies)
Discussion started by: Jariya
0 Replies

6. Solaris

Solaris 10 question on ifconfig

On prior versions to solaris 10 when I want to add/change the IP address of an interface I will use this command. ifconfig eri0 down ifconfig eri0 192.xxx.xxx.xxx netmask 255.xxx.xxx.xxx up then change /etc/hosts so that /etc/hostname.eri0 picks up on the correct IP. I strange thing... (2 Replies)
Discussion started by: sparcguy
2 Replies

7. Shell Programming and Scripting

ifconfig!!!!

why the ifconfig command is not working in my machine? it says "-bash: ifconfig: command not found" why its says that? actually i m looking for "how can I know the Network Interface Card physical address?" Requesting u all for help. thanks (3 Replies)
Discussion started by: moco
3 Replies

8. UNIX for Dummies Questions & Answers

ifconfig and ipconfig

hey, I know that ifconfig on linux systems is identical to win ipconfig. I wanted to know if there is a linux distribution (new or old) that uses the ipconfig command. thanks alot :) (2 Replies)
Discussion started by: tsmotix
2 Replies

9. IP Networking

ifconfig problem

Hi all, I am getting some error messages during bootup ifconfig :<hostname> bad address and some more messages related to it. I some how checked the /etc/hostanem.hme0 /etc/hosts file. Entries in these files were proper. If I am running the following command from root: ... (5 Replies)
Discussion started by: amit_sapre
5 Replies

10. Shell Programming and Scripting

awk question - getting ip from ifconfig

Hi there, I have a script which loops through the physical interfaces of a box and populates a variable called $NIC with the interface name so if for example $NIC is equal to "e1000g0", I am trying to figure out some awk that will get the IP for that interface from ifconfig output lo0:... (9 Replies)
Discussion started by: rethink
9 Replies
hostname(1)						      General Commands Manual						       hostname(1)

NAME
hostname - set or display name of current host system SYNOPSIS
[name_of_host] DESCRIPTION
The command displays the name of the current host, as given in the system call (see gethostname(2)). Users who have appropriate privileges can set the hostname by giving the argument name_of_host; this is usually done in the startup script The name_of_host argument is restricted to characters as defined in The system might be known by other names if networking products are supported. See the node manager documentation supplied with your sys- tem. WARNINGS
If the name_of_host argument is specified, the resulting host name change lasts only until the system is rebooted. To change the host name permanently, run the special initialization script (see Many types of networking services are supported on HP-UX, each of which uses a separately assigned system name and naming convention. To ensure predictable system behavior, it is essential that system names (also called host names or node names) be assigned in such a manner that they do not create conflicts when the various networking facilities interact with each other. The system does not rely on a single system name in a specific location, partly because different services use dissimilar name formats as explained below. The and commands assign system names as follows: +--------------+---------------+----------------+---------------------------+ |Node Name | Command | name Format | Used By | +--------------+---------------+----------------+---------------------------+ |Internet name | hostname name | sys[.x.y.z...] | ARPA and NFS Services | |UUCP name | uname -S name | sys | uucp and related programs | +--------------+--------------+---------------+-----------------------+--|Node-+-Name-------|Command-------+ |name Format |Used By | +--------------+--------------+---------------+-----------------------+ |Internet name |hostname name |sys[.x.y.z...] |ARPA and NFS Ser- vices | |UUCP name |uname -S name |sys |uucp, related programs | +--------------+--------------+---------------+-------- --------------+ where sys represents the assigned system name. It is recommended that sys be identical for all commands and locations and that the optional follow the specified notation for the particular ARPA/NFS environment. Internet names are also frequently called host names or domain names (which are different from NFS domain names). Refer to hostname(5) for more information about Internet naming conventions. Whenever the system name is changed in any file or by the use of any of the above commands, it should also be changed in all other loca- tions as well. Other files or commands in addition to those above (such as if used to circumvent for example) may contain or alter system names. To ensure correct operation, they should also use the same system name. System names are normally assigned by the script at start-up, and should not be altered elsewhere. Setting a hostname of more than 64 bytes is possible only with the appropriate configuration options enabled. It is strongly recommended that all related documentation be completely understood before setting a larger hostname. A hostname larger than 64 bytes can cause anoma- lous or incorrect behavior in applications which use the command or the system function to access the name. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
uname(1), gethostname(2), sethostname(2), uname(2), hostname(5), nodehostnamesize(5). hostname(1)
All times are GMT -4. The time now is 04:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy