! ! DESCRIPTION: ! DENNE TEMPLATE ER FOR: ! DISTRIBUTION SWITCH ONE I HERNING (DHSW1) ! ! SVENDEPROVEN AUGUST 2016 - ! MERCANTEC - VIBORG ! ! UARB. AF THOMAS HANSEN ! ! -------------------------------------------------------------------------------------- ! - INITIAL CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! hostname DHSW1 ! username admin secret cisco enable secret CISCO ! line console 0 login local exec-timeout 30 exit ! line vty 0 15 login local exec-timeout 30 exit ! sdm prefer dual-ipv4-and-ipv6 routing end write memory ! ! -------------------------------------------------------------------------------------- ! - VTP CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! vtp domain DTL vtp version 3 vtp mode server vtp password cisco hidden end ! vtp primary vlan ! ! -------------------------------------------------------------------------------------- ! - INTERFACE CUSTOMER EDGE CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! ip routing ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface FastEthernet 0/1 description DHSW1 TO PE1 no switchport ip address 172.16.1.2 255.255.255.252 duplex full speed 100 no shutdown ! end write memory ! ! -------------------------------------------------------------------------------------- ! - VLAN + HSRP CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! vlan 10 name OFFICE interface vlan 10 ip address 10.1.10.1 255.255.255.0 ip helper-address 10.1.50.20 ip helper-address 10.2.50.20 standby 10 ip 10.1.10.5 standby 10 preempt standby 10 priority 110 no shutdown exit ! vlan 20 name PRODUCTION interface vlan 20 ip address 10.1.20.1 255.255.255.0 ip helper-address 10.1.50.20 ip helper-address 10.2.50.20 standby 20 ip 10.1.20.5 standby 20 preempt standby 20 priority 110 no shutdown exit ! vlan 30 name GUEST interface vlan 30 ip address 10.1.30.1 255.255.255.0 ip helper-address 10.1.50.20 ip helper-address 10.2.50.20 standby 30 ip 10.1.30.5 standby 30 preempt standby 30 priority 110 no shutdown exit ! vlan 40 name DMZ interface vlan 40 ip address 10.1.40.1 255.255.255.0 ip helper-address 10.1.50.20 ip helper-address 10.2.50.20 standby 40 ip 10.1.40.5 standby 40 preempt standby 40 priority 110 no shutdown exit ! vlan 50 name SERVERS interface vlan 50 ip address 10.1.50.1 255.255.255.0 ip helper-address 10.1.50.20 ip helper-address 10.2.50.20 standby 50 ip 10.1.50.5 standby 50 preempt no shutdown exit ! vlan 99 name MANAGEMENT interface vlan 99 ip address 10.1.99.1 255.255.255.0 ip helper-address 10.1.50.20 ip helper-address 10.2.50.20 standby 99 ip 10.1.99.5 standby 99 preempt no shutdown exit ! vlan 100 name INTERNET interface vlan 100 ip address 10.1.100.1 255.255.255.0 standby 100 ip 10.1.100.5 standby 100 preempt standby 100 priority 110 no shutdown exit ! vlan 666 name NATIVE_DO_NOT_USE interface vlan 666 no shutdown exit ! end write memory ! ! -------------------------------------------------------------------------------------- ! - ETHERCHANNEL (TRUNK) CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! interface range FastEthernet 0/3-6 switchport trunk encapsulation dot1q switchport trunk native vlan 666 switchport mode trunk switchport nonegotiate switchport trunk allowed vlan except 1 no shutdown exit ! interface range FastEthernet 0/3-4 shutdown channel-group 1 mode active no shutdown exit ! interface range FastEthernet 0/5-6 shutdown channel-group 3 mode active no shutdown exit ! end write memory ! ! -------------------------------------------------------------------------------------- ! - INTERFACE CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! interface FastEthernet 0/2 description DHSW1 TO FWH1 switchport mode access switchport access vlan 100 speed 100 duplex full no shutdown exit ! interface range FastEthernet 0/7-8 description NOT IN USE no switchport shutdown exit ! interface GigabitEthernet 0/1 description NOT IN USE no switchport shutdown exit ! end write memory ! ! -------------------------------------------------------------------------------------- ! - OSPF CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! router ospf 1 redistribute static subnets metric 10 network 1.1.1.1 0.0.0.0 area 0 network 10.1.10.0 0.0.0.255 area 0 network 10.1.20.0 0.0.0.255 area 0 network 10.1.30.0 0.0.0.255 area 0 network 10.1.50.0 0.0.0.255 area 0 network 10.1.99.0 0.0.0.255 area 0 network 10.1.100.0 0.0.0.255 area 0 network 172.16.1.0 0.0.0.3 area 0 exit ! ip route 0.0.0.0 0.0.0.0 10.1.100.4 end ! write memory !