Router on a Stick
External
DHCP
Server
DHCP Server Settings for One DHCP for Two VLANs
Example
The following settings must be programed in the DHCP
server:
•
•
•
•
•
Port A
Port E
Port B
Figure 21. Router on a Stick Example
DHCP IP Address Range
Subnet Mask
Option 03 (Router)
Option 128 (TFTP Server IP Address)
Option 129 (RTC IP Address)
Router on a Stick configuration
for FasteEthernet module 3/2
Router(config)# interface Fast 3/2.1
Router (config-if)# ip address 10.10.10.251
Router(config-if)# encapsulation dot1q vlan1
!! create subinterface 3/2.1 for vlan1
Router (config-if)# ip address 20.20.20.251
Router(config-if)# encapsulation dot1q vlan2
Router(config-if)#ip helper-address 10.10.10.2
!! create subinterface 3/2.2 for vlan 2
Layer 2 Switch
Port D
Internal DHCP disabled
RTC IP=20.20.20.1
223