I have a router with some inter-vlan connections on, the router is connected to a switch, which is connected to 3 PC's on different vlans and then the switch is connected to another router which is the DHCP server. I cannot seem to get the DHCP requests working.
Structure
R1
- Switch
: 3 PC's
(PC1: VLAN30, PC2: VLAN40, PC3: VLAN50), R2 - DHCP Router
.
R1 Commands
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 172.16.30.1 255.255.255.224
interface GigaEth0/1.40
encap dot1Q 40
ip add 172.16.40.1 255.255.255.224
int GigaEth0/1.50
encap dot1Q 50
ip add 172.16.50.1 255.255.255.224
Switch commands
PC 1 - switchport access vlan 30
PC 2 - switchport access vlan 40
PC 3 - switchport access vlan 50
Link back to R1 - trunk link
DHCP Router
ip dhcp excluded-address 172.16.30.1
ip dhcp excluded-address 172.16.40.1
ip dhcp excluded-address 172.16.50.1
ip dhcp pool forVLAN30
network 172.16.30.0 255.255.255.224
default-router 172.16.30.1
ip dhcp pool forVLAN40
network 172.16.40.0 255.255.255.224
default-router 172.16.40.1
ip dhcp pool forVLAN50
network 172.16.50.0 255.255.255.224
default-router 172.16.50.1
- link back to switch -
ip address 172.16.50.2 255.255.255.224
For some reason the VLAN50 PC can get the DHCP request and IP but all others fail, I have tried adding helper-addresses
to see if that helps but they end up at the DHCP router and then just give up.