Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

AIX removes redundant default gateways

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

AIX removes redundant default gateways

System environment:

Operating system: AIX 5.3.8

Oracle: Oracle 10gR2

Case study:

There are multiple default gateways on the AIX system. When installing RAC, the network environment detects errors and cannot install RAC.

Through smit and route delete deletion, the system returns to its original state after reboot!

Solution:

1. View the current default gateway

[root@aix230:/] # netstat-nr

Routing tablesDestination Gateway Flags Refs Use If Exp GroupsRoute 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 en1-- 10.10.10.10.230 UHSb 0 0 en1-- = > 10.10.10.10.230 U0 1 en1-- 10.10.10.230 127.0.0.1 UGHS 0 1 lo0-- 10.10.10.255 10.10.230 UHSb 0 4 en1-- 127Universe 8 127.0.0.1 U 13 247 lo0-- 192.168.8.0 192.168.230 UHSb 0 0 en0-- = > 192.168.230 U 4 42 en0-- 192.168.230 127.0.0.1 UGHS 0 1 lo0-- 192.168.255 192.168.230 UHSb 0 4 en0 -- Route tree for Protocol Family 24 (Internet V6): 1:: 1 UH 0 0 lo0--

2. View ODM information

[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,0192.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 = 24CuAt: name = "inet0" attribute = "route" value = "net,-hopcount,0 0Med 10.10.10.1 "type =" R "generic =" DU "rep =" s "nls_index = 0CuAt: name =" inet0 "attribute =" route "value =" net,-hopcount,0 " 0192.168.8.1 "type =" R "generic =" DU "rep =" s "nls_index = 0CuAt: name =" inet0 "attribute =" route "value =" net,-hopcount,2,0,10.10.10.1 "type =" R "generic =" DU "rep =" s "nls_index = 0

3. Delete useless default routes one by one

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

Inet0 changed

4. Confirm to be effective

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

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

[root@aix230:/] # netstat-nr

Routing tablesDestination Gateway Flags Refs Use If Exp GroupsRoute tree for Protocol Family 2 (Internet): default 192.168.8.1 UG 0 0 en0-- 10.10.10.0 10.10.230 UHSb 0 0 en1-- = > 10.10.10 Greg 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-- 127gamma 8 127.0.0.1 U 13 247 lo0-- 192.168.8.0 192.168.230 UHSb 0 en0-- = > 192.168.8 Compact 24 192.168.230 U 4 42 en0-- 192.168.230 127.0.0.1 UGHS 0 1 lo0-192.168.8.255 192.168.230 UHSb 0 4 en0-Route tree for Protocol Family 24 (Internet v6): 1:: 1 UH 0 0 lo0--

@ after the system is restarted, there is no longer the phenomenon of multiple default gw, so the problem has been solved!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report