Lindy CPU IP Access Switch Plus Appendix 6 Addresses, masks and ports, IP addresses, Net masks

Page 54

Appendix 6 – Addresses, masks and ports

IP address, network masks and ports are all closely linked in the quest for one device to find another across disparate network links.

IP addresses

As a rough analogy, consider how you use the telephone system. The phone number for LINDY in the UK is 0044 (0)1642 754000. This number consists of three distinct parts:

0044 connects from another country to the UK

(0)1642 selects the main telephone exchange in the Thornaby area of Stockton-on-Tees, and

754000 is the unique code for LINDY within Thornaby.

The important parts of the whole number depend on where you are. If you were based in the same local area as LINDY, there would be no point in dialling out of the UK, or even out of the area. The only part of the whole number that you are interested in is the final part: 754000.

In a similar way to the various parts of the telephone number, the four sections (or Octets) of every IP address have different meanings or “weights”. Consider the following typical IP address:

192.168.142.154

192 is the most global part of the number (akin to the 0044 of the phone number) and 154 is the most local (similar to the 754000 unique local code of the phone number).

When two network devices communicate with each other, they always “dial the whole number” regardless of their respective locations in a network. However, they still need to know whether the other device is local to them or not, and this is where the net mask comes into play.

Net masks

The net mask (or sub-net mask) informs a device as to its own position within a network. From this it can determine whether any other device is within the same local network or is situated further afield.

Taking the telephone number analogy given in the IP address section, in order to use the telephone system efficiently, it is vital for you to know your location relative to the person you are calling. In this way you avoid dialling unnecessary numbers.

When one network device needs to talk to another, the first thing that it will do is a quick calculation using its own IP address, the other device’s IP address and its own net mask. Suppose a device with address 192.168.142.154 and net mask 255.255.255.0 needed to communicate with a device at address 192.168.142.22. The sending device would perform several calculations:

1

Sending

Destination

 

 

192 168 142 154

device IP

device IP

192 168 142 22

 

address

address

 

 

 

Net mask

 

 

 

 

3

 

 

192 168 142 000

Result

 

192 168 142 000

 

2

 

 

 

192.168.142.000

= 192.168.142.000 ?

Answer: YES

 

 

 

4

Address

 

 

 

 

is local

1 The net mask is used to determine the local and global parts of the sender’s IP address. Where there is 255 in the mask, the corresponding address slips through, where there is a 0, it is blocked.

2 Where the net mask was 0, the corresponding part of the result is also zero - this section is now known to be the local part of the IP address.

3 The same process is carried out for the destination address, again using the sender’s net mask. Now the local parts of both addresses have been equalised to zero, because their values are not important in determining whether they are both in the same local network.

4 The results of the two net mask operations are now compared, if they match, the destination is local. If not, then the sender will still use the same full destination IP address but will also flag the message to go via the local network gateway and out into the wider world.

The reason for doing this? It makes the network, as a whole, much more efficient. If every message for every recipient was shoved straight out onto the Internet, the whole thing would grind to a halt within seconds. Net masks keep local traffic just that - local.

Want to know more?

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



53

Image 54
Contents CPU IP Access Switch Plus Contents Index Modem/ISDN port Four simultaneous remote usersLocal user IP network/InternetCPU IP Access Switch Plus features front and rear What’s in the box What you may additionally need CD-ROMDouble unit rack brackets MountingSingle unit rack brackets  Host computer or KVM switch ConnectionsTo connect a local keyboard, video monitor and mouse Local keyboard, video monitor and mouseIP network port To connect the IP network portModem/ISDN port Power supply connectionTo connect the power supply To connect a modem or Isdn portPower control port To connect and address the switch boxesPart 1 Local configuration Initial configurationPart 1 Local configuration Part 2 Remote configurationTime and Date To perform the initial local configurationAdmin password EncryptionViewer encryption settings Encryption settingsCPU IP encryption settings EncryptionHot plugging and mouse restoration Which restore setting do I use?To restore mouse operation when hot plugging Recognising an IntelliMouse-style mouseCPU IP does not display the configuration sequence Resetting the configurationCPU IP asks for an unknown admin password To invoke a configuration reset by main menuPart 2 Remote configuration To perform the remote configurationPositioning CPU IP in the network Networking issuesPort settings Placing CPU IP behind a router or firewallDNS addressing AddressingTo discover a DHCP-allocated IP address Firewall/router addressPlacing CPU IP alongside the firewall Ensuring sufficient securityPorts To configure the power sequences for each host computer Power switching configurationPower control sequences Power OffPerforming a flash upgrade Important Wait until the upgrade is completeTo make a local connection Connecting to the CPU IPLocal connection To view the local control menuRemote connections To avoid the ‘hall of mirrors’ effectRemote connection by VNC viewer To connect using the VNC viewerTo connect using your Web browser Remote connection by Web browserUsing the viewer window When using the viewer windowMenu bar Host selection ConfigureMouse pointers To select a hostAuto calibrate Access mode shared/privatePower control Re-synchronise mouseControls Contrast Setting the Threshold manuallyPhase  Connecting via dial up modem or Isdn link Downloading VNC viewer from the CPU IPIf you need to enter a port number Windows Viewer encryption settingsSupported web browsers LinuxTroubleshooting Getting assistanceAppendix 1 Local configuration menus To access the local configuration menusUnit configuration Network configuration Modem configuration Reset configuration To reset the CPU IP configurationClear IP access control What is IP access control?To clear IP access control Auto select Appendix 2 VNC viewer connection optionsColour/Encoding Preferred encodingInputs MiscSave as defaults DefaultsReload defaults Save configuration file asAppendix 3 VNC viewer window options Appendix 4 Browser viewer options Encoding and colour levelSecurity Appendix 5 Remote configuration menus To access the remote configuration menusMain configuration menu Logged on users User accounts Firmware Version Screensaver timeoutHardware Version Host Keyboard LayoutProtocol timeout Advanced unit configurationIdle timeout Force VNC protocolIP access control IP network maskIP gateway To reorder access control entries Setting IP access controlTo define a new IP access control entry To edit/remove access control entriesSerial port configuration Power control portModem port Host configuration To create a new host entryOccurred Click to clear All log entries Refresh Logging and statusTo copy and paste the log ListAppendix 6 Addresses, masks and ports IP addressesNet masks Binary equivalent Net masks the binary explanationInside a bit-wise and function Binary octet afterAll locations Calculating the mask for IP access controlSingle locations Address rangesSecurity issues with ports Ports4pin RJ10 Appendix 7 Cable and connector specifications6pin mini-DIN 9pin D-type FemaleAppendix 8 Hotkey sequence codes Safety information Other products in the CPU Switch rangeWarranty Safety considerations when using power switches with CPU IPRadio Frequency Energy European EMC directive 89/336/EECFCC Compliance Statement United States USA Germany France ItaliaIndex 