Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

multiple ip addresses

Posted on 2006-10-21
2
Medium Priority
?
276 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 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

719 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