AIX刪除多余的默認網關
成都創新互聯公司堅持“要么做到,要么別承諾”的工作理念,服務領域包括:成都網站設計、成都做網站、企業官網、英文網站、手機端網站、網站推廣等服務,滿足客戶于互聯網時代的海安網站設計、移動媒體設計的需求,幫助企業找到有效的互聯網解決方案。努力成為您成熟可靠的網絡建設合作伙伴!系統環境:
操作系統:AIX 5.3.8
Oracle: Oracle 10gR2
案例分析:
在AIX系統上有多個默認網關,在安裝RAC時,導致網絡環境檢測錯誤,無法安裝RAC.



通過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 = 03、逐條刪除沒用的默認路由
[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網址:http://www.yijiale78.com/article6/cspiig.html
成都網站建設公司_創新互聯,為您提供動態網站、網站排名、標簽優化、企業建站、靜態網站、Google
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