In my network I'm using the router as a router on a stick, my problem is when setting it up as a DHCP server it gives some vlans ip's (vlan 15) and others (vlan 16)
gets an error message when trying to obtain it. (unable to contact your DHCP server. request timed out)
If I change the port with vlan 16 to vlan 15 it get's a 10.5.0.* address straight away, change it back to vlan 16 and the client cant reach the dhcp server.
There seems to be a problem with my vlans, but i can't see it in the config, any help appreciated.
Router(cisco 2600):
interface FastEthernet0/0
no ip address
duplex auto
speed auto
no clns route-cache
ip dhcp excluded-address 10.5.0.1
ip dhcp excluded-address 10.6.0.1
interface FastEthernet0/0.5
encapsulation dot1Q 15
ip address 10.5.0.1 255.255.0.0
interface FastEthernet0/0.6
encapsulation dot1Q 16
ip address 10.6.0.1 255.255.0.0
interface FastEthernet0/1
ip address 10.0.0.1 255.255.0.0
duplex auto
speed auto
no clns route-cache
router eigrp 10
network 10.0.0.0
auto-summary
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.0.2
ip dhcp pool vlan15
import all
network 10.5.0.0 255.255.0.0
dns-server 10.4.0.2
default-router 10.5.0.1
netbios-name-server 10.4.0.2
domain-name vlan.15
lease 8
update arp
!
ip dhcp pool vlan16
import all
network 10.6.0.0 255.255.0.0
dns-server 10.4.0.2
default-router 10.6.0.1
netbios-name-server 10.4.0.2
domain-name vlan.16
lease 8
update arp
interface FastEthernet0/0.5
encapsulation dot1Q 15
ip address 10.5.0.1 255.255.0.0
interface FastEthernet0/0.6
encapsulation dot1Q 16
ip address 10.6.0.1 255.255.0.0
First switch (cisco 2900):
interface FastEthernet0/1 (goes to/comes from router)
switchport trunk encapsulation dot1q
switchport mode trunk
interface FastEthernet0/9 (goes to/comes from switch two)
switchport trunk encapsulation dot1q
switchport mode trunk
Second switch (cisco 3550):
interface FastEthernet0/1 (goes to/comes from switch one)
switchport trunk encapsulation dot1q
switchport mode trunk
interface FastEthernet0/5
switchport access vlan 12
switchport mode dynamic desirable
interface FastEthernet0/7
switchport access vlan 16
switchport mode dynamic desirable
gets an error message when trying to obtain it. (unable to contact your DHCP server. request timed out)
If I change the port with vlan 16 to vlan 15 it get's a 10.5.0.* address straight away, change it back to vlan 16 and the client cant reach the dhcp server.
There seems to be a problem with my vlans, but i can't see it in the config, any help appreciated.
Router(cisco 2600):
interface FastEthernet0/0
no ip address
duplex auto
speed auto
no clns route-cache
ip dhcp excluded-address 10.5.0.1
ip dhcp excluded-address 10.6.0.1
interface FastEthernet0/0.5
encapsulation dot1Q 15
ip address 10.5.0.1 255.255.0.0
interface FastEthernet0/0.6
encapsulation dot1Q 16
ip address 10.6.0.1 255.255.0.0
interface FastEthernet0/1
ip address 10.0.0.1 255.255.0.0
duplex auto
speed auto
no clns route-cache
router eigrp 10
network 10.0.0.0
auto-summary
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.0.2
ip dhcp pool vlan15
import all
network 10.5.0.0 255.255.0.0
dns-server 10.4.0.2
default-router 10.5.0.1
netbios-name-server 10.4.0.2
domain-name vlan.15
lease 8
update arp
!
ip dhcp pool vlan16
import all
network 10.6.0.0 255.255.0.0
dns-server 10.4.0.2
default-router 10.6.0.1
netbios-name-server 10.4.0.2
domain-name vlan.16
lease 8
update arp
interface FastEthernet0/0.5
encapsulation dot1Q 15
ip address 10.5.0.1 255.255.0.0
interface FastEthernet0/0.6
encapsulation dot1Q 16
ip address 10.6.0.1 255.255.0.0
First switch (cisco 2900):
interface FastEthernet0/1 (goes to/comes from router)
switchport trunk encapsulation dot1q
switchport mode trunk
interface FastEthernet0/9 (goes to/comes from switch two)
switchport trunk encapsulation dot1q
switchport mode trunk
Second switch (cisco 3550):
interface FastEthernet0/1 (goes to/comes from switch one)
switchport trunk encapsulation dot1q
switchport mode trunk
interface FastEthernet0/5
switchport access vlan 12
switchport mode dynamic desirable
interface FastEthernet0/7
switchport access vlan 16
switchport mode dynamic desirable