Difference between CLI-based switch and IOS-based Cisco switch?

Posted on 2007-10-17
Last Modified: 2010-05-18
Hi All,

Trying to configure VLAN trunk on Cisco switch.

IOS-based says:
Switch(config)# interface interface mod/port
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation {isl | dot1q}
Switch(config-if)# switchport trunk allowed vlan remove vlan-list
Switch(config-if)# switchport trunk allowed vlan add vlan-list

CLI-based says:
Switch(enable) set trunk module/port [on | off | desirable | auto | nonegotiate] vlan-range [isl | dot1q | dot10 | lane | negotiate]

Where do you look to see what you have?

show version comes to mind?

Tried googling web/ ee first, but no go.

Many thanks in advance.

Question by:Im_All_Ears
    LVL 50

    Expert Comment

    by:Don Johnston
    CatOS: "show trunk"
    IOS: "show interface trunk"

    Author Comment

    Appreciate the help Don,

    Though was also hoping to get some advice on differentiating between CLI and IOS-based switch?

    I assumed when I am on an IOS switch, I thought I used the CLI to issue commands?

    But now I see there are different ways to configure each, DEPENDING if you're on a CLI or IOS-based switch.

    Apologies for not being more clear in what I was asking for.
    LVL 50

    Accepted Solution

    CLI=Command Line Interface.

    This does not indicate whether you are referring to CatOS or IOS. They are two different operating systems. Many of the commands are completely different while some are the same.

    Is there something specific you need to know?

    Author Comment

    Based on what you've told me, I searched a bit more...

    CLI-based switches:
    1) commands are "set-based"
    2) use "set" and "clear" commands
    3) used on older switches
    4) CatOS switches use commands like:
    set port name 3/1 To Router1
    set port speed 3/1 100
    set port duplex 3/1 full
    set vlan 12 3/1

    IOS-based switches:
    1) similar to routers
    2) used on newer switches
    2) CatIOS switches us commands like:
    interface fastethernet3/1
    description To Router1
    speed 100
    duplex full
    switchport access vlan 12

    Thanks for taking the time to reply.

    Gonna go ahead and close this one.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    I see many questions here on Experts Exchange regarding switch port configurations and trunks. This article is meant for beginners in the subject to help to get basic knowledge about Virtual Local Area Network (VLAN (…
    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now