[BlueOnyx:14010] Re: Problem setting interface alias netmask to 255.255.255.255

Michael Stauber mstauber at blueonyx.it
Wed Nov 13 07:21:14 -05 2013


Hi Menno,

> Well they are saying that if I change the alias ips to have netmask
> 255.255.255.255 then the problem is resolved. But Blueonyx GUI wont let me
> set that.
> 
> To be honest I have never got my head round the netmask stuff, but they
> say they force all their other clients to do this otherwise their routers
> get flooded with unnecessary arp who-has requests.

That doesn't really inspire confidence in your provider. :p

The new BlueOnyx GUI that's currently in development will allow to set
the netmask to 255.255.255.255. But the old one doesn't. I can confirm that.

Which netmasks are allowed is defined in a regular expression in
/usr/sausalito/schemas/basetypes.schema and it has this for the
"netmask" rule:

<!-- netmask can either be a number from 1 to 32 or a dot-quaded ip
mask: -->
<typedef name="netmask" type="re"

data="^(([1-9])|([12][0-9])|(3[0-2])|((0|128|192|224|240|248|252|254|255)\\.0\\.0\\.0)|255\\.((0|128|192|224|240|248|252|254|255)\\.0\\.0)|255\\.255\\.((0|128|192|224|240|248|252|254|255)\\.0)|255\\.255\\.255\\.((0|128|192|224|240|248|252|254|255)))$"
/>

As you can see, the last regular expression also covers something ending
in 255. But it doesn't work.

So please do this:

Login to your server as "admin" by SSH. Use the command "su -" to gain
"root" access.

Start this program: /usr/sausalito/bin/cceclient

It allows you to manipulate the CODB database backend of the GUI.

Type this command:

find Network

Your screen will then look somewhat like thus:

[root at bx5cooker schemas]# /usr/sausalito/bin/cceclient
100 CSCP/0.80
200 READY
find Network
104 OBJECT 34
104 OBJECT 17

As you can see, in my example two results were returned. The Object with
the ID 34 and the Object with the ID 17.

We then take a look at these objects. For that we use the "get" command
and the Object ID:

get 34
102 DATA mac = ""
102 DATA real = "0"
102 DATA NAMESPACE = ""
102 DATA bootproto = "none"
102 DATA CLASSVER = "1.0"
102 DATA CLASS = "Network"
102 DATA netmask = "255.255.255.254"
102 DATA ipaddr = "127.0.0.12"
102 DATA refresh = ""
102 DATA device = "eth0:0"
102 DATA OID = "34"
102 DATA enabled = "1"
201 OK

Ok, we lucked out. This is our "eth0:0" Interface alias. It has the
netmask "255.255.255.254" at this time and we want to change it to
"255.255.255.255" instead. For that we use the SET command:

set 34 netmask = "255.255.255.255"

Confirm the transaction went through by looking at the Object again with
the "get" command:

get 34
102 DATA mac = ""
102 DATA real = "0"
102 DATA NAMESPACE = ""
102 DATA bootproto = "none"
102 DATA CLASSVER = "1.0"
102 DATA CLASS = "Network"
102 DATA netmask = "255.255.255.255"
102 DATA ipaddr = "127.0.0.12"
102 DATA refresh = ""
102 DATA device = "eth0:0"
102 DATA OID = "34"
102 DATA enabled = "1"
201 OK

Press CTRL+C to exit cceclient and check also with /sbin/ifconfig:

[root at bx5cooker schemas]# /sbin/ifconfig
eth0      Link encap:Ethernet  Hardware Adresse 52:54:00:70:5E:36
          inet Adresse:208.67.251.190  Bcast:208.67.251.255
Maske:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3914 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2279 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:513984 (501.9 KiB)  TX bytes:1210127 (1.1 MiB)

eth0:0    Link encap:Ethernet  Hardware Adresse 52:54:00:70:5E:36
          inet Adresse:127.0.0.12  Bcast:127.0.0.12  Maske:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:3007 (2.9 KiB)  TX bytes:3007 (2.9 KiB)

See: That worked. And the GUI will also show the correct values now.

You will have to do this steps for all Network Objects of yours.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list