Solved

multiple ip addresses

Posted on 2006-10-21
2
267 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netstat -a in AIX unix 8 51
Unix How to Bulk Remove Multiple Directories from FileSystem 10 82
dot directory in FreeBSD??? 4 90
Adding a continue option in a script 9 65
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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 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.:

685 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