You are on page 1of 2

R1#config t

Enter configuration commands, one per line. End with CNTL/Z.


interface fastethernet0/0.5
encapsulation dot1q 5
ip address 5.5.5.10 255.255.255.0
interface fastethernet0/0.10
encapsulation dot1q 10
ip address 192.168.10.1 255.255.255.0
interface fastethernet0/0.11
encapsulation dot1q 11
ip address 11.11.11.1 255.255.255.0
interface fastethernet0/0.18
encapsulation dot1q 18
ip address 18.18.18.1 255.255.255.0

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

no ip domain-lookup
enable secret class

line con 0
pass cisco
login
line vty 0 15
pass cisco
login
exit
vtp mode transparent
vlan 5
exit
interface vlan 5
ip address 5.5.5.3 255.255.255.0
vlan 5
int r f0/1-24
switchport mode access

S2
vlan 5
int r f0/1-24
switchport mode access

interface fa0/11
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation shutdown
interface fa0/18
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation shutdown

interface range fastethernet 0/1-4


switchport mode trunk

50%

S1(config)#vlan 18

S2#show interface fastEthernet 0/4 switchport

You might also like