AIX删除多余的默认网关-创新互联

AIX删除多余的默认网关

成都创新互联公司坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站设计、成都做网站、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的海安网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

系统环境:

操作系统:AIX 5.3.8

Oracle:  Oracle 10gR2

案例分析:

  在AIX系统上有多个默认网关,在安装RAC时,导致网络环境检测错误,无法安装RAC.

AIX删除多余的默认网关

AIX删除多余的默认网关

AIX删除多余的默认网关

  通过smit和route delete删除,系统在重启后又回到原来的状态!

解决方案:

1、查看当前默认网关

[root@aix230:/]#netstat -nr

Routing tables Destination        Gateway           Flags   Refs     Use  If   Exp  Groups Route tree for Protocol Family 2 (Internet): default            192.168.8.1       UG        0         0 en0      -      -    default            10.10.10.1            UG        0         0 en1      -      -  default            10.10.10.1          UG        0         0 en1      -      -  10.10.10.0         10.10.10.230      UHSb      0         0 en1      -      -   => 10.10.10/24        10.10.10.230      U         0         1 en1      -      -    10.10.10.230       127.0.0.1         UGHS      0         1 lo0      -      -    10.10.10.255       10.10.10.230      UHSb      0         4 en1      -      -    127/8              127.0.0.1         U        13       247 lo0      -      -    192.168.8.0        192.168.8.230     UHSb      0         0 en0      -      -   => 192.168.8/24       192.168.8.230     U         4        42 en0      -      -    192.168.8.230      127.0.0.1         UGHS      0         1 lo0      -      -    192.168.8.255      192.168.8.230     UHSb      0         4 en0      -      -    Route tree for Protocol Family 24 (Internet v6): ::1                ::1               UH        0         0 lo0      -      -

2、查看ODM信息

[root@aix230:/]#lsattr -El inet0

authm     65536              Authentication Methods        True

bootup_option no               Use BSD-style Network Configuration True

gateway                    Gateway               True

hostname    aix230             Host Name              True

rout6                     IPv6 Route              True

route     net,-hopcount,0,,0,192.168.8.1 Route                True

route     net,-hopcount,0,,0,10.10.10.1  Route                True

route     net,-hopcount,2,,0,10.10.10.1  Route                True

[root@aix230:/]#odmget -q "name=inet0" CuAt

CuAt:         name = "inet0"         attribute = "hostname"         value = "aix230"         type = "R"         generic = "DU"         rep = "s"         nls_index = 24 CuAt:         name = "inet0"         attribute = "route"         value = "net,-hopcount,0,,0,10.10.10.1"         type = "R"         generic = "DU"         rep = "s"         nls_index = 0 CuAt:         name = "inet0"         attribute = "route"         value = "net,-hopcount,0,,0,192.168.8.1"         type = "R"         generic = "DU"         rep = "s"         nls_index = 0 CuAt:         name = "inet0"         attribute = "route"         value = "net,-hopcount,2,,0,10.10.10.1"         type = "R"         generic = "DU"         rep = "s"         nls_index = 0

3、逐条删除没用的默认路由

[root@aix230:/]#chdev -l inet0 -a delroute="net,-hopcount,2,,0,10.10.10.1"

inet0 changed

4.确认生效

[root@aix230:/]#odmget -q "name=inet0" CuAt

CuAt:         name = "inet0"         attribute = "hostname"         value = "aix230"         type = "R"         generic = "DU"         rep = "s"         nls_index = 24 CuAt:         name = "inet0"         attribute = "route"         value = "net,-hopcount,0,,0,192.168.8.1"         type = "R"         generic = "DU"         rep = "s"         nls_index = 0

[root@aix230:/]#netstat -nr

Routing tables Destination        Gateway           Flags   Refs     Use  If   Exp  Groups Route tree for Protocol Family 2 (Internet): default            192.168.8.1       UG        0         0 en0      -      -    10.10.10.0         10.10.10.230      UHSb      0         0 en1      -      -   => 10.10.10/24        10.10.10.230      U         0         1 en1      -      -    10.10.10.230       127.0.0.1         UGHS      0         1 lo0      -      -    10.10.10.255       10.10.10.230      UHSb      0         4 en1      -      -    127/8              127.0.0.1         U        13       247 lo0      -      -    192.168.8.0        192.168.8.230     UHSb      0         0 en0      -      -   => 192.168.8/24       192.168.8.230     U         4        42 en0      -      -    192.168.8.230      127.0.0.1         UGHS      0         1 lo0      -      -    192.168.8.255      192.168.8.230     UHSb      0         4 en0      -      -    Route tree for Protocol Family 24 (Internet v6): ::1                ::1               UH        0         0 lo0      -      -

@系统在重启后,不再出现多个default gw的现象,至此,问题得到解决!

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

网页题目:AIX删除多余的默认网关-创新互联
URL网址:https://www.cdcxhl.com/article6/cspiig.html

成都网站建设公司_创新互联,为您提供动态网站网站排名标签优化企业建站静态网站Google

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都app开发公司