LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2002, 09:15 PM   #1
RatRogue
LQ Newbie
 
Registered: Jan 2002
Location: TX
Distribution: RedHat 7.2
Posts: 4

Rep: Reputation: 0
Question the "route" command


Everytime my comp boots up i have to go into the console and use the route command to add my gateway...and well this seems to be the only way i can get my connection to work so i was wondering if there were any place i could just enter this command and have it auto run it evertime i boot my pc...it becomes a real hassle to have to enter that thing every time :P...thanx for your time and any help that is offered.
 
Old 01-30-2002, 01:19 AM   #2
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
you can place the commands in a script in one of the /etc/rc.d boot scripts.
 
Old 01-30-2002, 07:16 AM   #3
RatRogue
LQ Newbie
 
Registered: Jan 2002
Location: TX
Distribution: RedHat 7.2
Posts: 4

Original Poster
Rep: Reputation: 0
Thanx

Thank you
 
Old 01-30-2002, 07:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you should just be able to specify the gateway in /etc/sysconfig/network on the GATEWAY= line.
 
  


Reply


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
"stalled" problem in " scp" command gentleshark Linux - Software 1 08-30-2005 03:08 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 04:28 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 03:11 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-22-2003 12:47 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration