LinuxQuestions.org
Register a domain and help support LQ
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 03-30-2007, 03:11 PM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
How to edit/change IP information in the terminal?


I don't know linux command prompt very well. I need to be able to change/edit the ethernet card information in the terminals ome how. If I just knew the commnad....
 
Old 03-30-2007, 03:21 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
for non-permanent changes you can use 'ifconfig'.
routes may be affected.
 
Old 03-30-2007, 03:23 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
The ifconfig command can help you. It has quite a lot of options, so to find out how to use it, read the manual by entering "man ifconfig" in the command line (or on google).
 
Old 03-30-2007, 03:34 PM   #4
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rtspitz
for non-permanent changes you can use 'ifconfig'.
routes may be affected.
I sure want to learn the terminal it reminds me of the DOS days. I want to change the eth0 permanetly.
 
Old 03-30-2007, 03:43 PM   #5
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
# vi /etc/sysconfig/network-scripts/ifgfc-eth0

The above, assumes that you have knowledge of using Vi to edit text files.

Last edited by Linville79; 03-30-2007 at 03:44 PM.
 
Old 03-31-2007, 03:11 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by kitek
I sure want to learn the terminal it reminds me of the DOS days. I want to change the eth0 permanetly.
Most distros have apps which can help you change network settings using a terminal or GUI app. If your distro dos not provide a text or GUI based app to change network settings, you can edit the networking scripts by yourself. The exact name and location of the scripts vries between distros and since you have not mentioned which distro you are using we can't give you accurate details.
 
Old 03-31-2007, 03:21 AM   #7
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 61
Quote:
Originally Posted by Linville79
# vi /etc/sysconfig/network-scripts/ifgfc-eth0

The above, assumes that you have knowledge of using Vi to edit text files.
It is
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
 
Old 03-31-2007, 03:37 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
Originally Posted by shrikant.odugoudar
It is
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
If your distro is SuSE linux, the ifcfg-<dev> scripts are located in /etc/sysconfig/network/. Other distro's have a script with ifconfig or ip commands which set many options directly. Like Reddazz said, you should post which distro you are using, or better yet, put it in your profile.
 
Old 04-02-2007, 08:24 AM   #9
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
Quote:
Originally Posted by shrikant.odugoudar
It is
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Oops... typo, my bad.
 
  


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
Extracting terminal/console information Woodsman Slackware 6 11-12-2005 01:34 PM
edit quotes from konsole terminal trinoo Slackware 6 02-02-2005 10:26 AM
Terminal Information Files or directory ankush174 Red Hat 1 07-02-2004 03:40 PM
how to edit harddrive information Jalalabee General 2 01-19-2004 01:59 PM
getting information from a webpage in terminal charlie123 Linux - Newbie 1 01-31-2003 06:58 AM


All times are GMT -5. The time now is 10:52 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