Operating System - HP-UX
1826331 Members
3438 Online
109692 Solutions
New Discussion

Re: New network configuration

 
Don Spare
Regular Advisor

New network configuration

We are changing our network configuration and I will have to change the default route for my L class servers. I did this once a long time ago but I can't remember how I did it. A search of the man pages did not jog my memory. Can someone please point me in the right direction. My default route will need to change from 10.1.1.1 to 10.1.1.2.

9 REPLIES 9
Jeff Machols
Esteemed Contributor

Re: New network configuration

all you have to do is

route add IP.IP.IP.IP netmast 255.x.x.x

to remove the old one

route -delete IP.IP.IP.IP
Uday_S_Ankolekar
Honored Contributor

Re: New network configuration

Hi,

You can change in this file /etc/rc.config.d/netconf
Change the IP_address, netmask, and broadcast to "".
On command line

route delete default

route add default
You will lose these changes when you reboot your system

You can also use set_parms command to change ip address hostname etc..

-USA.
Good Luck..
Alan Casey
Trusted Contributor

Re: New network configuration

This can be done in Sam
Also,

/etc/rc.config.d/netconf

There is a rout entry here for the default route.

You can then either stop and start inetd or reboot or

you can use command to change the route online:

route del default ....
route add default ....


Alan
Patrick Wallek
Honored Contributor

Re: New network configuration

To change you default route so that it gets configured correctly on boot up, you need to modify the /etc/rc.config.d/netconf file and change the line:

ROUTE_GATEWAY[0]="172.30.0.1"

to whatever you new default router is.

To do this without rebooting your system do:

# route delete default

# route add default ip.of.default.router 1


But keep in mind that you'll also need to change the netconf file anyway so the route will be correct after the next reboot.
Jeff Machols
Esteemed Contributor

Re: New network configuration

one more thing, to check your new route, run netstat -r, this will show your route table
Helen French
Honored Contributor

Re: New network configuration

hey,

The simple way is through SAM. Also you may edit /etc/rc.config.d/netconf file and search for the 'broadcast' !

SW
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: New network configuration

Hi Don,

You can do this using SAM. go to sam --> networking and communication -- > Hosts --> Local Hosts File.

Select Action --> configure default gateway from there and set the new ipaddress in the default gateway configuration.

Hope this helps.

Regds
Deshpande Prashant
Honored Contributor

Re: New network configuration

HI
Use
#route delete 10.1.1.1 1
#route add default 10.1.1.2 1

Modify the same IP address in /etc/rc.config.d/netconf file.

Thanks.
Prashant.
Take it as it comes.