硬件生产aix 5.3

aix网关问题,改了网关重启系统又被还原

客户环境  p520 aix5.3 单机

比如原来网关是192.168.1.1
用smitty mktcpip把默认网关改为192.168.1.180
重启服务器网关又变为192.168.1.1了
请什么原因啊  有人遇到过吗



================================
解决了 原来在网卡上有多余的路由
把他删除即可

AIX删除多余的默认网关   Post By:2011-2-18 9:59:00    Post IP:222.128.175.110

AIX中配置了多条的默认网关,会造成网络不稳定(例如时断时好)。今天刚好一用户一主机遇到这种情况。
处理过程也很简单:
1.查看当前的默认网关

netstat -rn
会看到有多条的default.
如果用route命令(或smitty route)去删除,下次重启后,又会回来;所以要从ODM里删除。
2.查看ODM信息
# lsattr -El inet0
authm 65536 Authentication Methods True
bootup_option no Use BSD-style Network Configuration True
gateway Gateway True
hostname appserv1 Host Name True
rout6 IPv6 Route True
route net,-hopcount,0,,0,192.111.10.251 Route True
route net,-hopcount,0,,0,192.110.9.63 Route True
route net,-hopcount,0,,0,192.111.11.251 Route True
route net,-hopcount,0,,0,192.110.9.251 Route True
# odmget -q "name=inet0" CuAt
CuAt:
name = "inet0"
attribute = "hostname"
value = "host1"
type = "R"
generic = "DU"
rep = "s"
nls_index = 24
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.111.11.251"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.111.10.251"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.110.9.251"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.110.9.63"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
其中正确的应是192.110.9.63,其它都是多余的。
3.逐条删除没用的默认路由
# chdev -l inet0 -a delroute="net,-hopcount,0,,0,192.111.11.251"
Method error (/usr/lib/methods/chginet):
0514-068 Cause not known.
0821-279 writing to routing socket: The process does not exist.
0821-103 : The command /usr/sbin/route delete -net -hopcount 0 0 192.111.11.251 failed.
###删除其它(略)###
出现上面的报错信息,应该是AIX5.3的“误报”(至少在5300-08-01上是这样,AIX6不会)可以不用理会。
4.确认生效
# lsattr -El inet0
authm 65536 Authentication Methods True
bootup_option no Use BSD-style Network Configuration True
gateway Gateway True
hostname appserv1 Host Name True
rout6 IPv6 Route True
route net,-hopcount,0,,0,192.110.9.63 Route True
# odmget -q "name=inet0" CuAt
CuAt:
name = "inet0"
attribute = "hostname"
value = "appserv1"
type = "R"
generic = "DU"
rep = "s"
nls_index = 24
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.110.9.63"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 192.110.9.63 UG 1 286227 en0 - -
127/8 127.0.0.1 U 9 337 lo0 - -
192.110.9.0 192.110.9.21 UHSb 0 0 en0 - - =>
192.110.9/24 192.110.9.21 U 22 1151844 en0 - -
192.110.9.21 127.0.0.1 UGHS 2 5510 lo0 - -
192.110.9.255 192.110.9.21 UHSb 0 4 en0 - -
Route Tree for Protocol Family 24 (Internet v6):
参与17

16同行回答

fujitsuqlfujitsuql网络工程师null
学习了,非常了的经验显示全部
学习了,非常了的经验收起
系统集成 · 2014-09-26
浏览1633
tongpeng139tongpeng139项目经理上海博辕信息技术服务有限公司
这个真是学习了啊显示全部
这个真是学习了啊收起
互联网服务 · 2014-07-18
浏览1678
zxf8517zxf8517系统工程师WSHH
就因为这个问题害的我从家跑到机房现场修改IP和网关,这个算不算是AIX5.3的BUG?显示全部
就因为这个问题害的我从家跑到机房现场修改IP和网关,这个算不算是AIX5.3的BUG?收起
互联网服务 · 2014-07-11
浏览1744
午夜幽魂午夜幽魂系统运维工程师计算机有限公司
这个真的学习了显示全部
这个真的学习了收起
系统集成 · 2012-08-25
浏览1635
zhenzongjianzhenzongjian软件开发工程师na
网管很多啊显示全部
网管很多啊收起
互联网服务 · 2012-08-24
浏览1625
feizi111feizi111系统工程师深圳市科维思信息技术有限公司
学习了!显示全部
学习了!收起
互联网服务 · 2012-08-22
浏览1692
phoenix2369phoenix2369信息技术经理酒钢集团
这个真是学习了。显示全部
这个真是学习了。收起
金融其它 · 2012-08-22
浏览2846
andyhuangandyhuang数据库管理员深圳市彩讯科技有限公司
学习了!显示全部
学习了!收起
互联网服务 · 2012-08-22
浏览2799
smallmiaosmallmiao存储工程师MacroSAN
成功删除  谢谢各位了AIX删除多余的默认网关   Post By:2011-2-18 9:59:00    Post IP:222.128.175.110 AIX中配置了多条的默认网关,会造成网络不稳定(例如时断时好)。今天刚好一用户一主机遇到这种情况。处理过程也很简单:1.查看当前的默认网...显示全部
成功删除  谢谢各位了

