CentOS / Red Hat Linux IP Forwarding How To

by Vivek Gite on July 5, 2008 · 0 comments

How do I enable IP forwarding under RHEL / Red Hat / Fedora / CentOS Linux operating systems?

You can easily turn on IP forwarding under Linux operating system by modifying Linux kernel variables (MIB).

Linux Enable IP Forwarding

Open /etc/sysctl.conf file using a text editor, enter:
# vi /etc/sysctl.conf
Set net.ipv4.ip_forward to 1, enter:

 
net.ipv4.ip_forward = 1
 

Save and close the file. Reload the changes by typing the following command:
# sysctl -p

See: How to setup Linux as a router for DSL, T1 line etc

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 4 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: