Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Search Forums:



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-11-2001
Registered User
 

Join Date: Jul 2001
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
set ip address

I'm new to Solaris.
How do I set a server's IP address?

Thanks in advance.
Sponsored Links
    #2  
Old 07-11-2001
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 10,322
Thanks: 205
Thanked 375 Times in 157 Posts
ifconfig

The ifconfig command binds IP addresses to network interfaces.
Sponsored Links
    #3  
Old 07-12-2001
Registered User
 

Join Date: Jun 2001
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
If you wanto to set ip address and keep this address after boot, edit your /etc/hostname.interface file, where interface is the interface you want to bind the address. If this file contains the hostname of your system you can also change the ip address in /etc/hosts file.
Note: if you have more than one NIC, there must be the same number of /etc/hostname.interface files as NICs you have. By default, solaris only creates the hostname.interface file for the first NIC in your system. If you want to bind an IP addres to another card, you must put the IP address in these files (/etc/hostname.interface)

Regards

HTT
    #4  
Old 07-12-2001
Registered User
 

Join Date: Jun 2001
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
I missed that... the procedure I sent before must be used if you want to change the servers local IP address, or if you want to bind a new IP address to another NIC. If you want to change the ip resolution of a server's name, as NEO said, change it in the DNS server.

HTT
Sponsored Links
Closed Thread

« Network??? | statd »
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
SCO get MAC Address jcarter2333 Programming 11 02-08-2007 08:51 AM
How to Achive IP address through MAC(Ethernet) address krishnacins IP Networking 3 08-29-2005 08:45 PM
ce0 and ce1 have the same mac address BG_JrAdmin Solaris 2 07-08-2005 07:30 PM
network address and broadcast address? pnxi UNIX for Dummies Questions & Answers 7 11-10-2003 10:29 PM
IP address krishna UNIX for Advanced & Expert Users 10 03-20-2002 04:36 AM



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