AIX删除多余的默认网关   Post By:2011-2-18 9:59:00    Post IP:222.128.175.110

AIX中配置了多条的默认网关,会造成网络不稳定(例如时断时好)。今天刚好一用户一主机遇到这种情况。
处理过程也很简单:
1.查看当前的默认网关

netstat -rn
会看到有多条的default.
如果用route命令(或smitty route)去删除,下次重启后,又会回来;所以要从ODM里删除。
2.查看ODM信息
# lsattr -El inet0
authm 65536 Authentication Methods True
bootup_option no Use BSD-style Network Configuration True
gateway Gateway True
hostname appserv1 Host Name True
rout6 IPv6 Route True
route net,-hopcount,0,,0,192.111.10.251 Route True
route net,-hopcount,0,,0,192.110.9.63 Route True
route net,-hopcount,0,,0,192.111.11.251 Route True
route net,-hopcount,0,,0,192.110.9.251 Route True
# odmget -q "name=inet0" CuAt
CuAt:
name = "inet0"
attribute = "hostname"
value = "host1"
type = "R"
generic = "DU"
rep = "s"
nls_index = 24
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.111.11.251"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.111.10.251"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.110.9.251"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.110.9.63"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
其中正确的应是192.110.9.63,其它都是多余的。
3.逐条删除没用的默认路由
# chdev -l inet0 -a delroute="net,-hopcount,0,,0,192.111.11.251"
Method error (/usr/lib/methods/chginet):
0514-068 Cause not known.
0821-279 writing to routing socket: The process does not exist.
0821-103 : The command /usr/sbin/route delete -net -hopcount 0 0 192.111.11.251 failed.
###删除其它(略)###
出现上面的报错信息,应该是AIX5.3的“误报”(至少在5300-08-01上是这样,AIX6不会)可以不用理会。
4.确认生效
# lsattr -El inet0
authm 65536 Authentication Methods True
bootup_option no Use BSD-style Network Configuration True
gateway Gateway True
hostname appserv1 Host Name True
rout6 IPv6 Route True
route net,-hopcount,0,,0,192.110.9.63 Route True
# odmget -q "name=inet0" CuAt
CuAt:
name = "inet0"
attribute = "hostname"
value = "appserv1"
type = "R"
generic = "DU"
rep = "s"
nls_index = 24
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.110.9.63"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 192.110.9.63 UG 1 286227 en0 - -
127/8 127.0.0.1 U 9 337 lo0 - -
192.110.9.0 192.110.9.21 UHSb 0 0 en0 - - =>
192.110.9/24 192.110.9.21 U 22 1151844 en0 - -
192.110.9.21 127.0.0.1 UGHS 2 5510 lo0 - -
192.110.9.255 192.110.9.21 UHSb 0 4 en0 - -
Route Tree for Protocol Family 24 (Internet v6):收起
硬件生产 · 2012-08-21
浏览3222
smallmiaosmallmiao存储工程师MacroSAN
回复 6# leikai88 appserver02:root:[/]#lsattr -El inet0authm         65536                            Authentication Methods  ...显示全部
回复 6# leikai88

appserver02:root:[/]#lsattr -El inet0
authm         65536                            Authentication Methods              True
bootup_option no                               Use BSD-style Network Configuration True
gateway                                        Gateway                             True
hostname      appserver02                      Host Name                           True
rout6                                          IPv6 Route                          True
route         net,-hopcount,0,,0,192.168.1.180 Route                               True
route         net,-hopcount,0,,0,192.168.1.1   Route

本来是192.168.1.1的网关,后来改了192.168.1.180,
请问怎么删除 ent0里的192.168.1.1网关呢收起
硬件生产 · 2012-08-21
浏览2821

提问者

smallmiao
存储工程师MacroSAN
擅长领域: 存储备份服务器

相关问题

相关资料

问题状态

  • 发布时间:2012-08-21
  • 关注会员:1 人
  • 问题浏览:15864
  • 最近回答:2014-09-26
  • X社区推广