02-06-2021 04:11 PM
So I'm studying for CCNA exam, I was watching a instructional video that wants me to create a VLAN on a Cisco router, with the vlan <number> command in global configuration mode.
I'm using Cisco router 1921 (with a HWIC-4ESW module installed, that proves 4 ethernet ports) on Packet Tracer. Clearly I'm doing something wrong, but don't know what is it?
Solved! Go to Solution.
02-07-2021 06:35 AM
those guys take old way of vlan commands; when in doubt, always use ?
Router#vlan ?
database Configure VLAN database
Router#vlan 10
^
% Invalid input detected at '^' marker.
Router#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Router(vlan)#
Router(vlan)#exit
APPLY completed.
Exiting....
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#vlan ?
% Unrecognized command
Router(config)#vlan
Regards, ML
**Please Rate All Helpful Responses **
02-07-2021 03:55 AM - edited 02-07-2021 03:57 AM
here is the guide for WIC switch module config :
In general config :
ROUTER
========
!
interface gig0/0
no shut
!
interface gig0/0.10 <-- sub interface tagging to VLAN
Description Vlan 10
encapsulation dot1q 10
ip address 10.10.10.10 255.255.255.0 <<- example IP change as per requirement)
SWITCH SIDE Trunking
===============
confis t
!
vlan 10
!
interface Gi0/0 or FA 0/0 - change the interface as per requiremetn
switchport mode trunk <- this will allow all VLAN 1-4096)
!
! Tagging port to acces switch VLAN 10
!
interface Gi 0/1 -- where end device connected
switchport accesss
switchport access vlan 10
08-18-2024 05:10 AM
Many thanks. It was most helpful in project work. Appreciated.
02-07-2021 06:35 AM
those guys take old way of vlan commands; when in doubt, always use ?
Router#vlan ?
database Configure VLAN database
Router#vlan 10
^
% Invalid input detected at '^' marker.
Router#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Router(vlan)#
Router(vlan)#exit
APPLY completed.
Exiting....
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#vlan ?
% Unrecognized command
Router(config)#vlan
Regards, ML
**Please Rate All Helpful Responses **
02-07-2021 06:58 AM
Than VLAN database seems to work, I can now create VLANS.
Maybe it's because the instructor of the video was using a 1921 switch? Can't select this model on packet tracer. He created the VLANS in Global config mode
02-07-2021 07:25 AM - edited 02-07-2021 07:27 AM
my PT doesn't have 1921, only 1941, I think 1921 was in older PT version. as PT goes thru upgrades/updates of versions, new devices are added and some old are removed. Some commands work and some don't; PT is just a simulator -not real thing. overall, it does not matter as long you figure out what works or takes.
btw. new PT 8 version is released !
Regards, ML
**Please Rate All Helpful Responses **
02-07-2021 07:37 AM - edited 02-07-2021 07:40 AM
I am now begining to think I should had started a video course where they only use packet tracer. Commands that he uses don't seem to work on my pc.
For example, I'm now trying to configure a trunk on a interface port, but the command "switchport mode trunk vlan" is not recognized.
EDIT: forget it, I'm a moron, I was selecting the wrong interface port
Many thanks for the help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide