LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-26-2008, 01:37 AM   #1
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44
Blog Entries: 1

Rep: Reputation: 15
how to make my pc obtain an ip address automatically


hi,
I m using Fedora 6 and my "neat" has crashed. Can anyone suggest me a way to configure my interface through commanadline to obtain a dynamic ip address rather than static ip.I tried ifconfig but its for static settings.
Please help me out..

Thanks in advance!!!!
 
Old 09-26-2008, 01:57 AM   #2
mamtasahai1
Member
 
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52

Rep: Reputation: 15
Configure your file as:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
TYPE=Ethernet
ONBOOT=yes
PEERDNS=yes

#service network restart

It will obtain ip from dhcp server
 
Old 09-26-2008, 02:03 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
FC6 probably has the "system-config-network" utility you can use from the command line to make it even simpler.
 
  


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
To obtain partition's filesystem automatically in a program ghost_winged Linux - General 1 05-25-2008 01:20 PM
How to obtain another IP address from DHCP server ICO Linux - Networking 4 05-10-2006 01:03 PM
how to obtain mac address using sk_buff??? dogslayer Linux - Networking 2 04-14-2006 07:22 AM
how to obtain someone's ip address through netstat dr_zayus69 Linux - Networking 5 08-13-2005 11:06 PM
obtain dns server address automatically mspier Linux - Networking 10 01-11-2004 12:33 AM

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

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