file : Gdrive
Switch(config)#hostname S1
S1(config)#vlan 10
S1(config-vlan)#name student
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name admin
S1(config-vlan)#end
S1#copy running-config startup-config
S1#
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name admin
S1(config-vlan)#end
S1#copy running-config startup-config
S1#
S1(config)#interface range fa0/1-fa0/9
S1(config-if-range)#switchport mode access
S1(config-if-range)#switchport access vlan 10
S1(config-if-range)#exit
S1(config-if-range)#switchport mode access
S1(config-if-range)#switchport access vlan 10
S1(config-if-range)#exit
S1(config)#interface range fa0/10-fa0/15
S1(config-if-range)#switchport mode access
S1(config-if-range)#switchport access vlan 20
S1(config-if-range)#end
S1#copy running-config startup-config
S1#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig0/1, Gig0/2
10 student active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9
20 admin active Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15
---- -------------------------------- --------- -------------------------------
1 default active Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig0/1, Gig0/2
10 student active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9
20 admin active Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15
S1(config)#
S1(config)#int Gig0/1
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk allowed vlan all
S1(config-if)#end
S1#copy running-config startup-config
S1(config)#int Gig0/1
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk allowed vlan all
S1(config-if)#end
S1#copy running-config startup-config
-----
Switch(config)#hostname S2
S2(config)#vlan 10
S2(config-vlan)#name student
S2(config-vlan)#exit
S2(config)#vlan 20
S2(config-vlan)#name admin
S2(config-vlan)#end
S2#copy running-config startup-config
S2(config)#vlan 10
S2(config-vlan)#name student
S2(config-vlan)#exit
S2(config)#vlan 20
S2(config-vlan)#name admin
S2(config-vlan)#end
S2#copy running-config startup-config
S2(config)#interface range fa0/1-fa0/9
S2(config-if-range)#switchport mode access
S2(config-if-range)#switchport access vlan 10
S2(config-if-range)#exit
S2(config-if-range)#switchport mode access
S2(config-if-range)#switchport access vlan 10
S2(config-if-range)#exit
S2(config)#interface range fa0/10-fa0/15
S2(config-if-range)#switchport mode access
S2(config-if-range)#switchport access vlan 20
S2(config-if-range)#end
S2#copy running-config startup-config
S2(config-if-range)#switchport mode access
S2(config-if-range)#switchport access vlan 20
S2(config-if-range)#end
S2#copy running-config startup-config
S2#sh vlan
VLAN Name Status Ports
---- --------------------------------
--------- -------------------------------
1
default
active Fa0/16, Fa0/17, Fa0/18,
Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig0/1, Gig0/2
Fa0/24, Gig0/1, Gig0/2
10
student
active Fa0/1, Fa0/2, Fa0/3,
Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9
20
admin
active Fa0/10, Fa0/11, Fa0/12,
Fa0/13
Fa0/14, Fa0/15
No comments :
Post a Comment