www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNP Labs Solutions / CCNP Lab 069 Solution: Cisco IOS RITE and RSPAN Lab

CCNP Lab 069 Solution: Cisco IOS RITE and RSPAN Lab

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:

department669

 

 

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
Switches, you can bring up the LAN interfaces using the following configurations on your routers:

interface fastethernet 0/0
no keepalive
loopback
no shutdown

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.
Sending 5, 100-byte ICMP Echos to 150.1.1.0, timeout is 2 seconds:

Reply to request 0 from 150.1.1.1, 1 ms
Reply to request 1 from 150.1.1.254, 1 ms
Reply to request 1 from 150.1.1.1, 1 ms
Reply to request 2 from 150.1.1.254, 1 ms
Reply to request 2 from 150.1.1.1, 1 ms
Reply to request 3 from 150.1.1.254, 4 ms
Reply to request 3 from 150.1.1.1, 4 ms
Reply to request 4 from 150.1.1.254, 4 ms
Reply to request 4 from 150.1.1.1, 4 ms

DLS1#ping 150.1.1.0

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.1.0, timeout is 2 seconds:

Reply to request 0 from 150.1.1.1, 4 ms
Reply to request 1 from 150.1.1.1, 1 ms
Reply to request 1 from 150.1.1.253, 1 ms
Reply to request 2 from 150.1.1.1, 1 ms
Reply to request 2 from 150.1.1.253, 1 ms
Reply to request 3 from 150.1.1.1, 1 ms
Reply to request 3 from 150.1.1.253, 1 ms
Reply to request 4 from 150.1.1.1, 1 ms
Reply to request 4 from 150.1.1.253, 1 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.
Sending 10, 1500-byte ICMP Echos to 150.1.1.253, timeout is 2 seconds:
Packet sent with a source address of 150.2.2.2
.!!!!!!!!!
Success rate is 90 percent (9/10), round-trip min/avg/max = 16/16/20 ms

R2#ping 150.1.1.254 source fastethernet 0/0 size 1500 repeat 10

Type escape sequence to abort.
Sending 10, 1500-byte ICMP Echos to 150.1.1.254, timeout is 2 seconds:
Packet sent with a source address of 150.2.2.2
.!!!!!!!!!
Success rate is 90 percent (9/10), round-trip min/avg/max = 12/12/16 ms

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
remote-span
!
monitor ses 1 source interface fastethenet 0/1 both
monitor ses 1 dest rem vl 456 reflector-port fa 0/2 
!

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
R1#sh run
Building configuration…

Current configuration : 910 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.1 255.255.255.252
clock rate 2000000
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R1#

R2

 

R2#term len 0
R2#sh run
Building configuration…

Current configuration : 1319 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
no logging cns-events
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
!
ip traffic-export profile INTERNET-MONITORING
interface FastEthernet0/0
bidirectional
incoming access-list 100
outgoing access-list 101
mac-address 0024.e747.3240
incoming sample one-in-every 2
outgoing sample one-in-every 2
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.2.2.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.2 255.255.255.252
ip traffic-export apply INTERNET-MONITORING
!
interface Serial0/1
no ip address
shutdown
!
router ospf 2
router-id 2.2.2.2
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 100 permit tcp any any
access-list 100 permit udp any any
access-list 101 permit tcp any any
access-list 101 permit udp any any
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R2#

Final Switch Configurations

ALS1

 

ALS1#term len 0
ALS1#sh run
Building configuration…

Current configuration : 1042 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname ALS1
!
!
ip subnet-zero
!
vtp domain hard
vtp mode transparent
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
vlan 100
!
vlan 456
remote-span
!
interface FastEthernet0/1
switchport access vlan 100
switchport mode access
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan100
ip address 150.1.1.253 255.255.255.0
no ip route-cache
!
ip default-gateway 150.1.1.1
ip http server
!
line con 0
line vty 5 15
!
!
!
monitor session 1 destination interface Fa0/5
monitor session 1 source remote vlan 456
end

ALS1#

DLS1

 

DLS1#term len 0
DLS1#sh run
Building configuration…

Current configuration : 4138 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DLS1
!
!
no aaa new-model
ip subnet-zero
!
vtp domain hard
vtp mode transparent
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 100,200
!
vlan 456
remote-span
!
!
!
!
!
!
interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport mode dynamic desirable
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport mode dynamic desirable
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport mode dynamic desirable
!
interface FastEthernet0/11
switchport mode dynamic desirable
!
interface FastEthernet0/12
switchport mode dynamic desirable
!
interface FastEthernet0/13
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport mode dynamic desirable
!
interface FastEthernet0/19
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport mode dynamic desirable
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport mode dynamic desirable
!
interface FastEthernet0/25
switchport mode dynamic desirable
!
interface FastEthernet0/26
switchport mode dynamic desirable
!
interface FastEthernet0/27
switchport mode dynamic desirable
!
interface FastEthernet0/28
switchport mode dynamic desirable
!
interface FastEthernet0/29
switchport mode dynamic desirable
!
interface FastEthernet0/30
switchport mode dynamic desirable
!
interface FastEthernet0/31
switchport mode dynamic desirable
!
interface FastEthernet0/32
switchport mode dynamic desirable
!
interface FastEthernet0/33
switchport mode dynamic desirable
!
interface FastEthernet0/34
switchport mode dynamic desirable
!
interface FastEthernet0/35
switchport mode dynamic desirable
!
interface FastEthernet0/36
switchport mode dynamic desirable
!
interface FastEthernet0/37
switchport mode dynamic desirable
!
interface FastEthernet0/38
switchport mode dynamic desirable
!
interface FastEthernet0/39
switchport mode dynamic desirable
!
interface FastEthernet0/40
switchport mode dynamic desirable
!
interface FastEthernet0/41
switchport mode dynamic desirable
!
interface FastEthernet0/42
switchport mode dynamic desirable
!
interface FastEthernet0/43
switchport mode dynamic desirable
!
interface FastEthernet0/44
switchport mode dynamic desirable
!
interface FastEthernet0/45
switchport mode dynamic desirable
!
interface FastEthernet0/46
switchport mode dynamic desirable
!
interface FastEthernet0/47
switchport mode dynamic desirable
!
interface FastEthernet0/48
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
no ip address
shutdown
!
interface Vlan100
ip address 150.1.1.254 255.255.255.0
!
ip default-gateway 150.1.1.1
ip classless
ip http server
ip http secure-server
!
!
!
control-plane
!
!
line con 0
line vty 5 15
!
!
monitor session 1 source interface Fa0/1
monitor session 1 filter vlan 1 – 199 , 201 – 399 , 401 – 455 , 457 – 599 , 601 – 4094
monitor session 1 destination remote vlan 456 reflector-port Fa0/2
monitor session 2 source vlan 100 rx
monitor session 2 destination interface Fa0/3 encapsulation dot1q ingress vlan 200
end

DLS1#

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.