Difference between revisions of "Advanced Network Testing"

From FreekiWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{cleanup}}
 
{{cleanup}}
==Commercial Grade Network Device Testing==
 
  
This section is a generic guide for testing commercial grade routers, switches, firewalls, etc.  If you are trying configure a small consumer grade switch, refer to the [[Network_Testing|"Basic" Network Test Page]].
+
===Commercial Grade Network Device Testing===
 +
 
 +
This section is a generic guide for testing commercial grade routers, switches, firewalls, etc.  If you are trying configure a small consumer grade switch, refer to the [[Network_Testing|Basic Network Test Page]].
  
 
'''Testing a network device with a console port'''
 
'''Testing a network device with a console port'''
 
   
 
   
Most commercial grade routers, switches and firewalls have a console port that is used to configure the device (if it does not, the standard [[Network Testing]] page will have better instructions).  The industry standard for console ports is to operate at 9600 bps, 8 data bits, no parity and 1 stop bit but, if you are having a difficult time communicating with a device, you should also try 19200, 38400 and 115200 bps speeds.
+
Most commercial grade routers, switches and firewalls have a console port that is used to configure the device (if it does not, the standard [[Network Testing]] page will have better instructions).  The industry standard for console ports is to operate at 9600 bps, 8 data bits, no parity and 1 stop bit but, if you are having a difficult time communicating with a device, you should also try 19200, 38400 and 115200 bps speeds.  It is unlikely that you will need to change the other communications parameters.
  
'''Step 1:''' Return the device to factory defaults.  There is typically done by pressing a "Reset" button, but techniques vary between manufacturers and models.  For example, the Juniper Networks NetScreen-5GT Firewall requires you to wait for the unit to completely boot up, then press the reset button for six seconds, release the button for two seconds, then press the button for another six seconds.  If you are having a difficult time defaulting a device, do a Google search that includes that manufacturer and model and the words "factory default".  Reset buttons are usually recessed and require you to insert the end of a paper clip into a hole in the case of the unit that has the reset button behind it.
+
'''Step 1a:''' Return the device to factory defaults.  There is typically done by pressing a "Reset" button, but techniques vary between manufacturers and models.  For example, the Juniper Networks NetScreen-5GT Firewall requires you to wait for the unit to completely boot up, then press the reset button for six seconds, release the button for two seconds, then press the button for another six seconds.  If you are having a difficult time defaulting a device, do a Google search that includes that manufacturer and model and the words "factory default".  Reset buttons are usually recessed and require you to insert the end of a paper clip into a hole in the case of the unit that has the reset button behind it.
  
If the device does not have a reset button or the reset button doesn't seem to work, try the second method. The second way of resetting a switch is to access its console. Learning how to do this early in the testing process generally helps.  The easiest application to use for communicating with console ports is GtkTerm (Applications -> Accessories -> Serial port terminal).  The lower left corner of the GtkTerm window displays the serial port device name, the port speed, number of data bits, parity type, and stop bits.  This should usually read like this: /dev/ttyS0:9600,8,N,1.  Launch GtKterm, connect the serial cable between the Network Test Station PC and the device under test, then power up the device under test and watch the screen.  You may need to experiment with different speeds listed above (Configuration -> Port).
+
'''Step 1b:''' If the device does not have a reset button or the reset button doesn't seem to work, try the second method. The second way of resetting a switch is to access its console. Learning how to do this early in the testing process generally helps.  The easiest application to use for communicating with console ports is GtkTerm (Applications -> Accessories -> Serial port terminal).  The lower left corner of the GtkTerm window displays the serial port device name, the port speed, number of data bits, parity type, and stop bits.  This should usually read like this: /dev/ttyS0:9600,8,N,1.  Launch GtKterm, connect the serial cable between the Network Test Station PC and the device under test, then power up the device under test and watch the screen.  You may need to experiment with different speeds listed above (Configuration -> Port). Getting console port access does not guarantee that you will be able to default the device.  If it is password protected, Google is you friend! 
  
 +
===General Instructions and Caveats for Firewalls and Broadband Routers===
  
 +
* After being defaulted, most firewalls and broadband routers will act as a DHCP server on all ports except for the "WAN" or "Internet" port.  NEVER connect a device that is acting as a DHCP server to the Free Geek network.
 +
