Solve the packet loss problem caused by repeated aix routes

Source: Internet
Author: User

Solve the packet loss problem caused by repeated aix routes # 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 U GHS 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-116127.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 0 en6--=> 172.16.2/24 172. 16.2.10 U 2 49507 en6-2017127.0.0.1 UGHS 1 15813 lo0--2017172.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: next to gateway 192.168.128.254 Ping is OK. refer to the following document: how to delete duplicate default routes? "Problem description: Customers often encounter two default routes, and the IP addresses of the two routes are identical, only the last interface is different. The following describes how to delete redundant default routes. 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 0 en2---region 172.16.18.1 UGHW 1 772 en2 1500 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 True hostname HA_node2 Host Name True rout6 IPv6 Route True route net, -Route count, 0,-if, en1, 0, 172.16.18.1 Route True Route net,-Route count, 0,-if, en2, 0, 172.16.18.1 Route True the two default routes repeated above can be deleted by using the Flush route Table method, you can also delete it as follows. 1. use route delete to delete the route information in the kernel: 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.4 9.136 running UGHW 1 272 en2 1500--2017172.16.18.1 UGHW 1 49 en2 1500--2017172.16.18.1 UGHW 2 489 en2 1500---2017172.16.18.1 UGHW 3 59144 en2 1500--2017172.16.18.1 234 en2 1500 --...... From the above results, we can see that the duplicate default route in the kernel has been deleted. However, we can see from the following results that the default route in the odm still exists. HA_node2:/etc> lsattr-El inet0 authm 65536 Authentication Methods True bootup_option no Use BSD-style Network Configuration True gateway True hostname HA_node2 Host Name True rout6 IPv6 Route True route net, -Route count, 0,-if, en1, 0, 172.16.18.1 route True Route net,-Route count, 0,-if, en2, 0, 172.16.18.1 route True 2. use chdev to delete the route information in the odm: HA_node2:/> chdev-l inet0-a delroute = net,-route count, 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 True hostname HA_node2 Host Name True rout6 IPv6 Route True route net,-Route count, 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 Tr Ee for Protocol Family 2 (Internet ): default region UGc 0 0 en2---9/8 172.16.18.1 UGc 0 0 en2---region 172.16.18.1 UGHW 1 772 en2 1500---region 172.16.18.1 UGHW 1 272 en2 1500--region 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 --... After chdev is executed to delete the default route, the redundant default route entries in the odm Library and the kernel are deleted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.