Re: Physical ports in IOS

From: lion nagar (lionbsd@gmail.com)
Date: Wed Jun 14 2006 - 17:11:33 EDT


"show interfaces fastethernet 0/3" would show you the interface details.
"show interfaces" alone will most probably give you the list of
interfaces and their details.

"show vlan" will give you the vlans and interfaces on that vlan.

i assume you have the "enable" access

conf t -> int fa 0/3 -> switchport acces vlan <vlan number>
this would put you on a different vlan.

getting only the mac address on that output must be a very old IOS (?)
or if you just got there through another point and you dont get the
whole output and only the first line or 2

try "sh ip int brief" as well should give you list of interfaces....

Lior

On 6/14/06, Dan Bogda <dan.bogda@kintera.com> wrote:
> 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 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:06 EDT