Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-16-2004, 08:35 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 29

Rep: Reputation: 15
how to set ip_forward on at startup?

Could anybody let me know how I can set ip_forward on at startup, instead of manually input a command after startup? Thanks in advance!
Old 04-16-2004, 09:00 AM   #2
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15

You want a line like this......echo 1 > /proc/sys/net/ipv4/ip_forward

On Slackware I put it in rc.local

Not sure what distro you are using
Old 04-16-2004, 09:58 AM   #3
LQ Newbie
Registered: Nov 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Oh, sorry. I am using mandrake 9.2. I know the command in command line, but don't know which file I shall modify and in what format. Thank you.
Old 04-16-2004, 10:23 AM   #4
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Check the sysctl file found in /etc or /etc/sysconfig

Old 04-16-2004, 11:56 AM   #5
LQ Newbie
Registered: Nov 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks a lot!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ip_forward set to 0 at boot time gauge73 Linux - Networking 5 09-26-2005 06:10 PM
Set X to buit at startup? Whiskers Mandriva 6 04-22-2005 10:26 AM
How to set PATH on startup droy Red Hat 1 08-09-2004 02:50 AM
set Gamma at startup mane.x Linux - General 0 06-17-2004 09:14 AM
how do I set run level for startup? jdruin Linux - Newbie 3 09-23-2003 11:06 PM

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration