IP configuration in Solaris

Hi Experts,

  • I have below two queries, please suggest.
    1) I have 2 IP's in my server and want to remove 1 of the ip, so which are the files i need to modify as of my knowledge we need to modify (1) /etc/hosts remove the unwanted ip
    (2) /etc/hostname.interface_name
    Please suggest if any thing more i need to modify.

2) when i run "ifconfig -a" on the global server it shows x no of interfaces and vertual interfaces, how to identify which is the global server ip or interface.

Please advice, Thanks in advance.

To stop Solaris configuring the interface at boot time remove the file /etc/hostname.<interface>

/etc/hosts is purely a "lookup" table. It is used to lookup the ip address of the hostname it finds in /etc/hostname.<interface> Nothing more than that.

To see what interfaces are being used by global and/or zones use the zoneadm command.

Remember that an ip interface can be shared between global and zone OR used exclusively by a zone.

1 Like

Thaks for the prompt reply,

My second question i still have a confusion, i mean i have a global server and it contains 4 zones, i want to find out what is the ip address assigned to global server or what interface it is using. Thanks in Advance.

ifconfig -a

will tell which virtual interfaces are placed into non global zones with the "zone" keyword.