Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-10-18
1
Medium Priority
?
541 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:ebi168
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
Otetelisanu earned 1000 total points
ID: 12341268
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

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question