1825766 Members
2558 Online
109687 Solutions
New Discussion

Re: ip address change

 
SOLVED
Go to solution
Jeff Hagstrom
Regular Advisor

ip address change

I change the IP address in my k460 by changing the host file and the netconf file. Did a net start and stop. I can ping When I do the net start I get an error:
Failed to add route entry because its interface is not yet initialized. My need to add this route entry with a route command after the interface is up: add net default: gateway 10.20.5.1: Netwrok is unreachable.

Where does it want a route added?
9 REPLIES 9
Kelli Ward
Trusted Contributor

Re: ip address change

You can set it in the netconf file at the ROUTE_GATEWAY entry or by using:
route add default 1

It wants the route added in the route table.

HTH,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Pete Randall
Outstanding Contributor
Solution

Re: ip address change

Jeff,

First, I find that the safest way to change an ip address correctly is to use "/sbin/set_parms ip_address". Try that and see if you still have an error.


Pete



Pete
Steven E. Protter
Exalted Contributor

Re: ip address change

It may be a route problem, it may be something else.

In general after making a change to netconf, I reboot the box.

That is the only way to be sure the change will take properly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
PIYUSH D. PATEL
Honored Contributor

Re: ip address change

Change it through

#set_parms ip_address and change the other required parameters like gateway etc. Then you should be good to go !!

HTH,
Piyush
Sridhar Bhaskarla
Honored Contributor

Re: ip address change

Hi,

Looks like your interface is not in the same subnet as of your router. Post your netstat -in output. Replace the IP address with some dummy entreis (like replace 10.20 with xx.yy). Or try this way.

From the console

#/sbin/init.d/net stop
#netstat -in
(find out all the interfaces that are still have IP addresses)
#ifconfig lanx unplumb (replace x with the ppa that found in the above step except lo0)
#netstat -in (verify there is nothing but the loop back)
#/sbin/init.d/net start
#netstat -in (to verify the interfaces)
#netstat -rn (to verify the routing tables)

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Caesar_3
Esteemed Contributor

Re: ip address change

Hello!

Try to clean the routing tabel by
route delete
and then start the net service.
Also check that you configure ok your netconf file.

Caesar
Fragon
Trusted Contributor

Re: ip address change

Hi,
I think it's a straight way to set default route in /etc/rc.config.d/netconf file!
There are example entries, just modify it according the rule!
Reboot is recommended after the modifying!

-ux
KCS_1
Respected Contributor

Re: ip address change

Hi,

It's other good and clear way more than other method to chage your network related setting that IP and Gateway.
try it using these commands ;

# set_parms ip_address

# set_parms addl_netwrk



Sincerly~

patrick



Easy going at all.
Suresh Patoria
Super Advisor

Re: ip address change

1.) You check the entry for IP Address same in /etc/hosts and /etc/rc.config.d/netconf
and also check the parameter in netconf file, and also u check the hostname in /etc/hosts file and netconf file

2.) If u entry correct than check the entry for routing in /etc/rc.config.d/netconf

3.) If it is correct than try first remove the rouote entry and try to boot the system without route entry

4.)If it work successful then u give the route entry