0% found this document useful (0 votes)
12 views4 pages

Basic network commands _ HP-UX Tips & Tricks Site

Basic network commands _ HP-UX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Basic network commands _ HP-UX Tips & Tricks Site

Basic network commands _ HP-UX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

6/30/2015 Basic network commands | HP­UX Tips & Tricks Site

HP­UX Aix Linux Solaris Contact Links

HP­UX Tips & Tricks Site

Home

Basic network commands

Thu, 03/06/2008 ­ 13:54 — liquid

FILES

* /etc/hosts ­ Hosts configuration file (resolve hosts and IPs)


* /etc/rc.config.d/netconf – IP address, routeing address and hostname stored in this file

SCRIPTS

* /etc/init.d/net start – Use to start, stop network service

HPUX Commands
(a) Display lan interface info:
# lanscan

(b) All in one lan configuration utility (lan0 is first Ethernet interface) to configure and view the system IP address:
# ifconfig lan0 ­ Display IP info such as IP address netmask etc.
# ifconfig lan0 up ­ Up network interface (allow traffic)
# ifconfig lan0 down ­ Down network interactive (deny traffc)
# ifconfig lan0 192.168.1.1 netmask 255.255.255.0 up ­ Setup/change IP adddress

(c) Displaying host name


# hostname

(d) Arp administration (cache)


# arp ­a

(e) Display routing table/info:


# netstat ­nr

(f) Define new route:


# route add default 192.168.1.254 1

(g) HP’s LAN diagnostic tool


# lanadmin

(h) Test a remote host connectivity


ping host.mycorp.com

(i) Setup various lan properties, dns client, NIS client configuration etc using GUI tool:
# sam
# set_parms

(j) Check dns connectivity:


$ nslookup www.google.co.uk

On 11.31 there is a new command to manage you network interfaces,as jmrey points out:

Regarding lanscan, in 11.31 is deprecated. Use nwmgr instead. It is much more powerfull than lanscan and as you can see in

http://www.hpuxtips.es/?q=node/129 1/4
6/30/2015 Basic network commands | HP­UX Tips & Tricks Site
the example below, you can obtain a lot of more info about the network interfaces.

host# nwmgr

Name/ Interface Station Sub­ Interface Related


ClassInstance State Address system Type Interface
============== ========= ============== ======== ============== ========
lan2 UP 0x001E0B45E09A igelan 1000Base­SX
lan0 UP 0x001E0B45E09C igelan 1000Base­SX
lan1 UP 0x001E0B45E09D igelan 1000Base­SX
lan3 UP 0x001E0B45E09B igelan 1000Base­SX

host# nwmgr ­q info ­c lan0


lan0:
Interface State =UP
MAC Address = 0x001E0B45E09C
Subsystem = igelan
Interface Type = 1000Base­SX
Hardware Path = 0/1/1/0
NMID = 2
Feature Capabilities = Physical Interface
IPV4 Recv CKO
IPV4 Send CKO
VLAN Tag Offload
64Bit MIB Support
IPV4 TCP Segmentation Offload
UDP Multifrag CKO
Feature Settings = Physical Interface
VLAN Tag Offload
64Bit MIB Support
MTU = 1500
Speed = 1 Gbps Full Duplex (Autonegotiation : On)

lan0 PCI properties:


PCI Sub­System ID = 0x1701

lan0 driver properties:


Driver Version = B.11.31.0803
Driver State = IGELAN_ONLINE

Unix Systems:
hpux
stumbleupon evernote delicious

Add new comment

Comments

lanscan is deprecated in 11.31 Wed, 10/07/2009 ­ 15:26 — jmrey

Regarding lanscan, in 11.31 is deprecated. Use nwmgr instead. It is much more powerfull than lanscan and as you can see in
the example below, you can obtain a lot of more info about the network interfaces.

host# nwmgr

Name/ Interface Station Sub‐ Interface Related


ClassInstance State Address system Type Interface

http://www.hpuxtips.es/?q=node/129 2/4
6/30/2015 Basic network commands | HP­UX Tips & Tricks Site
============== ========= ============== ======== ============== ========
lan2 UP 0x001E0B45E09A igelan 1000Base‐SX
lan0 UP 0x001E0B45E09C igelan 1000Base‐SX
lan1 UP 0x001E0B45E09D igelan 1000Base‐SX
lan3 UP 0x001E0B45E09B igelan 1000Base‐SX

host# nwmgr ‐q info ‐c lan0


lan0:
Interface State =UP
MAC Address = 0x001E0B45E09C
Subsystem = igelan
Interface Type = 1000Base‐SX
Hardware Path = 0/1/1/0
NMID = 2
Feature Capabilities = Physical Interface
IPV4 Recv CKO
IPV4 Send CKO
VLAN Tag Offload
64Bit MIB Support
IPV4 TCP Segmentation Offload
UDP Multifrag CKO
Feature Settings = Physical Interface
VLAN Tag Offload
64Bit MIB Support
MTU = 1500
Speed = 1 Gbps Full Duplex (Autonegotiation : On)

lan0 PCI properties:


PCI Sub‐System ID = 0x1701

lan0 driver properties:


Driver Version = B.11.31.0803
Driver State = IGELAN_ONLINE

JMR

reply

Add new comment


Your name

Subject

Comment *

More information about text formats


Text format Filtered HTML

http://www.hpuxtips.es/?q=node/129 3/4
6/30/2015 Basic network commands | HP­UX Tips & Tricks Site
Web page addresses and e­mail addresses turn into links automatically.

Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>

Lines and paragraphs break automatically.

By submitting this form, you accept the Mollom privacy policy.

Preview

Dont try this at w0rk ;D

http://www.hpuxtips.es/?q=node/129 4/4

You might also like