Lindy MC5-IP manual Calculating the mask for IP access control, Single locations, All locations

Page 99

Calculating the mask for IP access control

The IP access control function uses a standard IP address and a net mask notation to specify both single locations and ranges of addresses. In order to use this function correctly, you need to calculate the mask so that it accurately encompasses the required address(es).

Single locations

Some of the simplest addresses to allow or deny are single locations. In this case you enter the required IP address into the ‘Network/Address’ field and simply enter the ‘Mask’ as 255.255.255.255 (255 used throughout the mask means that every bit of the address will be compared and so there can only be one unique address to match the one stated in the ‘Network/Address’ field).

All locations

The other easy setting to make is ALL addresses, using the mask 0.0.0.0 As standard, the IP access control section includes the entry: +0.0.0.0/0.0.0.0 The purpose of this entry is to include all IP addresses. It is possible to similarly exclude all addresses, however, take great care not to do this as you instantly render all network access void. There is a recovery procedure should this occur.

Address ranges

Although you can define ranges of addresses, due to the way that the mask operates, there are certain restrictions on the particular ranges that can be set. For any given address you can encompass neighbouring addresses in blocks of either 2, 4, 8, 16, 32, 64, 128, etc. and these must fall on particular boundaries. For instance, if you wanted to define the local address range:

192.168.142.67 to 192.168.142.93

The closest single block to cover the range would be the 32 addresses from:

192.168.142.64 to 192.168.142.95.

The mask needed to accomplish this would be: 255.255.255.224

When you look at the mask in binary, the picture becomes a little clearer. The above mask has the form: 11111111.11111111.11111111.11100000

Ignoring the initial three octets, the final six zeroes of the mask would ensure that the 32 addresses from .64 (01000000) to .95 (01011111) would all be treated in the same manner. See Net masks - the binary explanation for details.

When defining a mask, the important rule to remember is:

There must be no ‘ones’ to the right of a ‘zero’.

For instance, (ignoring the first three octets) you could not use a mask that had 11100110 because this would affect intermittent addresses within a range in an impractical manner. The same rule applies across the octets. For example, if you have zeroes in the third octet, then all of the fourth octet must be zeroes.

The permissible mask values (for all octets) are as follows:

Mask octet

Binary

Number of addresses encompassed

255

11111111

1 address

254

11111110

2 addresses

252

11111100

4 addresses

248

11111000

8 addresses

240

11110000

16 addresses

224

11100000

32 addresses

192

11000000

64 addresses

128

10000000

128 addresses

0

00000000

256 addresses

If the access control range that you need to define is not possible using one address and one mask, then you could break it down into two or more entries. Each of these entries could then use smaller ranges (of differing sizes) that, when combined with the other entries, cover the range that you require.

For instance, to accurately encompass the range in the earlier example:

192.168.142.67 to 192.168.142.93

You would need to define the following six address and mask combinations in the IP access control section:

Network/address entry

Mask entry

 

192.168.142.67

255.255.255.255

defines 1 address (.67)

192.168.142.68

255.255.255.252

defines 4 addresses (.68 to .71)

192.168.142.72

255.255.255.248

defines 8 addresses (.72 to .79)

192.168.142.80

255.255.255.248

defines 8 addresses (.80 to .87)

192.168.142.88

255.255.255.252

defines 4 addresses (.88 to .92)

192.168.142.93

255.255.255.255

defines 1 address (.93)

   



98

