Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Search Forums:



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-04-2004
Registered User
 

Join Date: Jun 2004
Location: Maputo - Mozambique
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
How do I change IP addresses in command mode...

How do I change IP addresses in command mode? i need to assign custom (non DHCP) addresses from the command line. Actually I also need to know how to change the subnet mask, the gateway and the primary, secondary, ... dns servers.
Sponsored Links
    #2  
Old 06-04-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Thanks: 0
Thanked 7 Times in 7 Posts
man ifconfig
man route

Cheers
ZB
Sponsored Links
    #3  
Old 06-04-2004
Perderabo's Avatar
Unix Daemon (Adminstrator Emeritus)
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,679
Thanks: 26
Thanked 238 Times in 148 Posts
We need to know specifically which unix system you are using. "uname -a" should tell you.

Running command like route and ifconfig can change things now, without a reboot.

Also we need to know if you want the changes to persist after a reboot. If so, this involves changes to the startup scripts.

The dns stuff is usually in /etc/resolv.conf.
    #4  
Old 06-04-2004
Registered User
 

Join Date: Jun 2004
Location: Maputo - Mozambique
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Yes i'd like changes to be persistent, and i am now running fedora core 1, but i'll post the kernel version later because i am planning to install freeBSD on another machine (just to learn)
Sponsored Links
    #5  
Old 06-05-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Thanks: 0
Thanked 7 Times in 7 Posts
Seeing as Fedora Core is (basically) a follow on from Red Hat, my response to the post
here about setting up persistent networking configuration on RedHat AS should help you out.

As Perderabo points out dns is configured in /etc/resolv.conf

Cheers
ZB
Sponsored Links
    #6  
Old 06-07-2004
Registered User
 

Join Date: Jun 2004
Location: Maputo - Mozambique
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thks... I'll try it...
Sponsored Links
    #7  
Old 06-09-2004
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Thanks: 0
Thanked 3 Times in 3 Posts
dont forget /etc/hosts if you change your server IP...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change time mode from BST to GMT tomjones HP-UX 3 04-01-2008 12:21 PM
RHAS command mode ? aqeelcu@hotmail Linux 1 05-03-2007 07:36 AM
su command in batch mode Rajesh Gohad Shell Programming and Scripting 3 01-25-2007 11:54 PM
Ip Addresses With Hardware Change golfs4us IP Networking 4 09-28-2006 02:59 PM
lp command with compress mode zita Linux 3 10-10-2005 05:25 AM



All times are GMT -4. The time now is 04:04 AM.