We help IT Professionals succeed at work.

linux centos 4.2 (RHEL4.2) ip_forward is zero at boot time. how to make ip_forward=1 at boot time?

gdmo
gdmo asked
on
Medium Priority
452 Views
Last Modified: 2012-05-05
linux centos 4.2 (RHEL4.2)
I work on linux centos 4.2. I need that ip_forward=1
so in /proc/sys/net/ipv4, i write :
% echo 1 > ip_forward
but ip_forward is zero at boot time.
how to make ip_forward=1 at boot time?

Comment
Watch Question

Top Expert 2005
Commented:
/etc/sysctl.conf
add or modify
net.ipv4.ip_forward = 1

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
thanks. it works fine.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.