Network management in HP UX


To display the network interface cards and status

  # lanscan 

 Hardware Station        Crd  Hdw   Net-Interface    NM   MAC       HP-DLPI DLPI  Path     Address        In#  State NamePPA          ID   Type      Support Mjr

#   0/0/0/0  0x00306E1CC281 0    UP    lan0 snap0       1    ETHER       Yes   119  1/12/0/0 0x00306E210F32 3    UP    lan3 snap3       2    ETHER       Yes   119

To configure the NIC cards such as speed, MTU, etc..

  # lanadmin (it is a interactive tool)

To find out the speed of duplex setting of lan0

  # lanadmin -x


To set the network card speed ,

  #lanadmin -X 100FD| HD


     -- here X - is capital letter. NMID number u can get in in lanscan out put.

To list all the configured interfaces and IP addresses

  # netstat -in

To force HP-UX to use specific interface card

  # traceroute -i lan2 10.20.30.40 

HP-UX stores network interface configuration information on /etc/rc.config.d/netconf file

  # cat /etc/rc.config.d/netconf  HOSTNAME="it-hp49"  OPERATING_SYSTEM=HP-UX  LOOPBACK_ADDRESS=127.0.0.1  INTERFACE_NAME[0]="lan0"  IP_ADDRESS[0]="216.131.195.137"  SUBNET_MASK[0]="0xffffff00"  BROADCAST_ADDRESS[0]="216.131.195.255"  INTERFACE_STATE[0]=""  DHCP_ENABLE[0]=0   ROUTE_DESTINATION[0]="default"  ROUTE_MASK[0]=""  ROUTE_GATEWAY[0]="216.131.195.10"  ROUTE_COUNT[0]="1"  ROUTE_ARGS[0]=""


To add a alias address to lan0, add the network information to /etc/rc.config.d/netconf file

  INTERFACE_NAME[0]=lan0:1  IP_ADDRESS[0]=216.131.195.138  SUBNET_MASK[0]=255.255.255.0  BROADCAST_ADDRESS[0]=""  INTERFACE_STATE[0]=""  DHCP_ENABLE[0]=0  INTERFACE_MODULES[0]=""

Restart the network service

  /sbin/init.d/net start

Network Tracing and Logging

  The nettl command is a tool used to capture network events or packets.

Initialize the tracing/logging facility:

  # nettl -start

Display the status of the tracing/logging facility.

  # nettl -status all

0 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks