cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13809
Views
0
Helpful
5
Replies

Create VLAN on a router

J_Maia
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

Martin L
VIP
VIP

 

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 **

View solution in original post

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

here is the guide for WIC switch module config :

 

https://www.cisco.com/c/en/us/td/docs/routers/access/interfaces/software/feature/guide/geshwic_cfg.html#pgfId-1107195

 

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Martin L
VIP
VIP

 

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 **

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

 

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 **

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: