cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1375
Views
0
Helpful
8
Replies

Loop back like port on an IOS Switch.

markkwong
Level 1
Level 1

How can i setup a switch ethernet port to always send back what it received on the same port?

Computer---->switch     switch always sends back the ata the computer sends it.

Is there a route option for that?

Thanks,

Mark

8 Replies 8

Amit Aneja
Level 3
Level 3

Mark,

Why would you want to do that? Switch will never send back that data computer sent it.

Regards,

Amit

Peter Paluch
Cisco Employee
Cisco Employee

Hello Mark,

There is no such functionality available. Note that it would in essence cause a loop in network which is something all manageable switches are trying to avoid.

Why would you need such a thing?

Best regards,

Peter

Leo Laohoo
Hall of Fame
Hall of Fame

How can i setup a switch ethernet port to always send back what it received on the same port?

Computer---->switch     switch always sends back the ata the computer sends it.

You're not trying to "sniff" the packet using a packet sniffer like WireShark are you?

This specific system requires a pack to be sent out to the switch and be sent back from the same port. Just like a loop back, so there is absolutly no loop back functionality for IOS? I would think so.

Also, yes, I'm using wireshark to only Test to see if i can get the same packet back from the same port after sending a PING.

Just for test. 

boss.silva
Level 1
Level 1

Hello,

If your application requires it for whatever reason i can't think about , then get another NIC and send the traffic to this nic that will only receive traffic from the other port using SPAN for instance, or switchport capture.

Regards,

Bruno Silva.

well, i will try to answer this bizzar question with a bizzar answer that would not get me into the hall-of-fame of cisco's forum life but would nonetheless, force the traffic to return to the same port ,

you could potentially do this : [ but you dont do that , cause the very aim of doing that suggests perhaps someone misinterpreted someone else  ] :

1. connect a single NIC to the switch .

2. the packet you send has a destination

3. if your switch is a Layer3 switch with PBR capabilities, you may create a PBR (policy based) which matches that packet / traffic   and return it by set ip nexthop with the ip of the source that sent it

  that way you would receive it and re-send it again . unless of course you would filter it on that NIC . or untill end of ttl days .

Thats not a Loopback but it would send back the traffic you would send .

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Not sure whether Cisco switches support it, but the UDP or TCP echo port will send back the original packet.  If supported, you would need to insure the service is activated.

See http://www.cisco.com/en/US/products/sw/iosswrel/ps1818/products_tech_note09186a008019d97a.shtml for more info.

Review Cisco Networking for a $25 gift card