====== Afficher les cartes réseaux ======
root@parv4704:/opt/langtools/bin$ lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
1/0/1/1/0/4/0 0x0017A476781D 0 UP lan0 snap0 1 ETHER Yes 119
1/0/2/1/0/6/0 0x001560DEB7E4 1 UP lan1 snap1 2 ETHER Yes 119
1/0/2/1/0/6/1 0x001560DEB7E5 2 UP lan2 snap2 3 ETHER Yes 119
1/0/4/1/0/6/0 0x001560DEB75C 3 UP lan3 snap3 4 ETHER Yes 119
1/0/4/1/0/6/1 0x001560DEB75D 4 UP lan4 snap4 5 ETHER Yes 119
====== Obtenir des infos supplémentaires ======
root@parv4704:/opt/langtools/bin$ lanshow
-----------------------------------------
| |
| lanshow ( Version : 2.87 ) |
| |
| This tool is for HP support only |
-----------------------------------------
libp4 (9.142): Opening /stand/vmunix /dev/kmem
Loading symbols from /stand/vmunix
Kernel TEXT pages not requested in crashconf
Will use an artificial mapping from a.out TEXT pages
Loading symbols from /stand/dlkm/mod.d/SEOS
Executing : /usr/contrib/bin/lanshow-a-2
Name PPA Driver Interface Mac States IP
Name Description Address Link IP Address
--------------------------------------------------------------------------------
lan0 0 igelan 1000Base-T Core 0x0017a476781d UP UP A.B.C.D
UP A.B.C.D
lan1 1 iether 1000Base-T 0x001560deb7e4 UP DOWN 0.0.0.0
lan2 2 iether 1000Base-T 0x001560deb7e5 UP UP 10.255.21.14
lan3 3 iether 1000Base-T 0x001560deb75c DOWN n/c n/c
lan4 4 iether 1000Base-T 0x001560deb75d UP DOWN 0.0.0.0
n/c : means "Not Configured", ifconfig has not been done on this interface
====== Voir la vitesse d'une carte ======
root@parv4704:/opt/langtools/bin$ lanadmin -s -x 0
Speed = 100000000
Speed = 100 Half-Duplex.
Autonegotiation = On.
====== Changer la vitesse d'une carte et fixer les paramètres après reboot ======
root@parv4704:/opt/langtools/bin$ lanadmin -X 100fd -x 0
WARNING: The link settings you have specified for this card
must match the settings of its link partner.
* Modifier le(s) fichier(s) ''/etc/rc.config.d/hp*''
root@parv4704:/etc/rc.config.d$ ls -l hpi*
-r--r--r-- 1 bin bin 5468 Nov 10 2004 hpietherconf
-r--r--r-- 1 bin bin 4571 Jun 6 14:50 hpigelanconf
HP_IGELAN_INTERFACE_NAME[0]=lan0
HP_IGELAN_STATION_ADDRESS[0]=
HP_IGELAN_SPEED[0]=100fd
====== Créer un alias IP ======
Modifier le fichier ///etc/rc.config.d/netconf// :
INTERFACE_NAME[1]="lan0:1"
IP_ADDRESS[1]="A.B.C.D"
SUBNET_MASK[1]="A.B.C.D"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
Monter l'interface à la main :
ifconfig lan0:1 A.B.C.D netmask A.B.C.D up
====== Comment savoir où est pluggué un câble sur un HP partitionné ======
root@parv4670:/$ lanshow
-----------------------------------------
| |
| lanshow ( Version : 2.87 ) |
| |
| This tool is for HP support only |
-----------------------------------------
libp4 (9.142): Opening /stand/vmunix /dev/kmem
Loading symbols from /stand/vmunix
Kernel TEXT pages not requested in crashconf
Will use an artificial mapping from a.out TEXT pages
Loading symbols from /stand/dlkm/mod.d/SEOS
Executing : /usr/contrib/bin/lanshow-a-2
Name PPA Driver Interface Mac States IP
Name Description Address Link IP Address
--------------------------------------------------------------------------------
lan0 0 btlan 100Base-TX Core 0x000f203c436a DOWN n/c n/c
lan7 7 iether 1000Base-T 0x001560de7728 DOWN n/c n/c
lan8 8 iether 1000Base-T 0x001560de7729 DOWN n/c n/c
lan9 9 iether 1000Base-T 0x001560dea8aa UP UP 10.251.208.25
lan10 10 iether 1000Base-T 0x001560dea8ab DOWN n/c n/c
lan11 11 igelan 1000Base-T 0x0016353e9188 DOWN n/c n/c
lan12 12 igelan 1000Base-T 0x0016353e9159 DOWN n/c n/c
n/c : means "Not Configured", ifconfig has not been done on this interface
root@parv4670:/$ lanscan|grep lan9
5/0/11/1/0/6/0 0x001560DEA8AA 9 UP lan9 snap9 4 ETHER Yes 119
root@parv4670:/$ rad -q |grep 5/0/11/1
8-0-3-8 5/0/11/1 88 133 133 On Yes No Yes PCI-X PCI-X
8: Cabinet
|
0: Bay
|
3: Chassis
|
8: Slot
Le **8-0-3-8** est necessaire et suffisant pour retrouver au cul du serveur l'emplacement du lien réseau.
* Pour faire clignoter le slot:
/usr/bin/rad -f ATTENTION 8-0-3-8
* On retrouve aussi cette info via un parstatus :
....
....
[Chassis]
Core Connected Par
Hardware Location Usage IO To Num
=================== ============ ==== ========== ===
....
....
cab8,bay0,chassis3 active yes cab0,cell5 4
....
....
[Partition]
Par # of # of I/O
Num Status Cells Chassis Core cell Partition Name (first 30 chars)
=== ============ ===== ======== ========== ===============================
0 active 1 1 cab0,cell0 parv2291
1 active 2 2 cab0,cell1 Partition 1
2 active 1 1 cab0,cell2 parc2898
3 active 2 1 cab0,cell4 Partition 3
4 active 1 1 cab0,cell5 COBI PROD
COBI PROD est construit sur le cab8,bay0, chassis3
====== Aggrégat (APA) ======
/etc/rc.config.d/netconf
INTERFACE_NAME[0]=lan5000
IP_ADDRESS[0]=10.195.16.140
SUBNET_MASK=255.255.255.0
INTERFACE_STATE[0]="up"
BROADCAST_ADDRESS[0]="10.195.17.255"
INTERFACE_NAME[1]=lan5001
IP_ADDRESS[1]=10.224.251.139
SUBNET_MASK[1]=255.255.255.0
INTERFACE_STATE[1]="up"
INTERFACE_NAME[2]="lan5003"
IP_ADDRESS[2]="10.238.10.249"
SUBNET_MASK[2]="255.255.254.0"
BROADCAST_ADDRESS[2]="10.238.11.255"
INTERFACE_STATE[2]="up"
ROUTE_DESTINATION[3]=default
ROUTE_MASK[3]="255.255.255.0"
ROUTE_GATEWAY[3]="10.224.251.1"
ROUTE_COUNT[3]=""
ROUTE_ARGS[3]=""
/etc/rc.config.d/hp_apaconf
HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=LB_MAC
HP_APA_MANUAL_LA[0]="0,1"
/etc/rc.config.d/hp_apaportconf
HP_APAPORT_INTERFACE_NAME[0]=lan0
HP_APAPORT_CONFIG_MODE[0]=MANUAL
HP_APAPORT_INTERFACE_NAME[1]=lan1
HP_APAPORT_CONFIG_MODE[1]=MANUAL
/etc/rc.config.d/vlanconf
VLAN_VPPA[0]=5000
VLAN_PHY_INTERFACE[0]=900
VLAN_ID[0]=71
VLAN_NAME[0]=SQLFT
VLAN_PRIORITY[0]=0
VLAN_PRI_OVERRIDE[0]=CONF_PRI
VLAN_TOS[0]=0
VLAN_TOS_OVERRIDE[0]=IP_HEADER
VLAN_VPPA[1]=5001
VLAN_PHY_INTERFACE[1]=900
VLAN_ID[1]=68
VLAN_NAME[1]=GINSAV
VLAN_PRIORITY[1]=0
VLAN_PRI_OVERRIDE[1]=CONF_PRI
VLAN_TOS[1]=0
VLAN_TOS_OVERRIDE[1]=IP_HEADER
VLAN_VPPA[2]=5002
VLAN_PHY_INTERFACE[2]=900
VLAN_ID[2]=147
VLAN_NAME[2]=VCSHB1
VLAN_PRIORITY[2]=0
VLAN_PRI_OVERRIDE[2]=CONF_PRI
VLAN_TOS[2]=0
VLAN_TOS_OVERRIDE[2]=IP_HEADER
VLAN_VPPA[3]=5003
VLAN_PHY_INTERFACE[3]=900
VLAN_ID[3]=15
VLAN_NAME[3]=TF
VLAN_PRIORITY[3]=0
VLAN_PRI_OVERRIDE[3]=CONF_PRI
VLAN_TOS[3]=0
VLAN_TOS_OVERRIDE[3]=IP_HEADER
VLAN_VPPA[4]=5004
VLAN_PHY_INTERFACE[4]=900
VLAN_ID[4]=148
VLAN_NAME[4]=VCSHB2
VLAN_PRIORITY[4]=0
VLAN_PRI_OVERRIDE[4]=CONF_PRI
VLAN_TOS[4]=0
VLAN_TOS_OVERRIDE[4]=IP_HEADER
nwmgr -g -S apa
lanadmin -x -i 900
lanadmin -x -p 0 901
* Couper un lien
nwmgr -d -A links=1 -I 900 -S apa
nwmgr -a -A links=1 -I 900 -S apa
nwmgr -d -A links=0 -I 900 -S apa
nwmgr -a -A links=0 -I 900 -S apa
====== Créer / modifier un VLAN ======
nwmgr -a -c lan5004 -S vlan -A vlanid=14, pri=0, ppa=0
nwmgr -s -c lan5004 -S vlan -A vlanid=14, pri=0, name=fcose
lanadmin -V create vlanid 68 pri 0 tos 0 name GINSAV 900
* ///etc/rc.config.d/vlanconf//
VLAN_VPPA[4]=5004
VLAN_PHY_INTERFACE[4]=0
VLAN_ID[4]=14
VLAN_NAME[4]=fcose
VLAN_PRIORITY[4]=0
VLAN_PRI_OVERRIDE[4]=CONF_PRI
VLAN_TOS[4]=0
VLAN_TOS_OVERRIDE[4]=IP_HEADER
nwmgr -S vlan