LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-16-2004, 07:35 AM   #1
enjoyzj
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, 08:00 AM   #2
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
Yes.

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, 08:58 AM   #3
enjoyzj
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, 09:23 AM   #4
ugge
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
IP_FORWARD="yes"

or
IP_FORWARD= 1
 
Old 04-16-2004, 10:56 AM   #5
enjoyzj
LQ Newbie
 
Registered: Nov 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks a lot!
 
  


Reply



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 05:10 PM
Set X to buit at startup? Whiskers Mandriva 6 04-22-2005 09:26 AM
How to set PATH on startup droy Red Hat 1 08-09-2004 01:50 AM
set Gamma at startup mane.x Linux - General 0 06-17-2004 08:14 AM
how do I set run level for startup? jdruin Linux - Newbie 3 09-23-2003 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:15 AM.

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