7 5 2 Scripts

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

7.5.1 Scripts: R1 Script hostname R1 enable secret class no ip domain-lookup ! interface FastEthernet0/1 ip address 172.17.50.1 255.255.255.0 no shutdown !

int f0/0 no ip add no shut ! interface FastEthernet0/0.10 encapsulation dot1Q 10 ip address 172.17.10.1 255.255.255.0 ! interface FastEthernet0/0.20 encapsulation dot1Q 20 ip address 172.17.20.1 255.255.255.0 ! interface FastEthernet0/0.99 encapsulation dot1Q 99 native ip address 172.17.99.1 255.255.255.0 ! interface Loopback0 ip address 10.1.1.1 255.255.255.252 ! line console 0 password cisco login ! line vty 0 4 password cisco login ! ip route 172.17.30.0 255.255.255.0 172.17.99.35 ip route 172.17.40.0 255.255.255.0 172.17.99.25 ! end

S1 Script: enable configure terminal host S1 no ip domain-lookup enable secret class ! ! line con 0 password cisco login !

line vty 0 15 password cisco login ! vtp mode trans ! vlan 10 name Faculty/Staff ip add 172.17.10.0 255.255.255.0 vlan 20 name Students ip add 172.17.20.0 255.255.255.0 vlan 99 name Wireless(Guest) ip add 172.17.99.0 255.255.255.0 ! int f0/5 encap dot1q switch mode trunk ! int f0/1 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/2 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/3 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/4 switch mode trunk switch trunk allowed 10,20,99 no shut ! end

S2 Script: enable configure terminal host S2 no ip domain-lookup enable secret class ! ! line con 0 password cisco login !

line vty 0 15 password cisco login ! vtp mode trans ! vlan 10 name Faculty/Staff ip add 172.17.10.0 255.255.255.0 vlan 20 name Students ip add 172.17.20.0 255.255.255.0 vlan 99 name Wireless(Guest) ip add 172.17.99.0 255.255.255.0 ! int f0/1 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/2 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/3 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/4 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/7 switch mode acc switch access vlan 99 ! int f0/11 switch mode acc switch access vlan 10 switch port-sec switch port-sec mac-add sticky switch port-sec max 100 ! int f0/18 switch mode acc switch acc vlan 20 switch port-sec switch port-sec mac-add sticky switch port-sec max 100 ! end S3 Script:

enable configure terminal host S3 no ip domain-lookup enable secret class ! ! line con 0 password cisco login ! line vty 0 15 password cisco login ! vtp mode trans ! vlan 10 name Faculty/Staff ip add 172.17.10.0 255.255.255.0 vlan 20 name Students ip add 172.17.20.0 255.255.255.0 vlan 99 name Wireless(Guest) ip add 172.17.99.0 255.255.255.0 ! int f0/1 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/2 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/3 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/4 switch mode trunk switch trunk allowed 10,20,99 no shut ! int f0/7 switch access vlan 99 switch mode trunk ! end

You might also like