You are on page 1of 3

en

conf t
host S3
banner motd #Authorized Access Only!!#
line con 0
pass letmein
login
enable secret itsasecret
line vty 0 15
exit
enable password c1$c0
service password-en
en
conf t
int vlan 88
ip add 172.31.88.4 255.255.255.0
no shut
exit
int g0/2
ip default-gateway 172.31.88.1
exit
vlan
name
exit
vlan
name
exit
vlan
name
exit
vlan
name
exit
vlan
name
exit

10
Sales
20
Production
30
Marketing
88
Management
99
Native

int range g0/1-2


switch mode trunk
switchport trunk native vlan 99
exit
conf t
int range g0/1-2
switchport mode trunk
switchport trunk native vlan 56
switchport trunk allowed vlan 10,20,30,56
end
int f0/6
no shut
switch mode access
switchport port-security
switchport port max 2
switchport port mac-address sticky
switchport port violation restrict
exit

int range f0/1-24


shutdown
int f0/11
no shut
switch mode access
switchport port-security
switchport port max 2
exit
int f0/18
no shut
switch mode access
switchport port-security
switchport port max 2
int range f0/1-6
switch mode access
switchport access vlan 30
exit
int range f0/13-20
switch mode access
switchport access vlan 20
exit
int range f0/7-12
switch mode access
switchport access vlan 10
exit
int g0/2
sw mo trunk
switchport nonegotiate
switchport trunk native vlan 99
exit
conf t
int range f0/1-f0/5
switchport mode access
switchport access vlan 56
end
conf t
int range f0/6-f0/10
switchport mode access
switchport access vlan 30
end
conf t
int range f0/11-f0/17
switchport mode access
switchport access vlan 10
end
conf t
int range f0/18-f0/24
switchport mode access
switchport access vlan 20

end

You might also like