Change ALOM IP address/Netmask/Gateway

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Change ALOM IP address/Netmask/Gateway

Post by cah »

1. Become root user
2. Show current setting:

Code: Select all

webtest02%/usr/platform/`uname -i`/sbin/scadm show | grep netsc
netsc_tpelinktest="true"
netsc_dhcp="false"
netsc_ipaddr="10.0.16.181"
netsc_ipnetmask="255.255.255.0"
netsc_ipgateway="10.0.16.1"
2. Use the following command to change IP Address, Netmask and Gateway:

Code: Select all

/usr/platform/`uname -i`/sbin/scadm set netsc_ipaddr 10.0.32.207
/usr/platform/`uname -i`/sbin/scadm set netsc_ipnetmask 255.255.254.0
/usr/platform/`uname -i`/sbin/scadm set netsc_ipgateway 10.0.32.1
3. This does not automatically change on ALOM. One more command is needed:

Code: Select all

/usr/platform/`uname -i`/sbin/scadm resetrsc

Code: Select all

     resetrsc

         Reset the SC. There are two types of resets  allowed,  a
         hard  reset  and  a soft reset.The hard reset is done by
         default. The soft reset can be selected by using the  -s
         option.

         The format for the resetrsc subcommand is:

         scadm resetrsc [-s]
After the hard reset, the ALOM has the new IP address, netmask and gateway:

Code: Select all

webtest02%/usr/platform/`uname -i`/sbin/scadm show | grep netsc
netsc_tpelinktest="true"
netsc_dhcp="false"
netsc_ipaddr="10.0.32.207"
netsc_ipnetmask="255.255.254.0"
netsc_ipgateway="10.0.32.1"
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Change ALOM IP address/Netmask/Gateway from sc>

Post by cah »

Code: Select all

sc> shownetwork
SC network configuration is:
IP Address: 10.0.32.209
Gateway address: 10.0.32.1
Netmask: 255.255.254.0
Ethernet address: 00:03:ba:48:e8:60

Code: Select all

sc> setsc if_network true
sc> setsc netsc_dhcp false
sc> setsc netsc_ipaddr 10.0.32.155
sc> setsc netsc_ipnetmask 255.255.254.0
sc> setsc netsc_ipgateway 10.0.32.1
sc> resetsc
Are you sure you want to reset the SC [y/n]?  y
CAH, The Great
Post Reply