> Does anyone know how to change the subnet mask for solaris on a sun machine?
man netmasks
ry
--
"Unix: The Solution to the W2K Problem."
> Does anyone know how to change the subnet mask for solaris on a sun machine?
man netmasks
ry
--
"Unix: The Solution to the W2K Problem."
--
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Don't bother cc'ing followups to me.
vi /etc/netmasksQuote:>Does anyone know how to change the subnet mask for solaris on a sun machine?
also, ifconfig <interface> netmask <newnetmask>
>> Does anyone know how to change the subnet mask for solaris on a
>> sun machine?
LeeNMI> vi /etc/netmasks
LeeNMI> also, ifconfig <interface> netmask <newnetmask>
I've found that just using ifconfig, and putting it in my startup
files if need be, is *much* easier than dealing with /etc/netmasks.
I've been working with the Internet and with Solaris for several years
now, and I still can't quite figure out what's supposed to be in
/etc/netmasks...
------Scott.
Prior to Solaris 2.6, which supports VLSM and CIDR, /etc/netmasks is prettyQuote:>I've found that just using ifconfig, and putting it in my startup
>files if need be, is *much* easier than dealing with /etc/netmasks.
>I've been working with the Internet and with Solaris for several years
>now, and I still can't quite figure out what's supposed to be in
>/etc/netmasks...
172.16.0.0 255.255.255.0
It's only used by ifconfig when "netmask +" is used to get the default mask
for an interface; it's not used for remote networks.
In 2.6 the first column can contain actual subnet addresses; it will look
for the most specific one that matches your address, and use the
corresponding netmask. I don't have 2.6 handy, so I haven't actually
played with it and learned all the ways it's used.
--
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Don't bother cc'ing followups to me.
Change '/etc/netmasks' and reboot. You can also use '/sbin/ifconfig'.Quote:> Does anyone know how to change the subnet mask for solaris on a sun machine?
Lance Woodson
> > Does anyone know how to change the subnet mask for solaris on a sun machine?
> Change '/etc/netmasks' and reboot. You can also use '/sbin/ifconfig'.
> Lance Woodson
A reboot is _not_ necessary. This is Unix, you only reboot as a last
ditch effort. The fix is in 2 parts. I call them "Fix it now" and
"Fix it forever". You use both to avoid the reboot.
Fix it now:
ifconfig <interface> netmask <value> broadcast +
Fix it forever:
Option A:
Tweak /etc/netmasks file as appropriate
Option B:
Add a file /etc/rc2.s/S73localnet and add the
command from the "Fix it now" step.
--
************************************************************
* A goofy Unix SA working for a large computer equipment *
* manufacturer and services provider. Opinions expressed *
************************************************************
1. How can I change Subnet Mask?
How can I change Subnet Mask in x86-Solaris- 2.6? Thanks.
4. bind() fails when running program second time
5. Changing IP addresses and subnet masks on Solaris 5.5.1 - is this okay?
7. changing IP,Subnet MASK address and GATEWAYaddress
9. Is 1 bit subnet mask supported in linux
10. Finding out the subnet mask
11. IP subnet mask in unisgned long format
12. subnet mask
13. Need to modify subnet mask on DG