![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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. |
|
||||
|
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.
|
|
||||
|
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 |
|
||||
|
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. |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|