lcp router test procedure

6
 Procedure for Testing Router Configuration Compatibility for LCP Systems MOTOROLA SOLUTIONS MOTOTRBO TM  

Upload: jose-luis-pardo-figueroa

Post on 09-Feb-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

7/22/2019 LCP Router Test Procedure

http://slidepdf.com/reader/full/lcp-router-test-procedure 1/6

 Procedure for TestingRouter ConfigurationCompatibility for LCP

Systems 

MOTOROLA SOLUTIONSMOTOTRBOTM 

7/22/2019 LCP Router Test Procedure

http://slidepdf.com/reader/full/lcp-router-test-procedure 2/6

MOTOROLA  SOLUTIONS   LCP Router Test Procedure

2  Motorola Solutions

DOCUMENT REVISION HISTORYVersion Date Revised By Description of Changes

1.0 October 5, 2012 Original creation of the document

7/22/2019 LCP Router Test Procedure

http://slidepdf.com/reader/full/lcp-router-test-procedure 3/6

MOTOROLA  SOLUTIONS   LCP Router Test Procedure

3  Motorola Solutions

TABLE OF CONTENTS

DOCUMENT REVISION HISTORY ............................................................................................................................. 2 

TABLE OF CONTENTS .............................................................................................................................................. 3 

USER MANUAL ....................................................................................................................................................... 4 

PREREQUISITES .......................................................................................................................................................... 4 

IP TOPOLOGY CONFIGURATION ......................................................................................................................................... 4 

7/22/2019 LCP Router Test Procedure

http://slidepdf.com/reader/full/lcp-router-test-procedure 4/6

MOTOROLA  SOLUTIONS   LCP Router Test Procedure

4  Motorola Solutions

USER MANUAL

PREREQUISITES

The test procedure involves running an executable on a windows machine attached to a network topologythat emulates an LCP environment. Therefore you will need the following:

Windows PC running XP or later OS

3 Ethernet interfaces on the above PC. Most PC’s have one Ethernet interface so you may needto purchase 2 USB to Ethernet adaptors.

IP Networking Equipment:o  Test Routero  3 Supporting Routers, or 2 Routers and a switch will work as well.

IP Topology Configuration

This section highlights the IP topology that must be created and the connections that are necessary.

7/22/2019 LCP Router Test Procedure

http://slidepdf.com/reader/full/lcp-router-test-procedure 5/6

MOTOROLA  SOLUTIONS   LCP Router Test Procedure

5  Motorola Solutions

1. Create the above IP networking topology and set the relevant interface IP addresses as specifiedNote: The 3 interfaces on the test computer must all be in different subnets and havedifferent gateways.

2. Open up a cmd prompt and cd to the directory containing the nat.exe executable.3. Type nat.exe and hit enter to see usage and other configuration requirements. The following will

be displayed:############################################################# NAT Loopback and Full Cone NAT Tester: Version 1.0 #############################################################

usage: nat [Interface0 IP] [Port0] [Interface1 IP] [port1] [Interface2 IP] [Port2][TestRouter1 Uplink IP] [Router2 Uplink IP]

example: nat 192.168.0.2 50000 192.168.1.3 50001 192.168.2.4 50002 1.1.1.7 1.1.1.8..1. Port1 must be port forwarded on TestRouter1 to Interface1 IP address2. Port2 must be port forwarded on Router2 to Interface2 IP address3. A route for the TestRouter1 and Router2 uplinks must be added to go via the Interface0 IP

Example: route add 1.1.1.7 mask 255.255.255.255 192.168.0.1

route add 1.1.1.8 mask 255.255.255.255 192.168.0.1

4. Plan out your IP address topology, for this example we will use the IP addresses in the topologydiagram, and the Ports specified in the example usage.

5. Port1 must be port forwarded on TestRouter1 to Interface1 IP address6. Port2 must be port forwarded on Router2 to Interface2 IP address7.  Add in the necessary route to direct the test traffic through the correct ports by typing the

following commands (or copy paste) in the cmd line.a. route add 1.1.1.7 mask 255.255.255.255 192.168.0.1b. route add 1.1.1.8 mask 255.255.255.255 192.168.0.1

