RE: Physical ports in IOS

From: Dan Bogda (dan.bogda@kintera.com)
Date: Wed Jun 14 2006 - 14:20:23 EDT


Eduardo,
Your first priority should be to determine what hardware and software
the switch is running. That way you know which commands and features are
available to you. 'Show version' is pretty universal, otherwise 'show
run', 'show hardware' and 'show ?' may help.

If 'show interfaces fastethernet' does not work there are most likely no
FE ports on the switch. Try 'show ip interface brief', 'show interface
status' or 'show interfaces ?' to figure out what interface types are
available. The command you already found, 'show interfaces', displays
the interface types and their parameters, including details like
utilization.

Layer 2 switches do not typically correlate IP addresses to ports since
that is a Layer 3 mapping. You need to find your MAC address and see
what port the switch learned it from('show mac-address-table'). You
should also check that you only see your MAC address on that port('show
mac-address-table int x/x'), you don't want to re-vlan an upstream
switch trunk.

Once you have those details you should be able to find a user guide or
command reference for the specific switch and IOS version, or guides for
the interface type. Be careful reconfiguring, it is really easy to bring
down your connection or the whole network. Make sure you don't stray
from your contracted scope or cause unintended consequences. These show
commands should be benign, but anything can happen so you use them at
your own risk.

Hope that helps, good luck,
Dan

-----Original Message-----
From: Eduardo Espina [mailto:eduardomx@gmail.com]
Sent: Tuesday, June 13, 2006 7:21 PM
To: pen-test@securityfocus.com
Subject: Physical ports in IOS

Hi,

I'm pen-testing a network and i've already gained access to a Cisco
switch in certain VLAN; i'm stucked in getting a SPAN port in the
physical port where i'm attached or changing that port to a different
VLAN; "show interfaces fastethernet" doesn't work, and "show
interfaces" just output the MAC address of the VLAN, but i can't find
the way to correlate IP (mine) with the physical port (Fa0/3 i.e.).

Some idea?

Thanks,
Eduardo.

------------------------------------------------------------------------
------
This List Sponsored by: Cenzic

Concerned about Web Application Security?
Why not go with the #1 solution - Cenzic, the only one to win the
Analyst's
Choice Award from eWeek. As attacks through web applications continue to
rise,
you need to proactively protect your applications from hackers. Cenzic
has the
most comprehensive solutions to meet your application security
penetration
testing and vulnerability management needs. You have an option to go
with a
managed service (Cenzic ClickToSecure) or an enterprise software
(Cenzic Hailstorm). Download FREE whitepaper on how a managed service
can
help you: http://www.cenzic.com/news_events/wpappsec.php
And, now for a limited time we can do a FREE audit for you to confirm
your
results from other product. Contact us at request@cenzic.com for
details.
------------------------------------------------------------------------
------

------------------------------------------------------------------------------
This List Sponsored by: Cenzic

Concerned about Web Application Security?
Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
Choice Award from eWeek. As attacks through web applications continue to rise,
you need to proactively protect your applications from hackers. Cenzic has the
most comprehensive solutions to meet your application security penetration
testing and vulnerability management needs. You have an option to go with a
managed service (Cenzic ClickToSecure) or an enterprise software
(Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
help you: http://www.cenzic.com/news_events/wpappsec.php
And, now for a limited time we can do a FREE audit for you to confirm your
results from other product. Contact us at request@cenzic.com for details.
------------------------------------------------------------------------------



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:56:05 EDT