Anda di halaman 1dari 5

Thanks for downloading this article. Please visit back : Rahmatmh.

com
© 2010
Lab Activity 2.5.1: Basic Switch Configuration
Topology

Addresing Table

Device Interface IP Address Subnet Mask Default Gateway


PC1 NIC 172.17.99.21 255.255.255.0 172.17.99.1
PC2 NIC 172.17.99.22 255.255.255.0 172.17.99.1
S1 VLAN99 172.17.99.11 255.255.255.0 172.17.99.1

Initial Port Assignments Assignment Network


(Switches 2 and 3) Ports
Fa0/1 – 0/5 802.1q Trunks (Native VLAN 99) 172.17.99.0 /24
Fa0/6 – 0/10 VLAN 30 – Guest (Default) 172.17.30.0 /24
Fa0/11 – 0/17 VLAN 10 – Faculty/Staff 172.17.10.0 /24
Fa0/18 – 0/24 VLAN 20 – Students 172.17.20.0 /24

The Commands
!!!!!BASIC SWITCH CONFIGURATION!!
enable
configure terminal
hostname S1
line console 0
password cisco
login
exit
line vty 0 15
password cisco
login
exit

1 Please visit back our website: Rahmatmh.com, Thanks | University of Lancang Kuning, Pekanbaru, Riau
Thanks for downloading this article. Please visit back : Rahmatmh.com
© 2010
enable secret class
enable password cisco

!!!!!CREATE VLAN !!!


vlan 99
name Management
exit

!!!!!Assign IP Management a Switch !!!


interface vlan99
ip address 172.17.99.11 255.255.255.0
no shutdown
exit

!!! Assign ports to the switch VLAN!!


int f0/1
switchport access vlan 99
exit
int f0/8
switchport access vlan 99
exit
int f0/18
switchport access vlan 99
exit

!!!Set the switch default gateway!!


ip default-gateway 172.17.99.1
exit

!!Configure the port speed and duplex settings for a Fast Ethernet interface!!
int f0/18
speed 100
duplex full
end

!!empty mac-address-table!!
clear mac-address-table dynamic

!!Set up a static MAC address!!


no mac-address-table static 0002.16E8.C285 vlan 99 interface fastethernet 0/18

2 Please visit back our website: Rahmatmh.com, Thanks | University of Lancang Kuning, Pekanbaru, Riau
Thanks for downloading this article. Please visit back : Rahmatmh.com
© 2010
!!!Assign Port security!!
int f0/18
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation shutdown
exit

Lab 3.5.1: Basic VLAN Configuration

Topology

3 Please visit back our website: Rahmatmh.com, Thanks | University of Lancang Kuning, Pekanbaru, Riau
Thanks for downloading this article. Please visit back : Rahmatmh.com
© 2010
Addresing Table

Device (Hostname) Interface IP Address Subnet Mask Default Gateway


S1 VLAN 99 172.17.99.11 255.255.255.0 N/A
S2 VLAN 99 172.17.99.12 255.255.255.0 N/A
S3 VLAN 99 172.17.99.13 255.255.255.0 N/A
PC1 NIC 172.17.10.21 255.255.255.0 172.17.10.1
PC2 NIC 172.17.20.22 255.255.255.0 172.17.20.1
PC3 NIC 172.17.30.23 255.255.255.0 172.17.30.1
PC4 NIC 172.17.10.24 255.255.255.0 172.17.10.1
PC5 NIC 172.17.20.25 255.255.255.0 172.17.20.1
PC6 NIC 172.17.30.26 255.255.255.0 172.17.30.1

The Commands
!!Create VLAN!!
vlan 10
name faculty/staff
exit
vlan 20
name students
exit
vlan 30
name guest
exit
vlan 99
name management
exit

!!!Assign ports to the switch VLAN!!!


interface range fa0/6 - 10
switchport access vlan 30
exit
interface range fa0/11 - 17
switchport access vlan 10
exit
interface range fa0/18 - 24
switchport access vlan 20
end

!!Assign IP Management S1
interface vlan 99
ip address 172.17.99.11 255.255.255.0
no shutdown

4 Please visit back our website: Rahmatmh.com, Thanks | University of Lancang Kuning, Pekanbaru, Riau
Thanks for downloading this article. Please visit back : Rahmatmh.com
© 2010
!!Assign IP Management S2
interface vlan 99
ip address 172.17.99.12 255.255.255.0
no shutdown

!!Assign IP Management S3
interface vlan 99
ip address 172.17.99.13 255.255.255.0
no shutdown

!!Enable Trunk
interface range fa0/1 - 5
switchport mode trunk
switchport trunk native vlan 99
no shutdown
end

Our Instructor: Mr. Jeff (http://www.facebook.com/jafilun)


Class was held on Sat, June 5, 2010

5 Please visit back our website: Rahmatmh.com, Thanks | University of Lancang Kuning, Pekanbaru, Riau

Anda mungkin juga menyukai