8. Ensure you IP topology is configured as in the diagram and then run the following command:a. nat.exe 192.168.0.2 50000 192.168.1.3 50001 192.168.2.4 50002 1.1.1.7 1.1.1.8

TEST DESCRIPTION: The nat executable runs a Hair-Pin/NAT loopback test by sending a UDP messagefrom INT0 to the Uplink IP address of the TestRouter that should be received by INT1 via the Hair-Pin/NAT-Loopback and port forwarding rules of the TestRouter. The nat executable also runs a Full ConeNAT test by sending a second UDP message from INT0 to the Uplink IP address of Router2 via the portforward route setup in the router to be received by INT2. For the test to pass both messages must bereceived and the source IP address and source port of both messages must match, if they do not, the testfails and this router is not compatible with an LCP system. If you need to trouble shoot your system youcan download an IP sniffing utility called Wireshark and run it on all three Ethernet interfaces on your PCto ensure the messages are being sent and everything is setup properly.

Below are the possible output results of the test and what they mean.

1. Sending NAT Loopback test to 1.1.1.7 50001 

Sending Full Cone NAT test to 1.1.1.8 50002 Received Full Cone NAT message from 1.1.1.7 2403 One or both messages were NOT received! Please check your IP topology and configuration as well as the routing table!  TEST FAILED! 

This error message indicates that 1 or both of the 2 test messages was not received. This can bedue to a miss configuration of the IP topology, not updating your routing table before running thetool, or not configuring port forwarding on the Test Router or Router 2. This would be a good

7/22/2019 LCP Router Test Procedure

http://slidepdf.com/reader/full/lcp-router-test-procedure 6/6

MOTOROLA  SOLUTIONS   LCP Router Test Procedure

6  Motorola Solutions

place to run wireshark on the 3 interfaces to make sure the messages are being sent andreceived properly.In the above example the full cone NAT message was received however, the NAT loop backmessage was not. This is because the router does not support the loopback mechanism and thuswould not work in an LCP topology. Some routers will not be able to route the first test messageat all as in this case.

2. Sending NAT Loopback test to 1.1.1.7 50001 Received NAT Loopback from 192.168.1.99 50000 Sending Full Cone NAT test to 1.1.1.8 50002 Received Full Cone NAT message from 1.1.1.7 50000 192.168.1.99 DOES NOT EQUAL 1.1.1.7  Your routers configuration DOES NOT SUPPORT NAT LOOPBACK!! 

This error message shows that both test messages were received however they were receivedfrom different IP addresses and thus violates the LCP requirements as the router is NOT properlysupporting NAT loopback.

3. Sending NAT Loopback test to 1.1.1.7 50001 Received NAT Loopback from 1.1.1.7 50010 

Sending Full Cone NAT test to 1.1.1.8 50002 Received Full Cone NAT message from 1.1.1.7 50020 1.1.1.7 EQUALS 1.1.1.7 50010 DOES NOT EQUAL 50020  Your routers configuration DOES NOT SUPPORT Full Cone NAT!! 

This error message shows that the port of INT0 sends is not seen as the same from the internalNAT loopback and the external full cone NAT sends. Both port should be the same for full coneNAT. Therefore this indicates that Full Cone is not supported in the router

4. Sending NAT Loopback test to 1.1.1.7 50001 Received NAT Loopback from 192.168.1.99 50000 Sending Full Cone NAT test to 1.1.1.8 50002 

Received Full Cone NAT message from 1.1.1.7 50000 192.168.1.99 DOES NOT EQUAL 1.1.1.7  Your routers configuration DOES NOT SUPPORT NAT!! 

This error message indicates that while both test messages were received, the NAT Loopbackmessage did not go through NAT, and its IP address is still an internal address. This configurationwould not work in an LCP system.

5. Sending NAT Loopback test to 1.1.1.7 50001 Received NAT Loopback from 1.1.1.7 50000 Sending Full Cone NAT test to 1.1.1.8 50002 Received Full Cone NAT message from 1.1.1.7 50000 1.1.1.7 EQUALS 1.1.1.7 

50000 EQUALS 50000  Your routers configuration looks to support LCP requirements  

Here is an example where all the tests pass. This is the message that will be seen for a routerthat passes the tests.