AIX刪除多余的默認(rèn)網(wǎng)關(guān)
成都創(chuàng)新互聯(lián)公司堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都網(wǎng)站設(shè)計(jì)、成都做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時(shí)代的海安網(wǎng)站設(shè)計(jì)、移動(dòng)媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!系統(tǒng)環(huán)境:
操作系統(tǒng):AIX 5.3.8
Oracle: Oracle 10gR2
案例分析:
在AIX系統(tǒng)上有多個(gè)默認(rèn)網(wǎng)關(guān),在安裝RAC時(shí),導(dǎo)致網(wǎng)絡(luò)環(huán)境檢測(cè)錯(cuò)誤,無(wú)法安裝RAC.
通過(guò)smit和route delete刪除,系統(tǒng)在重啟后又回到原來(lái)的狀態(tài)!
解決方案:
1、查看當(dāng)前默認(rèn)網(wǎng)關(guān)
[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 = 03、逐條刪除沒用的默認(rèn)路由
[root@aix230:/]#chdev -l inet0 -a delroute="net,-hopcount,2,,0,10.10.10.1"
inet0 changed
4.確認(rèn)生效
[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 - -@系統(tǒng)在重啟后,不再出現(xiàn)多個(gè)default gw的現(xiàn)象,至此,問(wèn)題得到解決!
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
網(wǎng)頁(yè)題目:AIX刪除多余的默認(rèn)網(wǎng)關(guān)-創(chuàng)新互聯(lián)
URL網(wǎng)址:http://www.rwnh.cn/article6/cspiig.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供動(dòng)態(tài)網(wǎng)站、網(wǎng)站排名、標(biāo)簽優(yōu)化、企業(yè)建站、靜態(tài)網(wǎng)站、Google
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容