Sie sind auf Seite 1von 4

BASIC CONFIGURATION ------------------enable conf term hostname S1 enable secret class no ip domain-lookup ip default-gateway 172.17.99.

1 line console 0 password cisco logg sync login line vty 0 15 password cisco logg sync login end copy run start DISABLE ALL PORTS ON EACH SWITCH --------------------------------conf term interface range fa0/1-24 shutdown nterface range gi0/1-2 shutdown exit RE-ANABLE ACTIVE USER PORT IN ACCESS MODE ---------------------------------------conf term interface fa0/6 switchport mode access no shutdown interface fa0/11 switchport mode access no shutdown interface fa0/18 switchport mode access no shutdown exit CONFIGURING VLAN-s -----------------conf term interface range fa0/6, fa0/11, fa0/18 switchport mode access no shutdown end conf term int fa0/6 swi mod acc no shut int fa0/11

swi mod acc no shut int fa0/18 swi mod acc no shut end

CONFIGURING VTP --------------conf term vtp mode server vtp domain CCNA vtp password cisco end conf term vtp mode client vtp domain CCNA vtp password cisco end CONFIGURING TRUNK LINK & NATIVE VLAN -----------------------------------conf term interface range fa0/1-5 switchport mode trunk switchport trunk native vlan 99 no shutdown end conf term int fa0/1 swi mod trunk swi trunk native no shut int fa0/2 swi mod trunk swi trunk native no shut int fa0/3 swi mod trunk swi trunk native no shut int fa0/4 swi mod trunk swi trunk native no shut int fa0/5 swi mod trunk swi trunk native no shut end

vlan 99

vlan 99

vlan 99

vlan 99

vlan 99

conf term switchport trunk allowed vlan 10,20,30,99 exit CONFIGURING VTP SERVER WITH VLAN-s ---------------------------------conf vlan name vlan name vlan name vlan name end term 43 Management 20 Faculty 10 Student 67 Wireless

show vlan brief

CONFIG MANAGEMENT INTERFACE ADDRESS ----------------------------------conf term interface vlan 99 ip add 172.17.99.11 255.255.255.0

ASSIGNING SWITCH PORTS TO VLAN-s -------------------------------conf term int range fa0/1-10 switchport mode access switchport access vlan 10 int range fa0/11-17 switchport mode access swi acc vlan 20 int fa0/18 switchport mode access swi acc vlan 67 end -----------------------copy run start SPANNING-TREE PRIORiTY ----------------------------------conf term spanning-tree vlan 43 priority 8192 spanning-tree vlan 10 priority 8192

spanning-tree vlan 20 priority 8192 spanning-tree vlan 67 priority 8192 exit conf term spanning-tree vlan 10,20,30,99 root primary exit conf term spanning-tree portfast default exit Configure RSTP; conf term spanning-tree mode rapid-pvst exit Verify that STP is running correctly; show spanning-tree summary show spanning-tree sh spanning-tree vlan 99

CONFIGURE PORT SECURITY ON ACCESS ---------------------------------conf term interface fa0/2 switchport mode access switchport port-security switchport port-security maximum 2 switchport port-security mac-address sticky switchport port-security violation protect CONFIGURE TRUNKING INTERFACE ON ROUTER ---------------------------------------conf term interface FastEthernet0/1 no shutdown exit interface FastEthernet0/1.10 encapsulation dot1Q 10 ip address 172.17.10.1 255.255.255.0 exit interface FastEthernet0/1.20 encapsulation dot1Q 20 ip address 172.17.20.1 255.255.255.0 exit interface FastEthernet0/1.30 encapsulation dot1Q 30 ip address 172.17.30.1 255.255.255.0 exit interface FastEthernet0/1.99 encapsulation dot1Q 99 ip address 172.17.99.1 255.255.255.0 exit

Das könnte Ihnen auch gefallen