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 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.