HP-UX ifconfig question.


 
Thread Tools Search this Thread
Operating Systems HP-UX HP-UX ifconfig question.
# 1  
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)
# 2  
Old 04-12-2004
lanconfig configures link level stuff. It and lanadmin together are close to ndd on Solaris. ifconfig is very close between the two OS's. One gotcha: hp-ux has no ifconfig -a. Use netstat -in instead.

HP has many lan drivers and one is named btlan4.

A place to start is:
ioscan -fnClan
which will list your lan cards and tell you which drivers claimed them.
And:
swlist -l file LAN\*
will list the files that make up your installed lan products. Look for and read any documentation.
# 3  
Old 04-14-2004
Running the ioscan I see btlan4 claimed them both. If I bring the second interface up with an IP and hostname, will I need another hostname.btlan4 entry under /etc?
# 4  
Old 04-14-2004
I have never used btlan4 and I'm not familiar with that file.
# 5  
Old 04-16-2004
I just found an old hp box with btlan4 in operation! I had a rough time finding the files, this driver didn't have "LAN" in it's product name. I got the files with:
swlist -l file 100BT-GSC\*
which isn't exactly obvious.

There is no hostname.btlan4 there and we don't that file on our box. This would imply that someone may have customized your setup.

Had you followed HP's standard, you would need to modify two files both in /etc/rc.config.d The first is netconf which is where you set the ip address, netmask, and other general IP stuff. And there is hpgsc100conf which is where you set any btlan4 specific parameters.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question