Add another ip address to an network interface and keep the setting after reboot

Hi,

We setup the another ip address to access the same server:

ge0 --interface for original ip
ge0:1 --interface for additional ip

we have /etc/hosts and /etc/hostname.ge0 for the the original ip; but every time after system reboot, we lost the second address and have to add it again. I found out we don't have a file named /etc/hostname.ge0:1 (this ip is listed in /etc/hosts), is this what we need to do now to create a file named hostname.ge0:1. Which one is the correct file name: hostname.ge0:1 or hostname:ge0:1? Thanks
ebi168Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
OtetelisanuConnect With a Mentor Commented:
edit/create a file /etc/hostname.ge0:1 with only a hostname, and add this hostname with ip address in hosts file, and it will work after reboot too
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.