Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-04-2008, 11:42 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 26

Rep: Reputation: 15
Network configuration


Every time I start my computer I must configure my network with the following commands :

ifconfig eth0 "ip address" netmask "mask"
route add default gw "gateway"

How can I make it be done automatic instead type it every time ?

Thanks in advance.
Old 10-04-2008, 11:50 AM   #2
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Every distribution has a GUI application for doing that permanently.
Old 10-04-2008, 12:01 PM   #3
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
To do that from the command line every time, you could try:

1. adding those commands to rc.local in /etc
2. adding those commands to a script in your home directory and executing it whenever you wanted
3. adding those commands to .bashrc in your home directory and assigning a command to the series of statements


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
Network Configuration shrry8 Linux - Networking 18 09-22-2008 05:53 AM
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 07:48 AM
network configuration binary_dreamer Debian 4 06-26-2006 10:41 AM
Network Configuration in Debian (laptop network card) legendaryhwk Linux - Networking 6 04-06-2006 04:59 AM
Network Configuration Hanging in FC4 After Using Wireless Network Wizard Trip in VA Linux - Wireless Networking 2 07-18-2005 09:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:11 AM.

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