I am working on lab in which I am having some problems with dhcp leasing ip address. I setup vlans on one of my switches but it seems my vlans are blocking packets.
Can explain what wrong?
Router cfg:
hostname Router
ip ssh version 1
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 1 native
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.50
encapsulation dot1Q 50
ip address 192.168.50.1 255.255.255.0
!
interface FastEthernet0/0.99
encapsulation dot1Q 99
ip address 192.168.99.1 255.255.255.0
!
interface FastEthernet0/0.150
encapsulation dot1Q 150
ip address 192.168.150.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip dhcp pool VOIP
network 192.168.150.0 255.255.255.0
default-router 192.168.150.1
!
no cdp run
!
line con 0
line vty 0 4
login
!
!
end
Here on Switch0 is where my problems are occuring:
hostname Switch0
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
interface FastEthernet0/1
switchport trunk allowed vlan 1-99
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
switchport mode access
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
switchport access vlan 50
switchport mode access
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
switchport access vlan 99
switchport mode access
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan50
no ip address
!
interface Vlan99
ip address 192.168.99.2 255.255.255.0
!
line con 0
!
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
!
end
Can explain what I am doing wrong. I am unable to post diagram of the entire network.