Enable linux routing

Source: Internet
Author: User
When you enable the linux routing function, high-level routers can connect different hardware devices and translate many different packet formats. Generally, the prices are not cheap! In this chapter, we do not want to discuss such high-level things. we only discuss the simplest router functions in the Ethernet... information enabling the linux routing function advanced routers can connect different hardware devices, and can translate many different packet formats, usually .... the price is not cheap! In this section, we do not want to discuss such high-level things. we only discuss the simplest router function in the Ethernet: connecting two different domains. Www.2cto.com! This function is available in Linux! Just as the route table is provided by the core functions of Linux, and the packet forwarding capability is also provided by the core of Linux, how can we start this packet forwarding? It's easy. just do this: [root @ linux ~] # Echo "1">/proc/sys/net/ipv4/ip_forward: This action enables the packet forwarding capability of the Linux core. You can write the preceding commands to/etc/rc. d/rc. local to enable the packet forwarding function when Linux is started, or by modifying/etc/sysctl. conf to transfer the boot package: www.2cto.com [root @ linux ~] # Vi/etc/sysctl. conf # Modify the following settings correctly! Net. ipv4.ip _ forward = 1 [root @ linux ~] # Sysctl-p <= make the setting take effect immediately. the sysctl command is used to directly modify the core parameters during core work. for more functions, see man sysctl. Don't doubt! Your Linux has the simplest router function.

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.