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
network islam UNIX for Advanced & Expert Users 4 06-30-2004 10:52 PM
private network to private network gateway norsk hedensk IP Networking 2 12-05-2002 01:25 PM
tcp/ip network edw1ns IP Networking 10 08-29-2002 09:57 AM
network? dmb111598 UNIX for Dummies Questions & Answers 2 10-25-2001 03:34 PM
network out turtle IP Networking 4 05-11-2001 02:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-28-2001
jdevarie jdevarie is offline
Registered User
  
 

Join Date: May 2001
Location: Boston
Posts: 4
Question Network Ip

Hello again. Neo, thanks for your last reply.
I have a new question. How can I re-configure the host name and IP address information attached to my NIC? I remember seeing a command posted here that would cause the system to re-boot and require the information to be entered but I do not see it anymore.

Any help is appreciated.

G
  #2 (permalink)  
Old 05-29-2001
alwayslearningunix
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
ifconfig will configure interface cards for you, depending on your flavour of UNIX. Generally the most simple syntax is:

ifconfig <interface name> <parameters_to_be_set> up/down

Run the man page on ifconfig, it's pretty simple. If you're running HP-UX the lanadmin and lanscan utilities are very useful for taking a look at interface cards on the system, and you will need to use them to obtain the Network Management ID number of the card to pass to the ifconfig command.

If not running HP-UX a man on ifconfig should provide you with all the information or pointers where you can get it.

Hope this helps.

Regards.
  #3 (permalink)  
Old 05-29-2001
alwayslearningunix
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Sorry...I used a tag syntax in my last post which meant some of it got lost...the most simple ifconfig syntax is:

ifconfig [interface_name] [parameters_to_set] up/down

Regards.
  #4 (permalink)  
Old 05-29-2001
98_1LE 98_1LE is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
ifcongig will work, but only until the box is rebooted. Then it will revert back. If you want to make the change permanant, you also need to edit the /etc/hosts & /etc/hostname.{interface} and possibly the /etc/nodename files under Solaris. The files are probably different under another flavor of UNIX. If you edit these files and reboot, you don't need to do the ifconfig command.
  #5 (permalink)  
Old 05-29-2001
mib mib is offline
Registered User
  
 

Join Date: Jan 2001
Location: Calicut
Posts: 228
If your machine is Linux:

Edit /etc/sysconfig/network. change local hostname.

ifconfig will work. but to make the change persistent you must edit /etc/sysconfig/network-scripts/ifcfg-eth0 (your interface).

Change the appropriate hostname aliases in /etc/hosts

To take effect, this settings you can restart networking using /etc/rc.d/init.d/network restart command.


HTH

  #6 (permalink)  
Old 05-29-2001
alwayslearningunix
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Apologies for not including details of how to make the changes permanent on HP-UX, overlooked that...

The files you need for the hostname, IP address, gateway and subnet mask on interface cards is located in /etc/rc.config.d/netconf.

This file will also contain details on the default gateway for the machine, and you can have as many entries for as many cards as are in the machine, simply increment the instance number by one.

Regards.
  #7 (permalink)  
Old 05-29-2001
jdevarie jdevarie is offline
Registered User
  
 

Join Date: May 2001
Location: Boston
Posts: 4
Thank you all for the replies. My machine is running Solaris 8. I will be working with your suggestions. Thanks again all.

JDevarie
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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