Operating System - Tru64 Unix
1828352 Members
3360 Online
109976 Solutions
New Discussion

TCP/IP stack IP address, subnet mask and default gateway configuration

 
administrador
Advisor

TCP/IP stack IP address, subnet mask and default gateway configuration

Hello Dear Collegues, Could you help me please...Because I can not reach The remote Server...just need to change the subnet mask to 255.255.252.0 and default gateway to 146.163.64.1. That will fix the TCP/IP stack and then We will be able to reach the Server.

Thank´s In Advanced...
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: TCP/IP stack IP address, subnet mask and default gateway configuration

Depending of your os version, use:

sysman net_wizard

or

netconfig
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Manuales
Super Advisor

Re: TCP/IP stack IP address, subnet mask and default gateway configuration

Dear friend !!!!
You can do the following:

netstat -rn (see ip_default address)
route delete default ip_default
route add default ip_new_default
netstat -rn (see ip_new_default)

and you could see new configuration ...

you can run "man route" for learning more ...

Regards.
<><
Al Licause
Trusted Contributor

Re: TCP/IP stack IP address, subnet mask and default gateway configuration

Since you've posted this question in the Tru64unix forum, I'll assume that this is in relation to tru64unix. If your question is not for tru64unix, please repost to a more appropriate forum.

To make the netmask a permanent change, modify the appropriate IFCONFIG_ line in /etc/rc.config.

The make the default route a permanent change, edit the default line in /etc/routes.

Then reboot.

If you wish to make these changes on the fly, try the following:

ifconfig {interface_name} down
ifconfig {interface_name} delete
ifconfig {interface_name} 146.163.64.?/22
route delete default
route add default 146.163.64.1

In the third ifconfig command above, you'll need to subtitute the actual host address.
Al Licause
Trusted Contributor

Re: TCP/IP stack IP address, subnet mask and default gateway configuration

RE: sysman......be careful when using sysman for changes.

It is good for adds but questionable for changes and deletions.