LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-03-2005, 01:05 PM   #1
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Rep: Reputation: 30
Configuring Network Card


How do I renew my ip address with Linux command prompt?

Also, I typed dhcpcd -s and I don't know what that did, but I don't even see my eth0 now?
 
Old 06-03-2005, 07:20 PM   #2
fetsh
LQ Newbie
 
Registered: Aug 2004
Location: China
Posts: 7

Rep: Reputation: 0
just type 'ifconfig',then you will see the state of your eth0 or eht0:1 or ...
 
Old 06-03-2005, 09:31 PM   #3
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
Yep, I see the state, but how do I change it? For example if I need to be able to release the IP or set it to a specific address or something?
 
Old 06-04-2005, 12:10 AM   #4
rk_carol
LQ Newbie
 
Registered: Jan 2003
Location: Bangalore
Distribution: Redhat 9.0
Posts: 16

Rep: Reputation: 0
ifconfig ethX <new IP Address> would change the IP address for the card ( statically ), for as long as the machine is running. If you wish to reboot, the IP address would be assigned dynamically or statically.

For static assignment, you can use netconfig or redhat-config-network.

For dynamic assignment, you can use dhclient.

In both cases, note the location of the file where your new IP address gets stored, which is /etc/sysconfig/network-scripts/ifcfg-ethX

You can modify the script directly and re-run the network initialization script : service network restart.

V. Radhakrishnan
 
Old 06-04-2005, 10:15 AM   #5
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
Thank you so much V. Radhakrishnan for that excellent post!
 
  


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
Configuring a linksys wireless network card bignose SUSE / openSUSE 6 12-17-2005 04:10 PM
Configuring IP to network card Rig24 Linux - Newbie 3 04-29-2004 11:02 AM
Help with detecting and configuring network card kalikoder Linux - Networking 2 01-17-2004 09:14 PM
Problems configuring network card vhii Linux - Networking 5 10-02-2003 05:21 PM
configuring network card alkee Linux - Networking 3 02-12-2002 10:00 PM

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

All times are GMT -5. The time now is 04:53 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
Open Source Consulting | Domain Registration