Netmask settings in Solaris 11


 
Thread Tools Search this Thread
Operating Systems Solaris Netmask settings in Solaris 11
# 1  
Old 11-13-2013
Netmask settings in Solaris 11

I have net0 as my primary network interface in Solaris 11.
Code:
# ifconfig net0
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.53.77.154 netmask ffffff00 broadcast 10.53.77.255
        ether 0:10:e0:3a:c4:d8

Its netmask should be fffffc00, but whenever I am rebooting this server, it takes ffffff00.
Code:
 # cat /etc/netmasks | grep -v "#"
 #

This is same for other server, which is having good netmask and not changing its netmask. Anywhere else, I need to make changes ?
/etc/defaultrouter is also blank in both servers (working and non-working server)
# 2  
Old 11-13-2013
Wht don't you unplumb and plumb the interface with the settings?
Code:
ifconfig net0 10.53.77.154 netmask 255.255.252.0 broadcast 10.53.77.255 up

See what error it throws out..
# 3  
Old 11-13-2013
What does this show:
Code:
ipadm

# 4  
Old 11-13-2013
br1an, I can reset netmask with ifconfig, but it comes back to old value after reboot.
bartus11, here it is -->
Code:
 # ipadm
NAME              CLASS/TYPE STATE        UNDER      ADDR
lo0               loopback   ok           --         --
   lo0/v4         static     ok           --         127.0.0.1/8
   lo0/v6         static     ok           --         ::1/128
net0              ip         ok           --         --
   net0/v4        static     ok           --         10.53.77.154/24
   net0/v6        addrconf   ok           --         fe80::210:e0ff:fe3a:c4d8/10
net4              ip         ok           --         --
   net4/v4        static     ok           --         10.52.217.14/23
net8              ip         ok           --         --
   net8/v4        static     ok           --         169.254.182.77/24
 #

I was looking to fix it permanently.
# 5  
Old 11-13-2013
This should fix it:
Code:
ipadm set-addrprop -p prefixlen=22 net0/v4

This User Gave Thanks to bartus11 For This Post:
# 6  
Old 11-13-2013
It fixed the issue. Thanks for helping.
# 7  
Old 11-15-2013
Sorry for continuing old topic, but it was related to same server, so putting my question here.
As bartus suggested, I was able to fix issue. Now I have installed a non global zone on this server, which is having 3 IP's. But those coming in different netmask when I am rebooting server.
Code:
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        zone vtlplddp02
        inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.53.77.154 netmask fffffc00 broadcast 10.53.79.255
        ether 0:10:e0:3a:c4:d8
net0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        zone vtlplddp02
        inet 10.53.77.169 netmask ff000000 broadcast 10.255.255.255
net0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        zone vtlplddp02
        inet 10.53.77.170 netmask ff000000 broadcast 10.255.255.255
net0:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        zone vtlplddp02
        inet 10.53.77.171 netmask ff000000 broadcast 10.255.255.255
net4: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 10.52.217.14 netmask fffffc00 broadcast 10.52.219.255
        ether a0:36:9f:14:b8:4c
net8: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.182.255
        ether 2:21:28:57:47:17
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128
lo0:1: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        zone vtlplddp02
        inet6 ::1/128
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
        inet6 fe80::210:e0ff:fe3a:c4d8/10
        ether 0:10:e0:3a:c4:d8
net4: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 3
        inet6 ::/0
        ether a0:36:9f:14:b8:4c
net8: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 4
        inet6 ::/0
        ether 2:21:28:57:47:17
# ipadm
NAME              CLASS/TYPE STATE        UNDER      ADDR
lo0               loopback   ok           --         --
   lo0/v4         static     ok           --         127.0.0.1/8
   lo0/v6         static     ok           --         ::1/128
   lo0/zoneadmd.v4 static    ok           --         127.0.0.1/8
   lo0/zoneadmd.v6 static    ok           --         ::1/128
net0              ip         ok           --         --
   net0/v4        static     ok           --         10.53.77.154/22
   net0/v6        addrconf   ok           --         fe80::210:e0ff:fe3a:c4d8/10
   net0/zoneadmd.v4 static   ok           --         10.53.77.169/8
   net0/zoneadmd.v4a static  ok           --         10.53.77.170/8
   net0/zoneadmd.v4b static  ok           --         10.53.77.171/8
