Solved

multiple ip addresses

Posted on 2006-10-21
2
271 Views
Last Modified: 2013-12-27
I've added some ip address such as

added to the /etc/hosts file

10.1.3.10     server1
10.1.3.11     server2
10.1.3.12     server3
10.1.3.13     server4
10.1.3.14     server5
10.1.3.15     server6

I plumed the interface and brought them up.

How do I set these so they come back up when reboot since these use a different netmask and broadcast than my regular IP address

I can add hostname files such as

/etc/hostname.hme0


question I have is how will it know the netmask and broadcast I need to use with these such as

255.255.255.0   and  10.1.3.255

is there a way to add this to the netmask file?

Thanks,

0
Comment
Question by:bt707
[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
2 Comments
 
LVL 10

Accepted Solution

by:
Nukfror earned 500 total points
ID: 17781219
Just setup a /etc/hostname.hme0:1 as:
10.1.3.10

Setup /etc/hostname.hme0:2 as:
10.1.3.11

and so on.

Generally you setup the netmask in /etc/netmasks:

10.1.3.0 255.255.255.0
0
 

Author Comment

by:bt707
ID: 17782101
Thanks Nukfror
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

626 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