?
Solved

How to persistently set a different subnet mask on different interfaces on 2.6

Posted on 2003-04-01
4
Medium Priority
?
511 Views
Last Modified: 2013-12-27
Hey all,

  I have a few 4500's running 2.6 that have multiple NIC's. All of the NICs are on a flat class B network.  Veritas VCS is being added to the boxes and that product requires that it have exclusive control over entire subnets.  Therefore I need to carve off a new class C on two of the interfaces, but don't want to change the masks on the others.  I can change the masks and broadcast settings of two of the interfaces on the fly with ifconfig commands, but a reboot will reset them to the default class B settings.  My question is, what is the correct way to change the settings on these interfaces on Solaris 2.6.  I don't know of a file that has per-interface settings (like Linux does).  I can always make a custom RC script, but that seems a little inelegant. Any advice on the proper way to do this?
0
Comment
Question by:rwatters
[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
4 Comments
 
LVL 2

Accepted Solution

by:
soupdragon earned 300 total points
ID: 8249971
/etc/netmasks

e.g.

# Network   Mask
#
10.0.0.0    255.255.255.0
0
 
LVL 38

Expert Comment

by:yuzh
ID: 8249986
Well, you can put the commands in a shell script (sh), and put the script in /etc/rc2.d, name it soemthing like S42setnic (or other names, just make sure that the filename is starting with an upper case "S", the file permissions can be the same as the other startup script in the same dir).

Make sure that you put, the following line as the first line of your script:

#!/sbin/sh
# put all you ifconfig commands here.


0
 
LVL 18

Expert Comment

by:liddler
ID: 10476896
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by soupdragon

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

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…
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 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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

765 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