net4              ip         ok           --         --
   net4/v4        static     ok           --         10.52.217.14/22
net8              ip         ok           --         --
   net8/v4        static     ok           --         169.254.182.77/24
#

net0 is fine, other three virtual IP's are for non global zone. Earlier suggested command is not working, seems like I am giving some wrong syntax
Code:
# ipadm set-addrprop -p prefixlen=22 net0/zoneadmd.v4
ipadm: set-addrprop: prefixlen: Persistent operation on temporary object

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Creating A Solaris Zone - Unable to install - Are network settings required?

Hi i have created a solaris zone but have not yet connected any network cables for this new zone, can i set the zone up without running the command 'add net' and not adding an ip or physical interface? i tried to add dummy internet settings and get this zonecfg:coddr> add net... (4 Replies)
Discussion started by: newbiesolaris10
4 Replies

2. Solaris

Sun Solaris 10 FTP settings

Hi, I have a question, I have a legacy windows application that download files using FTP..The server previously was a Windows based server but it was upgraded to Sun Solaris 10. And that was when the application stopped working. After a long time of troubleshooting, I might have found that the... (4 Replies)
Discussion started by: brian12988
4 Replies

3. Solaris

Java Solaris 10 Zone settings

I have the following situation 1) Start JBoss Server 1 2) Within application - print as normal 3) Start JBoss Server 2 4) Printing STOPS on Server 1; Printing does NOT WORK on Server 2 Only solution is to stop Server 2; Restart Server 1 Then Printing works as normal. Doung a truss... (8 Replies)
Discussion started by: pmm
8 Replies

4. Solaris

Solaris 10 Speed and Duplex Settings: bge

Evening, I am attempting to change the speed and duplex settings on a single interface on a bge card on an m3000 SPARC server. Currently the settings are as follows: bge0 link: up speed: 1000 Mbps duplex: full bge1 link: up speed: 100 Mbps ... (13 Replies)
Discussion started by: brialt1
13 Replies

5. IP Networking

Netmask change online

Hi, I have a system which has been setup with a netmask of 255.255.252.0 . The customer says this netmask is wrong as is causing them some problems. They want me to change it too 255.255.254.0 So what would the command be for my bge0 port. Can I do this whilst its running the software ?... (1 Reply)
Discussion started by: Maillot Jaune
1 Replies

6. Solaris

Terminal settings from linux to solaris

When I log in from my linux workstation (CentOS4) to a solaris 8 server using SSH or telnet, the terminal settings don't seem to work well. When I tail or vi a file, I get a blank screen or no response, and I am no longer able to interact with the session. I have to type the escape sequence to... (2 Replies)
Discussion started by: tjlst15
2 Replies

7. Shell Programming and Scripting

script for netmask check

I want develop a script which should also check validity of netmask. e.g. /etc/netmasks 10.15.20.30 255.255.255.224 How can I check which IP adresses are valid for this netmask? I think the best is use logical operations. 224 is 1 1 1 0 0 0 0 0 so is valid from 10.15.20.31... (2 Replies)
Discussion started by: rhacodactylus
2 Replies

8. IP Networking

Netmask

Hi, On our new Solaris machine I have set up a network card with an IP of 10.44.12.102 , netmask of 255.255.252.0 and broadcast 19.44.15.255. These are to match current configuration on the other servers (running an older Solaris). However , after the machine is rebooted the ifconfig -a displays... (2 Replies)
Discussion started by: markdr011
2 Replies

9. Linux

Change IP, Netmask, Default GW on linux

How can I permenantly change the IP, netmask and default GW for Linux server on Apatchi. (2 Replies)
Discussion started by: salhoub
2 Replies

10. UNIX for Dummies Questions & Answers

Terminal settings on solaris

I am getting the following error when try to use vi vt100: Unknown terminal type Visual needs addressable cursor or upline capability : I have checked the TERM variable which is set to vt100. What could be the problem. This is on solaris 2.8 and i am doing telnet. (2 Replies)
Discussion started by: sssow
2 Replies
Login or Register to Ask a Question