Sie sind auf Seite 1von 5

Switch>enable Switch#config t Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname ALSwitch ALSwitch(config)#enable password class ALSwitch(config)#enable secret class ALSwitch(config)#line console 0 ALSwitch(config-line)#login % Login disabled on line 0, until 'password' is set ALSwitch(config-line)#password cisco ALSwitch(config-line)#line vty 04 ALSwitch(config-line)#password cisco ALSwitch(config-line)#exit ALSwitch(config)#interface vlan2 ALSwitch(config-if)#ip address 192.168.1.2 255.255.255.0 ALSwitch(config-if)#no shutdown ALSwitch(config-if)#exit ALSwitch(config)#interface fastethernet 0/1 ALSwitch(config-if)#switchport access vlan 2 ALSwitch(config-if)#exit ALSwitch(config)#interface fastethernet 0/4 ALSwitch(config-if)#switchport access vlan 2 ALSwitch(config-if)#exit ALSwitch(config)#interface fastethernet 0/1 ALSwitch(config-if)#switchport access vlan 2 ALSwitch(config-if)#exit

ALSwitch(config)#exit %SYS-5-CONFIG_I: Configured from console by console ALSwitch#copy run star Destination filename [startup-config]? Building configuration... [OK] ALSwitch# ALSwitch#

ALSwitch#config t Enter configuration commands, one per line. End with CNTL/Z. ALSwitch(config)#interface fastethernet 0/1 ALSwitch(config-if)#switchport port-security mac-address 000C.85C2.1BBB Port-security not enabled on interface FastEthernet0/1. ALSwitch(config-if)#switchport mode access ALSwitch(config-if)#switchport port-security ALSwitch(config-if)#switchport port-security mac-address sticky ALSwitch(config-if)#exit ALSwitch(config)#interface fastethernet 0/4 ALSwitch(config-if)#switchport port-security mac-address 0040.0B99.D25A Port-security not enabled on interface FastEthernet0/4. ALSwitch(config-if)#switchport mode access ALSwitch(config-if)#switchport port-security

ALSwitch(config-if)#switchport port-security mac-address sticky ALSwitch(config-if)#exit ALSwitch(config)#exit %SYS-5-CONFIG_I: Configured from console by console ALSwitch#copy run star

PASO 4.PC-CHIVA PC>ipconfig /all Physical Address................: 0001.C9EE.A066 IP Address......................: 192.168.1.3 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.168.1.1 DNS Servers.....................: 0.0.0.0 PC-ELA PC>ipconfig /all Physical Address................: 00D0.D363.C765 IP Address......................: 192.168.1.4 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.168.1.1 DNS Servers.....................: 0.0.0.0

PASO 5.User Access Verification

Password:

ALSwitch>enable Password: ALSwitch#show mac-address-table Mac Address Table -------------------------------------------

Vlan Mac Address

Type

Ports

---- -----------

-------- -----

2 0001.c9ee.a066 DYNAMIC 2 00d0.d363.c765 DYNAMIC

Fa0/1 Fa0/4

PASO 6.ALSwitch#mac-address-table Translating "mac-address-table"...domain server (255.255.255.255) % Unknown command or computer name, or unable to find computer address

PASO 7.-

Paso 8.ALSwitch#show mac Mac Address Table -------------------------------------------

Vlan Mac Address ---- -----------

Type

Ports

-------- -----

2 000c.85c2.1bbb STATIC 2 0040.0b99.d25a STATIC ALSwitch#

Fa0/1 Fa0/4

Paso 9.ALSwitch(config)#interface fastethernet 0/1 ALSwitch(config-if)#switchport port-security ALSwitch(config-if)#switchport port-security ? mac-address Secure mac address maximum Max secure addresses

violation Security violation mode <cr>

ALSwitch(config-if)#interface fastethernet 0/4 ALSwitch(config-if)#switchport port-security ? mac-address Secure mac address maximum Max secure addresses

violation Security violation mode <cr>

10.-

Das könnte Ihnen auch gefallen