It-321 - Project 2 Script

Only available on StudyMode
  • Download(s) : 27
  • Published : January 15, 2013
Open Document
Text Preview
switchport mode trunk
int fa1/0
no shutdown
exit
int fa1/0.1
encapsulation dot1q 1
ip address 172.16.1.1 255.255.255.0
no shutdown
exit
int fa1/0.10
encapsulation dot1q 10
ip address 172.16.10.1 255.255.255.0
no shutdown
exit
int fa1/0.20
encapsulation dot1q 20
ip address 172.16.20.1 255.255.255.0
no shutdown
exit

vlan 10
name Accounting
exit
vlan 20
name Marketing
exit

int fa0/1
switchport mode trunk
no shutdown
exit
int fa0/2
switchport mode trunk
no shutdown
exit
int fa0/3
switchport mode trunk
no shutdown
exit

int vlan 1
ip address 172.16.1.4 255.255.255.0
no shutdown
ip default-gateway 172.16.1.1

int fa0/4
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/5
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/6
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/7
switchport mode access
switchport access vlan 20
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/8
switchport mode access
switchport access vlan 20
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/9
switchport mode access
switchport access vlan 20
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/10
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/11
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/12
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/13
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/14
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/15
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/16
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/17
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/18
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
no shutdown
exit
int fa0/19
switchport mode access
switchport port-security
switchport...
tracking img