How to persistently set a different subnet mask on different interfaces on 2.6
Posted on 2003-04-01
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?