04-29-2008 05:59 PM - edited 03-05-2019 10:41 PM
I need to create vlans on a router via a new startup-config file. Anyone know the syntax?
04-29-2008 08:27 PM
It will all depend on your actual router and modules.
If it is a switch+router you will either have the "vlan database" exec option or the "vlan XYZ" config option.
! Old style
vlan database
vlan 100
apply
exit
show vlan-switch
!
! New Style
config t
vlan 100
exit
show vlan
!
If it is a pure router, most probably, you will have to define the vlans "indirectly" using subinterfaces. (Note: If you don't define a native VLAN then, VLAN 1 will be assumed).
!
interface Ethernet0
description Physical Interface
!
interface Ethernet0.50
description Interface for VLAN 50 (native)
encapsualtion dot1Q 50 native
!
interface Ethernet0.100
description Interface for VLAN 100
encapsulation dot1Q 100
!
HTH,
-W
/rate post if it helps
04-29-2008 10:20 PM
hi
I have this experience - even if you dont create vlan using vlan database or conf t - vlan x command - eg. in c2811 with HWIC-4ESW, if i simply make one of the HWIC port as switch port access vlan xx and create interface vlanxx. I can assign ip address to the Vlanxx and use it as a layer 3 port. So in this what is the purpose of creating vlan with vlan database or conf t command?
Tks
Jay
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: