2 hostname in one server

Hi,

We have one server originally named <SERVERA>.

Now we plan to put another network card & add another hostname <SERVERB>. Later, we will need to change hostname from <SERVERB> to <SERVERC>.

I know that we need to plumb a new ip & add to /etc/hosts & /etc/hostname.<interface>. Is there file i need to change some more?

Thanks.

is the new ip in the same network?

Yes, you will need to plumb each interface and configure each with IP address. You will have 2 files in /etc each called "hostname.<ip interface>" eg. hostname.ce0 and hostname.ce1
Each file will have a single line configuring the host name for that card.