Hi All
I am Unix admin experienced with SUN and AIX environment. I need to change IP, netmask and Default Gataway on my HPUX 10.20 T600 server.
Bellow is the procedure that I have created and I would appreciate any feedback.
1. cp /etc/hosts /etc/hosts.date
2.cp /etc/rc.config.d/netconfig /etc/rc.config.d/netconfig.date
3. vi /etc/hosts and add your new IP address
new IP address hostname
4. vi /etc/rc.config.d/netconf and change the following entries
„h IP address
„h Netmask
„h Default gataway
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=new IP address for gataway
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
RARPD=0
IP_ADDRESS[1]=new IP address
SUBNET_MASK[1]=new subnet mask address
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=new broadcast IP address
LANCONFIG_ARGS[1]="ether"
DHCP_ENABLE[1]=0
5. To configure IP parameters without rebooting the box type
ifconfig lan1 down
ifconfig lan1 IP-address netmask NM-address up
6. Route add default DG-address
Thanks a lot.
Vlad
I am Unix admin experienced with SUN and AIX environment. I need to change IP, netmask and Default Gataway on my HPUX 10.20 T600 server.
Bellow is the procedure that I have created and I would appreciate any feedback.
1. cp /etc/hosts /etc/hosts.date
2.cp /etc/rc.config.d/netconfig /etc/rc.config.d/netconfig.date
3. vi /etc/hosts and add your new IP address
new IP address hostname
4. vi /etc/rc.config.d/netconf and change the following entries
„h IP address
„h Netmask
„h Default gataway
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=new IP address for gataway
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
RARPD=0
IP_ADDRESS[1]=new IP address
SUBNET_MASK[1]=new subnet mask address
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=new broadcast IP address
LANCONFIG_ARGS[1]="ether"
DHCP_ENABLE[1]=0
5. To configure IP parameters without rebooting the box type
ifconfig lan1 down
ifconfig lan1 IP-address netmask NM-address up
6. Route add default DG-address
Thanks a lot.
Vlad