cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
896
Views
0
Helpful
3
Replies

VLAN

jopetik09
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Latchum Naidu
VIP Alumni
VIP Alumni

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.

View solution in original post

3 Replies 3

Mahesh Gohil
Level 7
Level 7

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

Peter Paluch
Cisco Employee
Cisco Employee

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

Latchum Naidu
VIP Alumni
VIP Alumni

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.

Review Cisco Networking for a $25 gift card