al4629740
asked on
VLAN and cisco swtches question
On a typical cisco 2960, I am trying to understand how to program it. First of all what is a vLAN and what is the purpose of programming a switch with a vLAN?
ASKER
So if I had phones and computers hooked up exclusively on this switch, would the programming be different for each port?
>So if I had phones and computers hooked up exclusively on this switch, would the programming be different for each port?
By design, you should have the phones separated from the rest of the network, so yes, the programming would be different for switchports:
!
vlan 10
name LAN
!
vlan 20
name VoIP
interface GigabitEthernet0/1
description computer1
switchport access vlan 10
switchport mode access
no shut
!
interface GigabitEthernet0/2
description computer2
switchport access vlan 10
switchport mode
!
interface GigabitEthernet0/1
description phone1
switchport access vlan 20
switchport mode access
no shut
!
interface GigabitEthernet0/3
description phone2
switchport access vlan 20
switchport mode
By design, you should have the phones separated from the rest of the network, so yes, the programming would be different for switchports:
!
vlan 10
name LAN
!
vlan 20
name VoIP
interface GigabitEthernet0/1
description computer1
switchport access vlan 10
switchport mode access
no shut
!
interface GigabitEthernet0/2
description computer2
switchport access vlan 10
switchport mode
!
interface GigabitEthernet0/1
description phone1
switchport access vlan 20
switchport mode access
no shut
!
interface GigabitEthernet0/3
description phone2
switchport access vlan 20
switchport mode
ASKER
so if i understand your programming.
You essentially made two vlans. One for data and one for voice.
interface 1 and 3 are for phones and 1 and 2 are for computers?
The ports can be dual setup for both phone and computer?
Also what is the statement "switchport access vlan 20" doing?
You essentially made two vlans. One for data and one for voice.
interface 1 and 3 are for phones and 1 and 2 are for computers?
The ports can be dual setup for both phone and computer?
Also what is the statement "switchport access vlan 20" doing?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here is a simple config for your switch:
!
vlan 10
name network1
!
vlan 20
name network2
!
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
no shut
!
interface GigabitEthernet0/2
switchport access vlan 20
switchport mode access
no shut
!
interface Vlan1
description management
ip address 192.168.1.10 255.255.255.0
no ip route-cache
no shut
Billy