beautypg.com

Default-router – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1701

background image

Dynamic Host Configuration Protocol (DHCP) Commands

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

64.3

default-router

This command adds a default router to the DHCP address pool you are configuring. You
can use this command multiple times to create a list of default routers on the client’s
subnet. This sets the router details using the pre-defined option 3. Note that if you add a
user-defined option 3 using the option command, then you will override any settings
created with this command.

The no variant of this command removes either the specified default router, or all default
routers from the DHCP pool.

Syntax

default-router <ip-address>

no default-router [<ip-address>]

Mode

DHCP Configuration

Examples

To add a router with an IP address 192.168.1.2 to the DHCP pool named P2, use the
following commands:

To remove a router with an IP address 192.168.1.2 to the DHCP pool named P2, use the
following commands:

To remove all routers from the DHCP pool named P2, use the following commands:

Parameter

Description

<ip-address>

IPv4 address of the default router, in dotted decimal notation.

awplus#

configure terminal

awplus(config)#

ip dhcp pool P2

awplus(dhcp-config)#

default-router 192.168.1.2

awplus#

configure terminal

awplus(config)#

ip dhcp pool P2

awplus(dhcp-config)#

no default-router 192.168.1.2

awplus#

configure terminal

awplus(config)#

ip dhcp pool P2

awplus(dhcp-config)#

no default-router