The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-04-2004
Registered User
 

Join Date: Jun 2004
Location: Maputo - Mozambique
Posts: 4
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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-04-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
man ifconfig
man route

Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 06-04-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,042
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.
Reply With Quote
  #4 (permalink)  
Old 06-04-2004
Registered User
 

Join Date: Jun 2004
Location: Maputo - Mozambique
Posts: 4
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)
Reply With Quote
  #5 (permalink)  
Old 06-05-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
Reply With Quote
  #6 (permalink)  
Old 06-07-2004
Registered User
 

Join Date: Jun 2004
Location: Maputo - Mozambique
Posts: 4
Thks... I'll try it...
Reply With Quote
  #7 (permalink)  
Old 06-09-2004
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
dont forget /etc/hosts if you change your server IP...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 07:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66