Go to main content
Oracle Hardware Certification Test Suite 5.8

Exit Print View

Updated: November 2016
 
 

Port Mirroring Test Case

The Port Mirroring test is designed to test the data transmit/receive functionality in port mirroring mode.

The Port Mirroring test case running environment can be schematically represented as shown in the following figure.

Figure 11  Port Mirroring Test Case

image:Schematic representation of Port Mirroring Test Case

To Set Up Port Mirroring Test Case

  1. Configure the switch by executing the following steps.
    1. Setup four VLANs: VLAN1, VLAN2, VLAN3 and VLAN4 on the switch, and ensure that each VLAN includes two switch ports.
    2. Assign an IP address to VLAN1. Select one switch port of VLAN1 as administrator port and connect it to SUT.
    3. Set the port which connects to NET3 of SUT in VLAN4 to mirror the port which connects to NET1 of SUT. Set the port which connects to NET4 of SUT in VLAN4 to mirror the port which connects to NET2 of SUT.
  2. Configure the Test Manager by executing the following steps.
    1. Setup the TM in manual mode. Select two links NET0 and NET1 as test links, and assign the IP address to each link by the TM.
    2. Connect NET0 to the port of VLAN2, and NET1 to the port of VLAN3.
  3. Configure the System Under Test by executing the following steps.
    1. Setup the SUT in manual mode. Select five links NET0, NET1, NET2, NET3 and NET4 as test links, and assign the IP address to NET0, NET1 and NET2 by the SUT in manual mode.
    2. Save the test type, NET3 and NET4 link name of SUT, NET0 and NET1 IP address of TM into /opt/SUNWhcts/etc/switch.conf file respectively.
    3. Connect NET0 to the port of VLAN1, NET1 to the port of VLAN2, NET2 to the port of VLAN3, NET3 and NET4 to the ports of VLAN4.
Example 5  

The following example displays how to set up a Port Mirroring test case.

  1. For a switch, there are four VLANS: VLAN1, VLAN2, VLAN3, and VLAN4:

         . show vlan
          VLAN Name                        Status    Ports
          ---- -------------------------------- --------- --------------------
          ... ...
          5    VLAN1                        active    Gi1/1, Gi1/2
          30   VLAN2                        active    Gi1/11, Gi1/12
          40   VLAN3                        active    Gi1/21, Gi1/22
          50   VLAN4                        active    Gi1/31, Gi1/32
          The switch administration port IP address for VLAN1:
    
          .show int vlan 5
          Vlan5 is up, line protocol is up
            Hardware is Ethernet SVI, address is c471.fe8b.9bff (bia c471.fe8b.9bff)
            Internet address is 192.168.1.10/24
            MTU 9198 bytes, BW 1000000 Kbit, DLY 10 usec,
            ... ...
            The mirroring configuration:
    
            .show monitor
            Session 1
            ---------
            Type                   : Local Session
            Source Ports           :
                Both               : Gi1/11
            Destination Ports      : Gi1/31
                Encapsulation      : Native
                      Ingress      : Disabled
                     Learning : Disabled
            Filter Pkt Type        :
                RX Only       : Good
            ... ...
  2. For SUT, there are four links net0, net1, net2, and net3 which has to be configured as test links.

    root@solairs:~# ifconfig -a
            net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 5
                    inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255
                    ether 0:10:e0:46:5c:f9
            net1: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 8
                    inet 192.168.10.10 netmask ffffff00 broadcast 192.168.10.255
                    ether 0:10:e0:46:5c:fa
            net2: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 9
                    inet 192.168.11.10 netmask ffffff00 broadcast 192.168.11.255
                    ether 0:10:e0:46:5c:fb
            net3: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 10
                    inet 0.0.0.0 netmask ff000000
                    ether 90:e2:ba:71:67:c
            net4: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 11
                    inet 0.0.0.0 netmask ff000000
                    ether 90:e2:ba:71:67:d
    
    The ethernet network switch certification test configuration file on SUT:
    root@solairs:~# cat /opt/SUNWhcts/etc/switch.conf
    ... ...
    # Port mirroring testing
    # Argument 1: SUT nic interface linked to mirrored port outside test vlan
    # Argument 2: TM nic ip address linked to port in test vlan
    # Example: PM net0 10.10.10.10
    PM net3 192.168.10.11
    PM net4 192.168.11.11
    ... ...
  3. For TM, there are two links net0 and net1 which has to be configured as test links.

    root@solairs:~# ifconfig -a
           net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 112
                   inet 192.168.10.11 netmask ffffff00 broadcast 192.168.10.255
                   ether 0:10:e0:10:15:c7
           net1: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 113
                   inet 192.168.11.11 netmask ffffff00 broadcast 192.168.11.255
                   ether 0:10:e0:10:15:c8