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

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.

Im_All_EarsAsked:
Who is Participating?
 
Don JohnstonConnect With a Mentor InstructorCommented:
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?
0
 
Don JohnstonInstructorCommented:
CatOS: "show trunk"
IOS: "show interface trunk"
0
 
Im_All_EarsAuthor Commented:
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.
0
 
Im_All_EarsAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.