Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 380
![background image](/manuals/361724/380/background.png)
364
Brocade Virtual ADX Server Load Balancing Guide
53-1003247-01
Using the debug filter command
B
!
server virtual vs222 192.168.8.222
port http
bind http rs101 http
Task:
Get a packet capture of an HTTP request coming from the client IP 192.168.8.100 to the virtual
server 192.168.8.222 including the packets going to the real server 192.168.9.101.
The source IP of the client request is 192.168.8.100 and the destination TCP port is 80. The
backend traffic is as well using the client IP 192.168.8.100 because we do not have source-nat
configured. The real servers service port is 80 as well. The return/reply traffic is going to use
192.168.8.100 as destination IP and it is using the source TCP port 80.
Filters to configure:
1. from source IP 192.168.8.100 to destination port 80 TCP
2. to destination IP 192.168.8.100 from source port 80 TCP
Interesting traffic will hit the first or second filter.
CLI commands/outputs and comments:
Enter debug filter utility:
telnet@Virtual ADX>ena
No password has been assigned yet...
telnet@Virtual ADX#debug filter
Configure buffer-size and packet-size to store in buffer:
telnet@Virtual ADX(debug-filter)#buffer-size 4096
telnet@Virtual ADX(debug-filter)#packet-size whole
Create filter 1 and filter 2:
telnet@Virtual ADX(debug-filter)#sp 1
telnet@Virtual ADX(debug-filter-spec-1)#reset
telnet@Virtual ADX(debug-filter-spec-1)#ip src 192.168.8.100
telnet@Virtual ADX(debug-filter-spec-1)#tcp dest 80
telnet@Virtual ADX(debug-filter-spec-1)#exit
telnet@Virtual ADX(debug-filter)#sp 2
telnet@Virtual ADX(debug-filter-spec-2)#reset
telnet@Virtual ADX(debug-filter-spec-2)#ip dest 192.168.8.100
telnet@Virtual ADX(debug-filter-spec-2)#tcp src 80
telnet@Virtual ADX(debug-filter-spec-2)#exit
Apply filters using OR as operator:
telnet@Virtual ADX(debug-filter)#apply 1or2
Start capturing process:
telnet@Virtual ADX(debug-filter)#start
SENT REQUEST FROM TEST CLIENT 192.168.8.100 NOW
Stop capturing process:
telnet@Virtual ADX(debug-filter)#stop