CentOS set permanent static routes

Source: Internet
Author: User

# Add a permanent route

Vi/etc/sysconfig/network-scripts/route-eth0 #如果没有route-eth0 This file to create both, eth0 this is my current use of the network card, according to the actual situation filled. 192.168.20.0/24 via 192.168.0.251 Dev eth0 wq
Service Network Restart # Restart Network Service
Netstate-rn # View current routing table status if the 192.168.20.0 192.168.0.251 information appears, the instructions are already in effect.


This article is from the "11792086" blog, please be sure to keep this source http://11802086.blog.51cto.com/11792086/1831624

CentOS set permanent static routes

Related Article

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.