Skip to main content
Tweeted twitter.com/StackUnix/status/706754593821171713
added 264 characters in body
Source Link
hilcharge
  • 359
  • 1
  • 4
  • 16

On a Solaris local zone, what is the default netmask?

I have a blank /etc/netmasks file, but if I run ifconfig I can see that the netmask is set to ffffff00 .

[username@servername]# /usr/sbin/ifconfig -a
lo0:10: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ifname5:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
        inet 10.56.20.179 netmask ffffff00 broadcast 10.56.20.255

How is the subnet mask set on a reboot if the netmasks file is blank? Is this based on something in the global zone?

Similarly (??), where is the default subnet mask set if the ifconfig command is used to set the address for an interface and the netmask is not explicitly set in the command?

clarification I want to check the configured subnet mask for non-global zones based on static configuration files, for purpose of predicting behavior on reboot or failover. What file(s) has this information?

As schilly mentioned, the example I gave is probably not typical setup for 10.x.x.x network, but I think someone (more experienced than me) configured its settings on purpose and I am trying to make inventory of the network settings for all the non-global zones.

On a Solaris local zone, what is the default netmask?

I have a blank /etc/netmasks file, but if I run ifconfig I can see that the netmask is set to ffffff00 .

[username@servername]# /usr/sbin/ifconfig -a
lo0:10: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ifname5:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
        inet 10.56.20.179 netmask ffffff00 broadcast 10.56.20.255

How is the subnet mask set on a reboot if the netmasks file is blank? Is this based on something in the global zone?

Similarly (??), where is the default subnet mask set if the ifconfig command is used to set the address for an interface and the netmask is not explicitly set in the command?

clarification I want to check the configured subnet mask for non-global zones based on static configuration files, for purpose of predicting behavior on reboot or failover. What file(s) has this information?

On a Solaris local zone, what is the default netmask?

I have a blank /etc/netmasks file, but if I run ifconfig I can see that the netmask is set to ffffff00 .

[username@servername]# /usr/sbin/ifconfig -a
lo0:10: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ifname5:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
        inet 10.56.20.179 netmask ffffff00 broadcast 10.56.20.255

How is the subnet mask set on a reboot if the netmasks file is blank? Is this based on something in the global zone?

Similarly (??), where is the default subnet mask set if the ifconfig command is used to set the address for an interface and the netmask is not explicitly set in the command?

clarification I want to check the configured subnet mask for non-global zones based on static configuration files, for purpose of predicting behavior on reboot or failover. What file(s) has this information?

As schilly mentioned, the example I gave is probably not typical setup for 10.x.x.x network, but I think someone (more experienced than me) configured its settings on purpose and I am trying to make inventory of the network settings for all the non-global zones.

added 214 characters in body
Source Link
hilcharge
  • 359
  • 1
  • 4
  • 16

On a Solaris local zone, what is the default netmask?

I have a blank /etc/netmasks file, but if I run ifconfig I can see that the netmask is set to ffffff00 .

[username@servername]# /usr/sbin/ifconfig -a
lo0:10: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ifname5:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
        inet 10.56.20.179 netmask ffffff00 broadcast 10.56.20.255

How is the subnet mask set on a reboot if the netmasks file is blank? Is this based on something in the global zone?

Similarly (??), where is the default subnet mask set if the ifconfig command is used to set the address for an interface and the netmask is not explicitly set in the command?

clarification I want to check the configured subnet mask for non-global zones based on static configuration files, for purpose of predicting behavior on reboot or failover. What file(s) has this information?

On a Solaris local zone, what is the default netmask?

I have a blank /etc/netmasks file, but if I run ifconfig I can see that the netmask is set to ffffff00 .

[username@servername]# /usr/sbin/ifconfig -a
lo0:10: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ifname5:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
        inet 10.56.20.179 netmask ffffff00 broadcast 10.56.20.255

How is the subnet mask set on a reboot if the netmasks file is blank? Is this based on something in the global zone?

Similarly (??), where is the default subnet mask set if the ifconfig command is used to set the address for an interface and the netmask is not explicitly set in the command?

On a Solaris local zone, what is the default netmask?

I have a blank /etc/netmasks file, but if I run ifconfig I can see that the netmask is set to ffffff00 .

[username@servername]# /usr/sbin/ifconfig -a
lo0:10: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ifname5:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
        inet 10.56.20.179 netmask ffffff00 broadcast 10.56.20.255

How is the subnet mask set on a reboot if the netmasks file is blank? Is this based on something in the global zone?

Similarly (??), where is the default subnet mask set if the ifconfig command is used to set the address for an interface and the netmask is not explicitly set in the command?

clarification I want to check the configured subnet mask for non-global zones based on static configuration files, for purpose of predicting behavior on reboot or failover. What file(s) has this information?

Source Link
hilcharge
  • 359
  • 1
  • 4
  • 16

default netmask in Solaris

On a Solaris local zone, what is the default netmask?

I have a blank /etc/netmasks file, but if I run ifconfig I can see that the netmask is set to ffffff00 .

[username@servername]# /usr/sbin/ifconfig -a
lo0:10: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ifname5:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
        inet 10.56.20.179 netmask ffffff00 broadcast 10.56.20.255

How is the subnet mask set on a reboot if the netmasks file is blank? Is this based on something in the global zone?

Similarly (??), where is the default subnet mask set if the ifconfig command is used to set the address for an interface and the netmask is not explicitly set in the command?