Cmd

213 views
165 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
213
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cmd

  1. 1. enableconf thostname BRANCHenable secret classline con 0password ciscologinlogging syncexec-timeout 0 0line vty 0 4password ciscologinexitno ip domain-lookupbanner motd #authorized acces only !#service password-encryptionenableconf thostname ASW2enable secret classline con 0password ciscologinlogging syncexec-timeout 0 0line vty 0 15password ciscologinno ip domain-lookupbanner motd # AUTHORIZED ACCESS ONLY! #show ip interface briefconf tinterface range fa0/1-24shutdowninterface range Gi1/1-2shutdownvlan 10name RESS-HUMvlan 20name FINANCEvlan 30name INGvlan 40name STORAGEvlan 50name WIFIvlan 99name Gestion/Natifswitchport mode accessswitchport port-security maximum 1
  2. 2. switchport port-security violation shutdownswitchport port-security mac-address stickyswitchport port-securityinterface fa0/2switchport mode accessswitchport access vlan 99no shutdowninterface fa0/3switchport mode accessswitchport access vlan 40no shutdowninterface fa0/10switchport mode accessswitchport access vlan 10no shutdowninterface fa0/15switchport mode accessswitchport access vlan 20no shutdowninterface fa0/20switchport mode accessswitchport access vlan 30no shutdowninterface Vlan99ip address 10.13.4.2 255.255.255.240no shutdownip default-gateway 10.13.4.1interface Vlan99ip address 10.13.4.3 255.255.255.240no shutdownip default-gateway 10.13.4.1interface Vlan99ip address 10.13.4.4 255.255.255.240no shutdownip default-gateway 10.13.4.1interface Vlan99ip address 10.13.4.5 255.255.255.240no shutdownip default-gateway 10.13.4.1interface Vlan99ip address 10.13.4.6 255.255.255.240no shutdownip default-gateway 10.13.4.1interface Gi1/1switchport trunk native vlan 99switchport trunk allowed vlan 10,20,30,40,50,99switchport mode trunkno shutdowninterface Gi1/2
  3. 3. switchport trunk native vlan 99switchport trunk allowed vlan 10,20,30,40,50,99switchport mode trunkno shutdowninterface FastEthernet0/1switchport trunk native vlan 99switchport trunk allowed vlan 10,20,30,40,50,99switchport mode trunkno shutdowninterface FastEthernet0/2switchport trunk native vlan 99switchport trunk allowed vlan 10,20,30,40,50,99switchport mode trunkno shutdownswitchport mode accessswitchport port-security maximum 1switchport port-security violation shutdownswitchport port-security mac-address stickyswitchport port-securityinterface FastEthernet0/0no ip addressno shutdowninterface FastEthernet0/0.10encapsulation dot1Q 10ip address 10.13.0.1 255.255.255.0interface FastEthernet0/0.20encapsulation dot1Q 20ip address 10.13.1.1 255.255.255.0interface FastEthernet0/0.30encapsulation dot1Q 30ip address 10.13.2.1 255.255.255.0interface FastEthernet0/0.40encapsulation dot1Q 40ip address 10.13.4.17 255.255.255.248interface FastEthernet0/0.50encapsulation dot1Q 50ip address 10.13.3.1 255.255.255.0interface FastEthernet0/0.99encapsulation dot1Q 99ip address 10.13.4.1 255.255.255.24032768switch(config)#spanning-tree mode rapid-pvstswitch(config)#spanning-tree vlan <num> priority <num>switch(config)#spanning-tree vlan <num> root primaryswitch(config)#spanning-tree vlan <num> root secondary
  4. 4. interface range fa 0/10 - 24switchport mode accessspanning-tree portfastshow spanning-tree summaryvtp mode servervtp domain BRANCHvtp passwordshow vtp statusvtp mode clientvtp domain BRANCHvtp passwordshow vtp status

×