Image 99 Contents
 MC5-IP KVM SwitchContents Further information Index CAM formats Local user One user can be connected directly to the MC5  Many computersFront panel buttons MC5 features front and rearIndicators Power control port Upgrade port Modem port IP models onlySwitc What’s in the box What you may additionally needRack brackets Mounting   ConnectionsLocal user To connect the local user portMC5 rear panel Remote user via User Station Cable lengths for remote user locationsTo connect a remote user Global user IP network port To connect the Global user IP network portIP network link Access Module To connect a computer systemCategory 5, 5e or Cable from CAM Modem/ISDN port To connect a modem or Isdn adapterMC5 rear panel Cable from modem Or Isdn adapter Power in connection To connect the power supplyOutput lead from Power adapter To connect and address the switch boxes Power control portCascading multiple units See alsoCascade tree How cascade connections operate 43 41 Addressing computers in a cascadeConnecting MC5 units in cascade Tips for successful cascadingTo connect units in cascade Using cascaded computers Testing specific links to cascaded computersTo test a specific link Slave monitor Master monitor Multiple video head connectionsSlave MC5 Master MC5Overall initial configuration ConfigurationHotkeys Configuration menusTo access the configuration menu local and remote users To access the configuration menu global usersTo set an Admin password General security and configuration stepsConfiguration menus layout To enable general securityCross markers indicate which Access to all computers Press Access to no computers PressRegistering users edit user list To create/edit user accountsTips when creating/editing computer entries Registering computers edit computer listTo create/edit computer entries Video compensation See Remote user skew adjustment for detailsCurrently selected cable length Computer video compensationTo apply computer video compensation Compensation will not be appliedIf the image controls cannot provide a crisp image Remote user video compensationTo display a suitable high contrast image To apply remote user video compensationCreating a skew test pattern Remote user skew adjustmentTo use skew adjustment Using the supplied skew patternConfiguration mode and permanently save all settings To define an autoscan list To select an autoscan modeAutoscanning To select an autoscan periodPreparations for configuration save/load Saving and restoring configuration settingsWhat to do if the Admin password has been forgotten To reset MC5 modelsTo reset the MC5-IP models Recognising an IntelliMouse-style mouse Which restore setting do I use?To restore mouse operation when hot plugging Hot plugging and mouse restorationInitial IP configuration To use the initial IP-configuration sequenceTo configure IP-specific settings To configure IP details from a global user location IP configuration by global userEncryption settings MC5-IP encryption settingsViewer encryption settings Networking issues Positioning the MC5-IP in the network   Firewall/router address Port settingsPlacing the MC5-IP behind a router or firewall AddressingDNS addressing To discover a DHCP-allocated IP addressPlacing the MC5-IP alongside the firewall Ensuring sufficient securityPorts To control two or more ports simultaneously Power switching configurationPower control sequences To configure the power sequences for each host computerKvmadmin -setusers users.csv Kvmadmin utilityKvmadmin command ip address parameters Kvmadmin -getconfig kvm1.cfgTo use the KVM Firmware Uploader utility Performing upgradesItems required to use the upgrade utility Upgrading MC5 models and CAMsCommence the upgrade Select the items to be upgradedSelect the upgrade file to be used Where Vxxx is the upgrade file version numberUpgrading MC5-IP models To upgrade MC5-IP modelsMC5-IP models Accessing the MC5Front panel controls MC5 modelsSelecting a computer Local and remote user accessTo gain access as a local or remote user To select a computer using the front panel controlsKeep Pressed down until all other Numbers have been entered To select a computer using hotkeysStandard hotkeys Above or for even longer cascaded computersTo select a computer using the on-screen menu To select a computer using mouse buttonsTo select a computer using mouse buttons Advanced method Logging in and out Selecting cascaded computersConfirmation box Routing status To change banner colours or disable the bannerTo use the Routing status feature Reminder bannerPower switching via configuration menu To switch a computer on or offUser preferences and functions Global user access Enter the MC5 address here and click OK Global user access via VNC viewerTo access via the VNC viewer To download the VNC viewer 1 Open your Web browserTo access via your web browser Global user access via web browserUsing the viewer window When using the viewer windowMenu bar Configure Mouse pointersTo select a host Re-synchronise mouse Access mode shared/privatePower switching via viewer Auto calibrateResync Mouse Single Mouse ModeControls Mouse ControlKeyboard Control Info KVM switch menuWhen entering codes Video SettingsSetting the Threshold manually Using automatic configurationsIncreased by 50% when a slow link is detected Detect such noise and adjust the threshold accordinglyTo enter a port number in a Web browser Access via dial up modem or Isdn linkIf you need to enter a port number To initiate a dial up linkLinux Viewer encryption settingsSupported web browsers WindowsGetting assistance TroubleshootingTo access the configuration menus Appendix 1 Configuration menusFunctions User Preferences Screen Saver Mouse SwitchingAutoscan Mode Global PreferencesMouse Type User TimeoutOSD Dwell Time RS232 Mouse TypeExclusive Use Setup OptionsKeypads Controls LanguageAutomatic Logout DDC Options DDC Source Settings AUTO, LOCAL, DefaultDDC Refresh Settings AT START, Disabled Advanced OptionsTime and Date Configure IP portUnit Configuration Unit NameNetwork Configuration Reset Configuration Modem ConfigurationClearing IP access control What is IP access control?To clear IP access control Appendix 2 Configuration pages via viewer To access the remote configuration pagesMain configuration Logged on users User accounts Firmware Version Unit configurationAdmin Password Hardware VersionAdvanced unit configuration Time & date configuration IP Network Mask Network configurationIP Access Control MAC addressTo edit/remove access control entries Setting IP access controlTo define a new IP access control entry To reorder access control entriesSerial port configuration Power control portModem port To create a new host entry Host configurationErase Host Configuration Add entry for unrecognised hostPort/host addressing using Port Direct Port DirectExamples For further details To get here Logging and statusTo copy and paste the log Syslog Server IP AddressPreferred encoding Click here to access the optionsColour/Encoding Auto selectCustomise Enable all inputsDisable all inputs view-only mode InputsMisc ScalingLoad / Save Defaults ReloadDefaults Save Identities Appendix 4 VNC viewer window options Appendix 5 Browser viewer options Encoding and colour levelSecurity Appendix 6 Addresses, masks and ports IP addressesNet masks Binary octet after Net masks the binary explanationInside a bit-wise and function Binary equivalentAddress ranges Calculating the mask for IP access controlSingle locations All locationsSecurity issues with ports PortsRouter/firewall address 9pin D-type Female Power switch to power switch daisy chain cableRS232 serial flash upgrade cable 6pin mini-DIN FemaleSLAVE2 end 9pin D-type male Multi-head synchronisation cableAppendix 8 Hotkey sequence codes Permissible key pressesCreating macro sequences Appendix 9 Supported video modes General Public License Linux WarrantySafety information Safety considerations when using power switches with MC5End user licence agreement Radio Frequency Energy European EMC directive 89/336/EECFCC Compliance Statement United States Germany France Italia USAIndex 109 110