$ ipmitool lan set 1 ipaddr 10.16.68.101$ P" L6 T* L. \: \7 U
Setting LAN IP Address to 10.16.68.101# r) V' N! k ?! K/ @; k
9 Z+ e$ V' ?; R# g
$ ipmitool lan set 1 defgw ipaddr 10.16.68.1 1 A2 ]0 I$ M9 ~3 W: A' r* iSetting LAN Default Gateway IP to 10.16.68.1 3 j% R! o" A7 C q i7 {% x$ f I1 L: I- n8 g9 t Q# c/ ]
$ ipmitool lan set 1 netmask 255.255.255.0' Q( r) E3 w# l T+ z; n$ M
Setting LAN Subnet Mask to 255.255.255.0( i% ~5 Y1 x& E; k, h5 L! P* L
. w. S: ?, ]& I/ D7 y2 f4 W6 W+ }
$ ipmitool mc reset cold 2 ~; C! l; Z% r* WSent cold reset command to MC $ k) V1 N3 k/ N I4 p + B1 z9 c+ k( u' Q9 X/ I8 B. Z/ v* }% n# K
配置即可生效。' V5 ]' q2 ]. W! o- C$ G
3 u# Z; E4 C5 Q
ipmitool lan set 1 defgw ipaddr 10.16.68.1' e# P5 s( E9 A) v5 C
ipmitool lan set 1 netmask 255.255.255.02 i2 d3 }& S0 t# U0 ~* B
ipmitool mc reset cold