CentOS 6.4 double Nic modify Default Gateway

Source: Internet
Author: User

For example, two NICs are configured under CentOS, one for daily Internet access, and the other for connecting to the Development Board, which is configured in different network segments. Originally, NetworkManger is used under CentOS, DHCP is used to configure the network, but you want to learn about network management. Therefore, this function is disabled and IP Address Allocation and configuration are performed manually. But today something went wrong. After I turned on my computer, I found that I couldn't access the internet. At first I thought it was a lab network problem, but other computers could access the internet. The problem was on my computer. ping, then, check the route table and find that your default gateway is configured as the gateway where the Development Board is located. The solution is as follows:

> Route del-net 0.0.0.0 @ delete default gateway

> Route add default gw x. x eth0 (device name) @ Set default Gateway (Egress device)

Ping again and then OK !!

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.