I have a packet tracer file with 3 switches and 3 VLANs for a school. It is divided up into VLAN 10, 11 and 12. VLAN 10 is for classrooms 1 and 2, VLAN 11 is for classrooms 3 and 4, and VLAN 12 is for the principals office and secretary.
I am at the stage where I give each PC in each VLAN an IP address, but it does not seem to work for me as it keeps telling me APIPA is being used. I can show a configuration for each switch and I can attach a packet tracer file too if needed. I don't think I'm far from getting it working correctly. I just need someone to advise me on what I am doing wrong.
I have included DHCP pools for each VLAN in the DHCP server. Here is my switch config for each LAN switch.
hostname Lan-Switch1
!
!
!
enable secret 5 $1$mERr$nXufIEw80DqfKWVQo3J4O.
enable password 7 080C557E080A16001D1908
!
!
!
!
!
ip routing
!
!
!
!
!
!
!
!
!
!
!
!
ip ssh version 1
ip domain-name man.inishtrahill.ie
ip name-server 192.168.10.254
!
!
spanning-tree mode rapid-pvst
spanning-tree vlan 1-4094 priority 24576
!
!
!
!
!
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/3
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/4
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/5
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/7
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/8
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/9
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/10
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/11
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/12
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/13
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/14
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/15
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/16
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/17
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/18
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/19
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/20
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/21
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/22
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/23
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/24
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface GigabitEthernet0/1
switchport trunk native vlan 999
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
switchport trunk native vlan 999
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
description classroom 1 and classroom 2
ip address 192.168.10.1 255.255.255.0
ip helper-address 192.168.10.254
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
logging 192.168.10.254
line con 0
exec-timeout 6 50
password 7 080C556D061716181E0E
logging synchronous
login
!
line aux 0
!
line vty 0 4
exec-timeout 5 30
password 7 080C557A0C150B1206
logging synchronous
login
line vty 5 15
exec-timeout 5 30
password 7 080C557E080A16001D1908
logging synchronous
login
!
!
ntp authentication-key 1 md5 0832494D1B1C112713181F13253920 7
ntp server 192.168.10.254 key 0
!
end
Lan-Switch2 Config
hostname Lan-Switch2
!
enable secret 5 $1$mERr$nXufIEw80DqfKWVQo3J4O.
!
!
!
!
!
spanning-tree mode rapid-pvst
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/3
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/4
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/5
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/7
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/8
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/9
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/10
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/11
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/12
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/13
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/14
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/15
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/16
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/17
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/18
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/19
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/20
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/21
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/22
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/23
switchport access vlan 11
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface FastEthernet0/24
switchport access vlan 11
switchport mode access
spanning-tree portfast
spanning-tree guard root
!
interface GigabitEthernet0/1
switchport trunk native vlan 999
switchport mode trunk
!
interface GigabitEthernet0/2
switchport trunk native vlan 999
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
description Interface to Netman
ip address 192.168.10.2 255.255.255.0
!
interface Vlan11
description classroom 3 and classroom 4
ip address 192.168.10.2 255.255.255.0
ip helper-address 192.168.10.254
!
logging 192.168.10.254
!
!
!
line con 0
password 7 080C556D061716181E0E
logging synchronous
login
exec-timeout 6 50
!
line vty 0 4
login
line vty 5 15
login
!
!
end
Lan-Switch3 Config
hostname Lan-Switch3
!
enable secret 5 $1$mERr$nXufIEw80DqfKWVQo3J4O.
!
!
!
!
!
spanning-tree mode rapid-pvst
!
interface FastEthernet0/1
switchport access vlan 12
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/2
switchport access vlan 12
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/3
switchport access vlan 12
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/4
switchport access vlan 12
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/5
spanning-tree portfast
!
interface FastEthernet0/6
spanning-tree portfast
!
interface FastEthernet0/7
spanning-tree portfast
!
interface FastEthernet0/8
spanning-tree portfast
!
interface FastEthernet0/9
spanning-tree portfast
!
interface FastEthernet0/10
spanning-tree portfast
!
interface FastEthernet0/11
spanning-tree portfast
!
interface FastEthernet0/12
spanning-tree portfast
!
interface FastEthernet0/13
spanning-tree portfast
!
interface FastEthernet0/14
spanning-tree portfast
!
interface FastEthernet0/15
spanning-tree portfast
!
interface FastEthernet0/16
spanning-tree portfast
!
interface FastEthernet0/17
spanning-tree portfast
!
interface FastEthernet0/18
spanning-tree portfast
!
interface FastEthernet0/19
spanning-tree portfast
!
interface FastEthernet0/20
spanning-tree portfast
!
interface FastEthernet0/21
spanning-tree portfast
!
interface FastEthernet0/22
spanning-tree portfast
!
interface FastEthernet0/23
switchport access vlan 12
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/24
switchport access vlan 12
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport trunk native vlan 999
switchport mode trunk
!
interface GigabitEthernet0/2
switchport trunk native vlan 999
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
description Interface to Netman
ip address 192.168.10.3 255.255.255.0
!
interface Vlan12
description secretary and principal
ip address 192.168.10.3 255.255.255.0
ip helper-address 192.168.10.254
!
logging 192.168.10.254
!
!
!
line con 0
password 7 080C556D061716181E0E
logging synchronous
login
exec-timeout 6 50
!
line vty 0 4
login
line vty 5 15
login
!
!
end