The RHD HAT6.5 system was installed this morning, and in the morning, the extranet can be accessed, and after the system has been rebooted, a router is added to the network.
The specific configuration is as follows:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m01/83/92/wkiom1d2kjxqwkedaablarudgea574.png-wh_500x0-wm_3-wmp_4-s_504316651.png "title= "QQ picture 20160701162237.png" alt= "Wkiom1d2kjxqwkedaablarudgea574.png-wh_50"/>
After you change the DNS to point to the gateway, you still cannot access the extranet (the gateway is: 192.168.3.1).
Then change dns,dns again to point to 114.114.114.114 or you cannot access the extranet.
This is not the DNS problem, check whether the intranet can access: (the result is as follows)
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/91/wKioL1d2Kh2Roy75AAA-DGBcdMg773.png-wh_500x0-wm_3 -wmp_4-s_1535225209.png "style=" Float:none; "title=" QQ picture 20160701162906.png "alt=" Wkiol1d2kh2roy75aaa-dgbcdmg773.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/83/93/wKiom1d2Kh6QNi49AABNNhyWF-k382.png-wh_500x0-wm_3 -wmp_4-s_1107178541.png "style=" Float:none; "title=" QQ picture 20160701162912.png "alt=" Wkiom1d2kh6qni49aabnnhywf-k382.png-wh_50 "/>
Check that the intranet is OK and check that the network settings are correct:
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/83/91/wKioL1d2KpXTqvOZAACNHCdUdB4606.png-wh_500x0-wm_3 -wmp_4-s_2417777340.png "title=" qq picture 20160701163111.png "alt=" Wkiol1d2kpxtqvozaacnhcdudb4606.png-wh_50 "/>
Add route add default GW 192.168.192.3.1 Dev eth0 After determining network configuration no problem
(This command is to add a gateway route, that is, to tell the system to go) This command can access the extranet 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0003.gif "alt=" j_0003. GIF "/>
After a period of checking, it was found that there are other gateways in the/etc/sysconfig/network file.
Restore the system to the Add route add default GW 192.168.192.3.1 Dev eth0 before this command.
Modify the/etc/sysconfig/network inside the gateway after normal access to the extranet.
Problem Analysis:
route add default gw 192.168.192.3.1 dev eth0 can access the extranet after this command.
Unable to access the external network troubleshooting ideas:
1. Check if the network IP is in the same segment as the gateway
2. Check if the intranet is able to connect (check intranet correctness)
3. Check the correctness of the gateway configuration
4. Check that DNS is correct
5. Check If the/etc/sysconfig/network file has more than one gateway
The above method is to check that the network cannot access the general steps of the extranet. (PS: There are other ways to check the network failure, not well written, do not update the content after spraying)
Red Hat6.5 Failure analysis on the Internet