how to set ip address for a solaris machine
Answers were Sorted based on User's Feedback
Answer / arun
#ifconfig <interface name> plumb
It will enable the interface kernal
#ifconfig <interface name> <ipaddress> netmask <sub netmask> up
IT will set the ipaddress
#route add default <gateway address>
To add the default gateway.
#ifconfig -a
It will list the entire thing like ip , mac, ..
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / len sumawang
#ifconfig <interface name> plumb <ip-address> netmask + broadcast +up
| Is This Answer Correct ? | 9 Yes | 4 No |
Answer / sindu
first we up the ip address using ifconfig <interface name>
plumb <ip-address> netmask <> up
then after we perminent the Ip address in
etc/hostname.interface. why because once we reeboot the
system
it will change ,,, so that we permnent the ip address in
/etc/hostname.interface
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / narayanamoorthy
#svcadm enable network/physical
ifconfig NIC card plumb
eg: #ifconfig hme0 plumb
ifconfig <NIC card> <IP address> netmask <netmask address>
up
eg: #ifconfig hme0 192.168.0.1 netmask 255.255.255.0 up
vi /etc/hosts
IPaddress hostname loghost
:wq!
vi /etc/hostname.<interface name eg:hme0>
hostname
:wq!
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / venkat
#ifconfig <nic card> plumb------to interface nic card
#ifconfig <nic card name> <ip adress> up
to make it perminent you need to modify in 4 fields
/etc/hosts
/etc/nodename
/etc/hostname.rtls0<interface name>
/etc/inet/ipnodes
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / baban
#ifconfig <interface name> plumb <ip-address> netmask <> up
do the appropriate changes in the following files
/etc/hosts & /etc/inet/hosts
/etc/hostname.xxn
| Is This Answer Correct ? | 1 Yes | 3 No |
How to add a root dg?
If you have multiple ethernet interfaces, how do you keep it from routing between them?
What is different between crontab and at command?
If the /var file system is full then what you will do.
How to unfreeze the svcgroup, (enable onl. & offl.)
How to start one node cluster.
Which command to lock the user Account?
please post few interview questions ? or any url related to solaris
How to find the versions?
I want to create a 30Gb of size in three different disks 10Gb,5Gb and 15Gb respectively in VxVm , how can we create it kindly explain step by step procedure.
If /etc/system file is corrupted how will you recover it , if we dont have a CDROM then what is the procedure?
2 Answers IBM, ITC Infotech, Tech Mahindra,
How to view the kernel (shmmax)paramiter value in solaris 10?