Monitoring Switch Traffic 405Traffic Monitoring Configuration ExamplesThis section contains the following examples:• Configuring sFlow• Configuring RMONConfiguring sFlowThis example shows how to configure the switch so that ports 10-15 and port23 send sFlow datagrams to an sFlow receiver at the IP address 192.168.20.34.The receiver owner is receiver1, and the timeout is 100000 seconds. A countersample is generated on the ports every 60 seconds (polling interval), and 1 outof every 8192 packets is sampled. Note that sFlow monitoring is not enableduntil a receiver owner string is configured.To configure the switch:1 Configure information about the sFlow receiver.console#configureconsole(config)#sflow 1 destination 192.168.30.34console(config)#sflow 1 destination ownerreceiver1 timeout 1000002 Configure the polling and sampling information for gigabit Ethernet ports10-20.console(config)#sflow 1 polling gi1/0/10-15 60console(config)#sflow 1 sampling gi1/0/10-15 81923 Configure the polling and sampling information for gigabit Ethernet port23.console(config)#interface gi1/0/23console(config-if-Gi1/0/23)#sflow 1 polling 60console(config-if-Gi1/0/23)#sflow 1 sampling 81924 Verify the configured information.console#show sflow 1 destinationReceiver Index.................... 1Owner String...................... receiver1Time out.......................... 99994IP Address:....................... 192.168.30.34