Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error changing default gateway address

Status
Not open for further replies.

generaal

Programmer
Jan 11, 2007
58
0
0
ZA
i have recently moved an aix workstation to a different part of our plant for some testing and hopefully upgrading from 4.3 to 5.3. the problem comes when i try and change the default gateway address. When I go to smitty nfs - Configure TCP/IP (If Not Already Configured) - further configuration - static route - add a static route, I get this error:

method error (/usr/lib/methods/chginet):
0514-068 cause not known

0821-240 chginet:error writing to routing socket

I have tried the following and got the same error:
route delete 0
chdev -l inet0 -a route=0,<gateway address>
 
Not sure what causes this to be honest but have you tried to rmdev ent0?

rmdev -l ent0

This will reset every thing and then you can go ahead with configuring the TCP/IP from the beginning!

Regards,
Khalid
 
Have no machine to test here sadly atm, but maybe remove the old default GW.

List the current default GW:
Code:
netstat -rn | grep default

Delete it:
Code:
route delete 0 <network's ip>

Check the ODM:
Code:
root@mickey05:/> odmget -q "name = inet0" CuAt

CuAt:
        name = "inet0"
        attribute = "hostname"
        value = "mickey05"
        type = "R"
        generic = "DU"
        rep = "s"
        nls_index = 24

CuAt:
        name = "inet0"
        attribute = "route"
        [b]value = "net,-hopcount,0,,0,10.5.1.254"[/b]
        type = "R"
        generic = "DU"
        rep = "s"
        nls_index = 0

Delete it from ODM:
Code:
odmdelete -o CuAt -q "value = net,-hopcount,0,,0,10.5.1.254"

Add the new default GW and when everything is fine again, don't forget to do a
Code:
bosboot -ad /dev/ipldevice
because else you might have your old GW back after a reboot, even in the ODM which is somewhat annoying when you start searching why it comes back all the time^^

laters
zaxxon
 
Hello all

When i try rmdev -l ent0, i get the following error:
method error (/usr/lib/methods/ucfgcommo):
0514-039 Error unloading kernel extension

I also tried to list the current GW, but no value was returned. When i just did a netstat -rn, the only values returned were the headings.

Then i tried odmget -q "name = inet0" Cuat, and got the following error:
odmget: cannot open class Cuat
 
It should be

odmget -q "name = inet0" CuAt

Regards,
Khalid
 
and why not simply:

chdev -l inet0 -a delroute=`lsattr -El inet0 -a route|awk '{print $2}'`

 
I just cannot win with this one. I have now managed to get the new gateway address sorted out, but now it is not on the network. I can get into safe mode, but i cannot ping anything from it either.
 
Hm, is the link ok? Can you ping other machines in the same net so that you don't have to go via the default GW? Are the speeds ok on the port/switch along with that of your adapter?

laters
zaxxon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top