Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
As seen in the configuration below, the line “switchport access vlan 2” configures a particular port to
VLAN2. Hence each individual interface can be assigned a different VLAN if required.
-------------------------------------------------------------------------------------------------------------
The configuration for a cisco switch to be configured from scratch is given below.
!!!Start of configs
conf t
hostname gnl-427-83-242
line con 0
login
password(see password information file)
exit
Created By Pawan Hulyalkar version 0.1
int gi0/23
switchport access vlan 2
int gi0/24
switchport access vlan 2
end
vlan database
vlan 427
vlan 427 state active
vlan 427 name public
exit
conf t
int vlan1
no ip address
end
conf t
int vlan427
ip address 152.14.83.242 255.255.255.0
no shut
end
end
Created By Pawan Hulyalkar version 0.1
ip name-server 152.1.1.206
ip name-server 152.1.1.208
int vlan1
shut
int vlan427
no shut
int gi0/1
switchport mode access
int gi0/2
switchport mode access
int gi0/3
switchport mode access
int gi0/4
switchport mode access
int gi0/5
switchport mode access
int gi0/6
switchport mode access
int gi0/7
switchport mode access
int gi0/8
switchport mode access
Created By Pawan Hulyalkar version 0.1
end
!!configure vtp
vlan database
vtp transparent
vtp domain netlabs.ncsu.edu
exit