beautypg.com

11 application examples, Dynamic addressing, using dhcp-relay – Allied Telesis AT-WR4500 User Manual

Page 126

background image

126

AT-WR4500 Series - IEEE 802.11abgh Outdoor Wireless Routers

RouterOS v3 Configuration and User Guide

The wizard has made the following configuration based on the answers above:

[admin@AT-WR4562] ip dhcp-server> print
Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 dhcp1 ether1 0.0.0.0 dhcp_pool1 3d no

[admin@AT-WR4562] ip dhcp-server> network print
# ADDRESS GATEWAY DNS-SERVER WINS-SERVER DOMAIN
0 10.0.0.0/24 10.0.0.1 159.148.60.20

[admin@AT-WR4562] ip dhcp-server> /ip pool print
# NAME RANGES
0 dhcp_pool1 10.0.0.2-10.0.0.254

[admin@AT-WR4562] ip dhcp-server>

6.1.11

Application Examples

Dynamic Addressing, using DHCP-Relay

Let us consider that you have several IP networks 'behind' other routers, but you want to keep all DHCP
servers on a single router. To do this, you need a DHCP relay on your network which relies DHCP
requests from clients to DHCP server.
This example will show you how to configure a DHCP server and a DHCP relay which serve 2 IP
networks - 192.168.1.0/24 and 192.168.2.0/24 that are behind a router DHCP-Relay.

[DHCP-Server]

Local1

192.168.1.1/24

Public

10.1.0.2/24

Internet

[DHCP-Relay]

Local
192.168.0.1/24

Public
192.168.0.2/24

Local2
192.168.2.1/24

Figure 18: DHCP Relay


IP addresses of DHCP-Server:

[admin@DHCP-Server] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.1/24 192.168.0.0 192.168.0.255 To-DHCP-Relay
1 10.1.0.2/24 10.1.0.0

10.1.0.255

Public

[admin@DHCP-Server] ip address>

This manual is related to the following products: