Lab Objective:
The focus of this lab is to understand Router IP Traffic Export (RITE) and Remote Switched Port Analyzer (SPAN) implementation and configuration in Cisco IOS routers.
Lab Topology:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no interface fastethernet 0/0 Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab. |
Task 1
Configure hostnames and IP addresses on all devices as illustrated in the topology. In addition, configure VLAN 100 on switches ALS1 and DLS1. Assign R1s FastEthernet0/0 to this VLAN and configure a VLAN interface (SVI) with the IP address 150.1.1.253 on DLS1 and a VLAN interface (SVI) with the IP address 150.1.1.254 on ALS2. Verify that switches ALS1 and DLS1 can ping each other as well as router R1.
Task 2
Configure OSPF on R1 and R2 as illustrated in the topology. Ensure that R2 can ping switch ALS1 and DLS1. Verify your configuration using the appropriate commands.
Task 3
In the future, switch DLS1 will have a FastEthernet0/1 configured as a trunk link. There will be multiple VLANs traversing this trunk link. Management has requested that you configure an RSPAN session to monitor ingress and egress traffic received from FastEthernet0/1. However, in the interim, they have requested that the captured traffic be restricted to that from VLANs 200, 400, and 600. This traffic should be sent to FastEthernet0/5 on switch ALS1. The RSPAN session should be configured to use VLAN 456. Implement this solution and verify the RSPAN configuration using the appropriate commands on both switches.
Task 4
VLAN 100 is used as a transit VLAN to the rest of the network. The security team has an NIPS (Network-based Intrusion Prevention System) connected to port FastEthernet 0/3 on switch DLS1. The request that all traffic in VLAN 100 (receive) be mirrored to this port. To allow the IPS to be able to reset sessions, ensure that ingress traffic is permitted on this port. This traffic should be assigned to VLAN 200. Configure a local SPAN session on switch DLS1 to satisfy this requirement. Verify your configuration using the appropriate commands.
Task 5
In the future, R2 will have several WAN links turned up. Serial 0/0 will be the only link that will be connected to the Internet. The other WAN links will be used for spoke connectivity across a private Frame Relay network. Management has requested that you monitor all bidirectional traffic coming into and leaving out of the Serial 0/0 interface on R2. This traffic should be sent to a Network-based Intrusion Prevention System (NIPS) residing on the LAN segment of R2. This NIPS has the MAC address 00-24-E7-47-32-40. To ensure as much traffic is captured as possible, configure R2 so that every other packet is sent to the NIPS. Assume that all ICMP traffic is denied. Configure R2 so that only TCP and UDP traffic is exported. Verify your configuration using the appropriate commands.
Lab Validation
Task 1
Please refer to previous tasks for basic VLAN and IP addressing configuration. These will not be included in this section for brevity and to avoid being redundant. Following your configuration, switch ALS1 should be able to ping R1. This is illustrated in the output below:
| ALS1#ping 150.1.1.0
Type escape sequence to abort. Reply to request 0 from 150.1.1.1, 1 ms |
| DLS1#ping 150.1.1.0
Type escape sequence to abort. Reply to request 0 from 150.1.1.1, 4 ms |
Task 2
Please refer to previous labs for basic OSPF configuration. Following this, verify your OSPF configuration using the show ip ospf neighbors and show ip route commands. Following this configuration, your route tables should show the following route information:
| R1#show ip route ospf 150.2.0.0/24 is subnetted, 1 subnets O 150.2.2.0 [110/65] via 10.0.0.2, 00:03:57, Serial0/0 |
| R2#show ip route ospf 150.1.0.0/24 is subnetted, 1 subnets O 150.1.1.0 [110/65] via 10.0.0.1, 00:04:08, Serial0/0 |
In order to allow R2 to ping ALS1 and DLS1, you need to configure a default gateway on switch ALS1 as well as on DLS1:
| ALS1(config)#ip default-gateway 150.1.1.1 |
| DLS1(config)#ip default-gateway 150.1.1.1 |
Following this, R2 will be able to ping switch ALS1 and vice-versa:
| R2#ping 150.1.1.253 source fastethernet 0/0 size 1500 repeat 10
Type escape sequence to abort. |
| R2#ping 150.1.1.254 source fastethernet 0/0 size 1500 repeat 10
Type escape sequence to abort. |
Task 3
The core requirements of this task are straightforward. Basically, what is required is an RSPAN session between DLS1 and ALS1 using VLAN 456. The source port should be FastEthernernt0/1 on switch DLS1 and the destination port should be FastEthernet0/5 on switch ALS1. The caveat here is that when monitoring a trunk link, ALL traffic, i.e. for all VLANs, will be monitored. The task, however, requests that only traffic for VLANs 200, 400, and 600 be monitored. To do this, we need to filter the VLANs that will be monitored in the RSPAN session configured on switch DLS1 using the monitor session <session> filter vlan <list> command on switch DLS1. This task is completed as follows:
| DLS1(config)#vlan 456 DLS1(config-vlan)#remote-span DLS1(config-vlan)#exit DLS1(config)#monitor session 1 source interface fastethernet 0/1 both DLS1(config)#monitor session 1 destination remote vlan 456 DLS1(config)#$ – 199 , 201 – 399 , 401 – 455 , 457 – 599 , 601 – 4094 |
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, the current switches, as of the time of the writing of this guide, are 3550 series switches. Therefore, when completing this lab, you must configure a reflector port for the RSPAN destination. A reflector port is the mechanism that copies packets onto an RSPAN VLAN. The reflector port forwards only the traffic from the RSPAN source session with which it is affiliated. Any device connected to a port set as a reflector port loses connectivity until the RSPAN source session is disabled. Any unused port can be specified as a reflector port. This port will simply loop back untagged traffic to the switch. The traffic is then placed on the RSPAN VLAN and flooded to any trunk ports that carry the RSPAN VLAN. The Catalyst 2970, 3560, 3750, 4500 and 6500 series switches do not require the configuration of a reflector port when you configure an RSPAN session. If you are completing this lab on one of these switches, omit the reflector-port keyword. If configured on a 2950 / 3550, use the following configuration to complete this task: vlan 456 |
| ALS1(config)#vlan 456 ALS1(config-vlan)#remote-span ALS1(config-vlan)#exit ALS1(config)#monitor session 1 source remote vlan 456 ALS1(config)#monitor session 1 destination interface fastethernet 0/5 |
Next, verify your RSPAN configuration using the show monitor session command:
| ALS1#show monitor session 1 Session 1 ——— Type : Remote Destination Session Source RSPAN VLAN : 456 Destination Ports : Fa0/5 Encapsulation : Native Ingress: Disabled |
| DLS1#show monitor session 1 Session 1 ——— Type : Remote Source Session Source Ports : Both : Fa0/1 Reflector Port : Fa0/2 Filter VLANs : 1-199,201-399,401-455,457-599,601-4094 Dest RSPAN VLAN : 456 |
Additionally, you can append the detail keyword for more information:
| DLS1#show monitor session 1 detail Session 1 ——— Type : Remote Source Session Description : – Source Ports : RX Only : None TX Only : None Both : Fa0/1 Source VLANs : RX Only : None TX Only : None Both : None Source RSPAN VLAN : None Destination Ports : None Reflector Port : Fa0/2 Filter VLANs : 1-199,201-399,401-455,457-599,601-4094 Dest RSPAN VLAN : 456 |
Task 4
The requirements of this task are straightforward. This task is completed as follows on DLS1:
| DLS1(config)#monitor session 2 source vlan 100 rx DLS1(config)#$nterface fastethernet 0/3 encapsulation dot1q ingress vlan 200 DLS1(config)#exit |
Next, verify your configuration using the show monitor session command:
| DLS1#show monitor session 2 detail Session 2 ——— Type : Local Session Description : – Source Ports : RX Only : None TX Only : None Both : None Source VLANs : RX Only : 100 TX Only : None Both : None Source RSPAN VLAN : None Destination Ports : Fa0/3 Encapsulation : DOT1Q Ingress : Enabled, default VLAN = 200 Reflector Port : None Filter VLANs : None Dest RSPAN VLAN : None |
Task 5
The core requirements of this task are straightforward. However, in order to monitor traffic that is received and sent via Serial 0/0, we need to apply the RITE profile to this interface. Within the RITE profile, we need to specify FastEthernet0/0 as the egress interface as this is where the Network-based Intrusion Prevention System be connected. This task is completed as follows:
| R2(config)#access-list 100 permit tcp any any R2(config)#access-list 100 permit udp any any R2(config)#access-list 101 permit tcp any any R2(config)#access-list 101 permit udp any any R2(config)#ip traffic-export profile INTERNET-MONITORING R2(conf-rite)#bidirectional R2(conf-rite)#incoming access-list 100 R2(conf-rite)#incoming sample one-in-every 2 R2(conf-rite)#outgoing access-list 101 R2(conf-rite)#outgoing sample one-in-every 2 R2(conf-rite)#mac-address 0024.E747.3240 R2(conf-rite)#interface fastethernet 0/0 R2(conf-rite)#exit R2(config)#interface s0/0 R2(config-if)#ip traffic-export apply INTERNET-MONITORING R2(config-if)# *Jun 15 11:31:47.843: %RITE-5-ACTIVATE: Activated IP traffic export on interface Serial0/0 R2(config-if)#exit |
Following this, use the show ip traffic-export command to verify statistics:
| R2#show ip traffic-export interface serial 0/0 Router IP Traffic Export Parameters Monitored Interface Serial0/0 Export Interface FastEthernet0/0 Destination MAC address 0024.e747.3240 bi-directional traffic export is on Output IP Traffic Export Information Packets/Bytes Exported 0/0 Packets Dropped 0 Sampling Rate one-in-every 2 packets Access List 101 [extended IP] Input IP Traffic Export Information Packets/Bytes Exported 0/0 Packets Dropped 0 Sampling Rate one-in-every 2 packets Access List 100 [extended IP] Profile INTERNET-MONITORING is Active |
To test RITE, assuming you have a device connected to the same segment as R2, you can use the traffic-export interface <interface> start andtraffic-export interface <interface> stop privileged EXEC commands.
Final Router Configurations
R1
|
R1#term len 0 Current configuration : 910 bytes R1# |
R2
|
R2#term len 0 Current configuration : 1319 bytes R2# |
Final Switch Configurations
ALS1
|
ALS1#term len 0 Current configuration : 1042 bytes ALS1# |
DLS1
|
DLS1#term len 0 Current configuration : 4138 bytes DLS1# |
