aix重複路由導致丟包問題解決

來源:互聯網
上載者:User

aix重複路由導致丟包問題解決 # netstat -rn  www.2cto.com  Routing tablesDestination        Gateway           Flags   Refs     Use  If   Exp  GroupsRoute Tree for Protocol Family 2 (Internet):default            192.168.128.254   UG        0       980 en1      -      -   =>default            *.*.2.254      UGS       3    160261 en0      -      -  *.*.2.0         *.*.2.21       UHSb      0         0 en0      -      -   =>*.*.2.0         *.*.2.23       UHSb      0         0 en6      -      -   =>*.*.2/24        *.*.2.21       U         2   6040225 en0      -      -   =>*.*.2/24        *.*.2.23       U         0   5964988 en6      -      -  *.*.2.21        127.0.0.1         UGHS      2   2965333 lo0      -      -  *.*.2.23        127.0.0.1         UGHS      2  56987242 lo0      -      -  *.*.2.255       *.*.2.21       UHSb      0         4 en0      -      -   =>*.*.2.255       *.*.2.23       UHSb      0         0 en6      -      -  127/8              127.0.0.1         U         5     40545 lo0      -      -  172.16.1.0         172.16.1.10       UHSb      0         0 en0      -      -   =>172.16.1/24        172.16.1.10       U         0     51979 en0      -      -  172.16.1.10        127.0.0.1         UGHS      0      7254 lo0      -      -  172.16.1.255       172.16.1.10       UHSb      0        28 en0      -      -  172.16.2.0         172.16.2.10       UHSb      0         0 en6      -      -   =>172.16.2/24        172.16.2.10       U         2     49507 en6      -      -  172.16.2.10        127.0.0.1         UGHS      1     15813 lo0      -      -  172.16.2.255       172.16.2.10       UHSb      2       169 en6      -      -  192.168.128.0      192.168.128.20    UHSb      0         0 en1      -      -   =>192.168.128/24     192.168.128.20    U         0      3075 en1      -      -  192.168.128.20     127.0.0.1         UGHS      0        67 lo0      -      -  192.168.128.255    192.168.128.20    UHSb      0         4 en1      -      -   # route delete -if en1 default 192.168.128.254192.168.128.254 net default: gateway 192.168.128.254下面再ping就ok了參考下面的文檔:如何重複資料刪除的預設路由?如下:  “問題描述:  客戶經常碰到產生兩條預設路由,並且兩條路由的IP地址完全一樣只有最後的介面不一樣。下文將介紹如何刪除多餘的預設路由。  netstat –rn   Routing tables  Destination Gateway Flags Refs Use If PMTU Exp Groups  Route Tree for Protocol Family 2 (Internet):  default 172.16.18.1 UGc 0 0 en2 - - - =>  default 172.16.18.1 UGc 0 0 en1 - - -  9/8 172.16.18.1 UGc 0 0 en2 - - -  9.181.49.76 172.16.18.1 UGHW 1 772 en2 1500 - -  9.181.49.136 172.16.18.1 UGHW 1 272 en2 1500 - -  9.181.49.146 172.16.18.1 UGHW 1 49 en2 1500 - -  9.181.50.88 172.16.18.1 UGHW 2 489 en2 1500 - -  9.181.50.89 172.16.18.1 UGHW 3 59144 en2 1500 - -  9.181.50.92 172.16.18.1 UGHW 1 234 en2 1500 - -  .......  HA_node2:/etc>lsattr -El inet0  authm 65536 Authentication Methods True  bootup_option no Use BSD-style Network Configuration True  gateway Gateway True  hostname HA_node2 Host Name True  rout6 IPv6 Route True  route net,-hopcount,0,,-if,en1,,0,172.16.18.1 Route True  route net,-hopcount,0,,-if,en2,,0,172.16.18.1 Route True  上面重複的兩條預設路由除了可以通過Flush Route Table  的方法刪除之外,還可以用如下方法刪除。  1. 通過route delete 刪除kernel 中的route 資訊:  HA_node2:/>route delete -if en1 default 172.16.18.1  172.16.18.1 net default: gateway 172.16.18.1  HA_node2:/>netstat -rn  Routing tables  Destination Gateway Flags Refs Use If PMTU Exp Groups  Route Tree for Protocol Family 2 (Internet):  default 172.16.18.1 UGc 0 0 en2 - - -  9/8 172.16.18.1 UGc 0 0 en2 - - -  9.181.49.76 172.16.18.1 UGHW 1 772 en2 1500 - -  9.181.49.136 172.16.18.1 UGHW 1 272 en2 1500 - -  9.181.49.146 172.16.18.1 UGHW 1 49 en2 1500 - -  9.181.50.88 172.16.18.1 UGHW 2 489 en2 1500 - -  9.181.50.89 172.16.18.1 UGHW 3 59144 en2 1500 - -  9.181.50.92 172.16.18.1 UGHW 1 234 en2 1500 - -  ……  從上的結果可以看出,kernel中的重複default route 已經被刪除。  但是從下面的結果可以看到,odm中的default route 仍然存在。  HA_node2:/etc>lsattr -El inet0  authm 65536 Authentication Methods True  bootup_option no Use BSD-style Network Configuration True  gateway Gateway True  hostname HA_node2 Host Name True  rout6 IPv6 Route True  route net,-hopcount,0,,-if,en1,,0,172.16.18.1 Route True  route net,-hopcount,0,,-if,en2,,0,172.16.18.1 Route True  2.通過chdev 刪除odm中的route 資訊:  HA_node2:/>chdev -l inet0 -a delroute=net,-hopcount,0,,-if,en1,,0,172.16.18.1  inet0 changed  HA_node2:/etc>lsattr -El inet0  authm 65536 Authentication Methods True  bootup_option no Use BSD-style Network Configuration True  gateway Gateway True  hostname HA_node2 Host Name True  rout6 IPv6 Route True  route net,-hopcount,0,,-if,en2,,0,172.16.18.1 Route True  HA_node2:/>netstat –rn  Routing tables  Destination Gateway Flags Refs Use If PMTU Exp Groups  Route Tree for Protocol Family 2 (Internet):  default 172.16.18.1 UGc 0 0 en2 - - -  9/8 172.16.18.1 UGc 0 0 en2 - - -  9.181.49.76 172.16.18.1 UGHW 1 772 en2 1500 - -  9.181.49.136 172.16.18.1 UGHW 1 272 en2 1500 - -  9.181.49.146 172.16.18.1 UGHW 1 49 en2 1500 - -  9.181.50.88 172.16.18.1 UGHW 2 489 en2 1500 - -  9.181.50.89 172.16.18.1 UGHW 3 59144 en2 1500 - -  9.181.50.92 172.16.18.1 UGHW 1 234 en2 1500 - -  ......  執行chdev 刪除預設路由之後,odm庫和kernel中的多餘預設路由都被刪除。 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.