12-24-2010 04:29 AM - edited 03-06-2019 02:41 PM
Hi All,
First of all I am very new to cisco products.
Can someone give me any example config how to create a VLAN in L3 switch Cisco 4507r
It would be great help to me.
Jopeti.
Solved! Go to Solution.
12-24-2010 04:37 AM
Hi Jopeti,
No problem, we are here to help you.
Please do the below config in your switch to get creat a new VLAN.
1. Log in to your switch
2. Go to configuration mode (Switch>enable, it will take you to enable mode and then enter #config t)
Now do the config like below in your switch....
interface Vlan22 ---->Vlan number
description ---> you can give the correct desctiption for this vlan
ip address 10.10.10.1 255.255.255.0 ---> IP address, this would be your default gateway for your all client pc's in this vlan
no ip redirects
no ip proxy-arp
Now go to any switch port say example interface gi4/30
and give below command....
switchport access vlan 55 ----> this will enable the port gi4/30 in vlan 55
And now assign any IP from that pool (10.10.10.1 - 10.10.10.254) and subnet mask 255.255.255.0 and default gateway 10.10.10.1
Now that pc is able to communication with other pc's which are in the same VLAN.
Please rate if this helps you....
Regards,
Naidu.
12-24-2010 04:36 AM
Hello Jopeti,
Step-1
#conf t
#vlan 101
#name TEST
Step-2 to assign
2.1 access-port
int fa0/0
switchport
switchport mode access
switchport access vlan 101
2.2 Trunk port
int fa0/0
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 101
To create vlan interface after creating vlan as in step-1
int vlan 101 << To assign ip on switch vlan interface (svi)
ip address x.x.x.x y.y.y.y
no shut <<< mandatory
Regards
Mahesh
12-24-2010 04:37 AM
Hello Jopeti,
There are two issues to create a VLAN: the first one is actually defining the VLAN including its unique number and optionally some of its other attributes - most often, its name. A second issue is creating an interface for this VLAN on the multilayer switch that can serve as the default gateway for stations in that VLAN. The first step must always be done, the second step should be done only if you know that this multilayer switch is going to provide routing functions for the VLAN in question.
Proceed as follows:
enable
configure terminal
! The first step
vlan 999 ! Enter your VLAN number here
name VLAN-Name ! Enter your VLAN name here (optional)
exit
! The second step
interface Vlan999
ip address 192.0.2.1 255.255.255.0
Best regards,
Peter
12-24-2010 04:37 AM
Hi Jopeti,
No problem, we are here to help you.
Please do the below config in your switch to get creat a new VLAN.
1. Log in to your switch
2. Go to configuration mode (Switch>enable, it will take you to enable mode and then enter #config t)
Now do the config like below in your switch....
interface Vlan22 ---->Vlan number
description ---> you can give the correct desctiption for this vlan
ip address 10.10.10.1 255.255.255.0 ---> IP address, this would be your default gateway for your all client pc's in this vlan
no ip redirects
no ip proxy-arp
Now go to any switch port say example interface gi4/30
and give below command....
switchport access vlan 55 ----> this will enable the port gi4/30 in vlan 55
And now assign any IP from that pool (10.10.10.1 - 10.10.10.254) and subnet mask 255.255.255.0 and default gateway 10.10.10.1
Now that pc is able to communication with other pc's which are in the same VLAN.
Please rate if this helps you....
Regards,
Naidu.
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