HP-UX 네트웍 관리

2011.03.08 19:57

조인상 조회 수:36511

원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

원문 : http://www.ischo.net -- 조인상 //시스템 엔지니어

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

[ IP 설정 ]

/etc/rc.config.d/netconf  파일 수정

 

INTERFACE_NAME[1]="lan1"
IP_ADDRESS[1]="192.168.1.30"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

 

 

DEFAULT_INTERFACE_MODULES=""
ROUTE_DESTINATION[0]="default"
ROUTE_GATEWAY[0]=192.168.1.1
ROUTE_COUNT[0]=1
ROUTE_MASK[0]=
ROUTE_ARGS[0]=

 

 

[ NIC 속도 및 mode 설정 ]

/etc/rc.config.d/hpbtlanconf 파일 수정

 

#####################################################################
# @(#)B.11.31_LR hpbtlanconf $Revision: i80/3  2002/09/10  10:05:45
# hpbase100conf: contains configuration values for HP PCI/HSC 100BASE-T
# interfaces
#
# HP_BTLAN_INTERFACE_NAME   Name of interface (lan0, lan1...)
# HP_BTLAN_STATION_ADDRESS  Station address of interface
# HP_BTLAN_SPEED            Speed and duplex mode
#                           Can be one of : 10HD, 10FD, 100HD, 100FD and
#                           AUTO_ON.
# HP_BTLAN_MTU              Maximum Transmission Unit (MTU)
#                           Integer value between 257 and 1500, inclusive.
#
# The interface name, major number, card instance and ppa may be
# obtained from the lanscan(1m) command.
#
# The station address and duplex are set through the lanadmin(1m) command.
#
#####################################################################

HP_BTLAN_INTERFACE_NAME[0]=
HP_BTLAN_STATION_ADDRESS[0]=
HP_BTLAN_SPEED[0]=
HP_BTLAN_MTU[0]=

###########################################################################
#  The HP_BTLAN_INIT_ARGS are reserved by HP.  They are NOT user changable.
###########################################################################

HP_BTLAN_INIT_ARGS="HP_BTLAN_STATION_ADDRESS HP_BTLAN_SPEED HP_BTLAN_MTU"

# End of hpbtlanconf configuration file

 

 

 [ NameServer 설정 ]
cat /etc/resolv.conf
domain test.com

nameserver 192.168.1.2     # primary dns
 

[ Net Service 구동/재시작 ]
# /sbin/init.d/net stop
# /sbin/init.d/net start

 

 

[ IP 설정 ]

ifconfig lan6 192.168.0.100 netmask 255.255.255.0 up

route add net 192.168.0.0 netmask 255.255.255.0 192.168.0.1 1

 

 

 

 

 

[ 네트웍 카드별 아이피 확인 ]

# netstat -in
Name      Mtu  Network         Address         Ipkts              Ierrs Opkts              Oerrs Coll
lan1      1500 192.168.1.0     192.168.1.111   57846873           0     173730152          0     0  
lo0      32808 127.0.0.0       127.0.0.1       41611065           0     41611062           0     0  
lan900    1500 xxx.xxx.xxx.0   xxx.xxx.xxx.xxx 3053587325         0     2956102205         0     0  

  -> lan0, lan1, lan2 등은 물리적 NIC이고,  lan900 부터는 APA로 구성된 논리적 NIC이다.



 

 

[ 시스템에 인식된 물리적 NIC 확인 ]

# ioscan -fnk -C lan
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
lan       2  0/3/1/0   iether   CLAIMED     INTERFACE    HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan       3  0/3/1/1   iether   CLAIMED     INTERFACE    HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan       0  0/4/2/0   iether   CLAIMED     INTERFACE    HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan       1  0/4/2/1   iether   CLAIMED     INTERFACE    HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core

  -> Core 는 보드에 내장된 NIC.   Adapter는 추가로 장착된 NIC

 



[ NIC별 Link 상태 ]

# lanscan
Message catalog can't be opened/accessed for language ko_KR.eucKR.
Language C will used.
Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
Path     Address        In# State NamePPA        ID  Type      Support Mjr#
0/3/1/0  0x00306E5DFA7C 2   UP    lan2 snap2     2   ETHER     Yes     119
0/4/2/1  0x001A4B08963D 1   UP    lan1 snap1     4   ETHER     Yes     119
LinkAgg0 0x001A4B08963C 900 UP    lan900 snap900 6   ETHER     Yes     119
LinkAgg1 0x000000000000 901 DOWN  lan901 snap901 7   ETHER     Yes     119
LinkAgg2 0x000000000000 902 DOWN  lan902 snap902 8   ETHER     Yes     119
LinkAgg3 0x000000000000 903 DOWN  lan903 snap903 9   ETHER     Yes     119
LinkAgg4 0x000000000000 904 DOWN  lan904 snap904 10  ETHER     Yes     119

 

 

[ NIC 속도/모드확인 ]

속도확인

# lanadmin -s 900
Speed                           = 1000000000

  ->  -s 옵션뒤에 PPA Number(lanscan -p 로 확인가능)를 적어준다.

 

속도 및 모드 확인

# lanadmin -x 1

 

전체 설정 및 통계 확인

# lanscan -g 900

 

 

[ APA 구성된 물리적 NIC 확인하기 ]

# lanscan -q
2         
1         
900        0 3
901       
902       
903       
904       

   -> 논리적 NIC 900 에 할당된 물리적 NIC이  lan0와 lan3으로 묶였다는걸 알 수 있다.

서버에 요청 중입니다. 잠시만 기다려 주십시오...