In the Overview of this section, an example deployment of PXE is given for a WAN/VLAN environment. Then, the following sections provide the specific steps required to configure network equipment so that they will correctly forward PXE network traffic:
In this example, three VLAN are configured on a Bay Networks Accel 1200 switch running firmware version 2.0.1. One VLAN hosts the Proxy DHCP service, the second VLAN hosts the DHCP service, and the third VLAN hosts the PXE client. The PXE client's DHCP broadcast is forwarded by the switch to both the Proxy DHCP service and the DHCP service. The response from both servers is then routed correctly back to the PXE client, and the PXE client starts the PXE session correctly.
The three VLANs are all 24-bit networks, that is their subnet mask is 255.255.255.0
The first VLAN gateway is 10.0.0.1. This VLAN hosts the PXE client that is allocated an IP in the range of 10.0.0.2 to 10.0.0.128. This VLAN is named VLAN1.
The second VLAN gateway is 10.1.1.1. This VLAN hosts the DHCP server with IP 10.1.1.2. This VLAN is named VLAN2.
The third VLAN gateway is 196.10.229.1. This VLAN hosts the server running the Proxy DHCP server and the Transaction server. The server's IP is 196.10.229.2. This VLAN is named VLAN3.
Routing is enabled between all the VLANs. Each VLAN is (and must be) in its own spanning tree group.
Go to Global Configuration mode.
Type ip forward-protocol udp 67 and press Enter.
Type ip forward-protocol udp 68 and press Enter.
Go to the LAN interface that serves the PXE workstation.
Type ip helper-address 10.1.1.2 and press Enter.
Type ip helper-address 196.10.229.2 and press Enter.
Save the configuration.
Connect to the router with Site Manager.
Ensure that IP is routable.
Enable Bootp on the PXE workstation subnet/VLAN.
Select the interface that the PXE workstations are connected to.
Edit the circuit.
Select Protocols.
Select Add/Delete.
Ensure there is a check in the Bootp check box.
Press OK.
Select Protocols > IP > Bootp > Relay Agent Interface Table.
The interface where Bootp was enabled will visible in the list.
Click Preferred Server.
Change the Pass Through Mode value to Bootp and DHCP.
Set up the relay agents:
Click Add.
In the Relay Agent IP Address box, type the local LAN IP address.
In the Target Server IP Address box, type the DHCP server IP address.
Click OK.
Change the Pass Through Mode value to Bootp and DHCP.
Perform steps 1-5 again and enter the Proxy DHCP server IP address at Step 3.
Apply the configuration.
Perform the following steps on the switch:
Enable DHCP for the client VLAN using the following command lines:
# config vlan1 ip
# dhcp enable
Configure ip helpers to forward DHCP requests from the workstation subnet to the Proxy DHCP service, using the following command lines:
# config ip dhcp-relay
# create 10.0.0.1 10.1.1.2 mode dhcp state enable
# create 10.0.0.1 196.10.229.2 mode dhcp state enable
The create command has the form create agent server mode dhcp state enable, where agent is the IP address of the gateway that serves the PXE workstation, and server is the IP address of the server that the DHCP frame should be forwarded to.
Save the configuration.