* Instead, disconnect the Network Test Station PC from the Free Geek network and plug that cable into the "WAN" or "Internet" port on the device.  Then use a short network cable to connect the PC to one of the other ports on the device under test.
 +
* Most firewalls and broadband routers have a web server built in to them to access status and configuration screens.  Accessing these screens is proof that the port the Test PC is currently plugged into is working.  These screens are typically accessed by entering "192.168.1.1" into the address bar in the web browser you are using (probably Mozilla Firefox).
 +
* If the device's web interface can't be accessed at address 192.168.1.1, open a Terminal windows (Applications -> Accessories -> Terminal) and enter ''ifconfig'' to view the configuration of the ethernet interface on the PC.  Find the IP address of the interface and try surfing to that address, but with the last octet changed to a 1.  For example, if ifconfig reports an address of 192.168.0.101, try surfing to 192.168.0.1.
  
==Test Procedures for Specific Models==
+
===Test Procedures for Specific Models===
  
 
[[Advanced Network Testing/Cisco PIX|Cisco PIX Firewalls]]
 
[[Advanced Network Testing/Cisco PIX|Cisco PIX Firewalls]]

Revision as of 23:57, 30 October 2010

This page or section appears to be out of date or otherwise inaccurate.
Please edit as seems necessary, removing the {{cleanup}} tag when you are through.


Commercial Grade Network Device Testing

This section is a generic guide for testing commercial grade routers, switches, firewalls, etc. If you are trying configure a small consumer grade switch, refer to the Basic Network Test Page.

Testing a network device with a console port

Most commercial grade routers, switches and firewalls have a console port that is used to configure the device (if it does not, the standard Network Testing page will have better instructions). The industry standard for console ports is to operate at 9600 bps, 8 data bits, no parity and 1 stop bit but, if you are having a difficult time communicating with a device, you should also try 19200, 38400 and 115200 bps speeds. It is unlikely that you will need to change the other communications parameters.

Step 1a: Return the device to factory defaults. There is typically done by pressing a "Reset" button, but techniques vary between manufacturers and models. For example, the Juniper Networks NetScreen-5GT Firewall requires you to wait for the unit to completely boot up, then press the reset button for six seconds, release the button for two seconds, then press the button for another six seconds. If you are having a difficult time defaulting a device, do a Google search that includes that manufacturer and model and the words "factory default". Reset buttons are usually recessed and require you to insert the end of a paper clip into a hole in the case of the unit that has the reset button behind it.

Step 1b: If the device does not have a reset button or the reset button doesn't seem to work, try the second method. The second way of resetting a switch is to access its console. Learning how to do this early in the testing process generally helps. The easiest application to use for communicating with console ports is GtkTerm (Applications -> Accessories -> Serial port terminal). The lower left corner of the GtkTerm window displays the serial port device name, the port speed, number of data bits, parity type, and stop bits. This should usually read like this: /dev/ttyS0:9600,8,N,1. Launch GtKterm, connect the serial cable between the Network Test Station PC and the device under test, then power up the device under test and watch the screen. You may need to experiment with different speeds listed above (Configuration -> Port). Getting console port access does not guarantee that you will be able to default the device. If it is password protected, Google is you friend!

General Instructions and Caveats for Firewalls and Broadband Routers

  • After being defaulted, most firewalls and broadband routers will act as a DHCP server on all ports except for the "WAN" or "Internet" port. NEVER connect a device that is acting as a DHCP server to the Free Geek network.
  • Instead, disconnect the Network Test Station PC from the Free Geek network and plug that cable into the "WAN" or "Internet" port on the device. Then use a short network cable to connect the PC to one of the other ports on the device under test.
  • Most firewalls and broadband routers have a web server built in to them to access status and configuration screens. Accessing these screens is proof that the port the Test PC is currently plugged into is working. These screens are typically accessed by entering "192.168.1.1" into the address bar in the web browser you are using (probably Mozilla Firefox).
  • If the device's web interface can't be accessed at address 192.168.1.1, open a Terminal windows (Applications -> Accessories -> Terminal) and enter ifconfig to view the configuration of the ethernet interface on the PC. Find the IP address of the interface and try surfing to that address, but with the last octet changed to a 1. For example, if ifconfig reports an address of 192.168.0.101, try surfing to 192.168.0.1.

Test Procedures for Specific Models

Cisco PIX Firewalls

Cisco Routers

Juniper NetScreen-5GT Firewalls