The switch connected to RouterB allows VLAN 20.Īfter the configuration is complete, PCs on the two Layer 2 networks are isolated at Layer 2 and interwork at Layer 3. Using the Switchport mode access command forces the port to be an access port while and any device plugged into this port will only be able to communicate with other devices that are in the same VLAN.
# On the PCs residing on the Layer 2 network connected to RouterB, set theĭefault gateway address to 10.10.20.1/24, which is the IP address of GE2/0/0.1. Access ports are part of only one VLAN and normally used for terminating end devices likes PC, Laptop and printer. S1-1(config)interface range f0/1-S1-1(config-if-range)switchport port-security. switchport port-security mac-address :tu vas a tener que ingresar manualmente la mac switchport port-security mac-address sticky :el switch aprende dinamicamente la Mac del dispositivo que conectes. Configure the MAC address of PC-A as a static address on port FastEthernet0/1. Ports should add the learned MAC addresses to the running configuration. After you have set the maximum number of secure MAC addresses on a port, the secure addresses are included in an address table in one of these ways: You can configure all secure MAC addresses by using the switchport port-security mac-address macaddress interface configuration. The switch connected to RouterA allows VLAN 10. MAC addresses should be present in the MAC address table for a maximum of 10 minutes before they are removed. identified secure MAC addresses, a security violation occurs.
# On the PCs residing on the Layer 2 network connected to RouterA, set the default gateway address to 10.10.10.1/24, which is the IP address of GE1/0/0.1. If you issue a show switchport port-security youll see the configured MAC there, but not in the show run In order to have it in your running configuration, you have to use the STICKY keyword: switchport port-security mac-address sticky# Assign an IP address to a VLANIF interface.