Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Greg_Harbers
Collaborator

Delete DHCP relays via Clish

Does anyone know the syntax to remove a DHCP relay destination via the Clish CLI?

currently have this in place

set dhcp server interface LAN5 relay relay-to 10.10.10.10 secondary 10.20.10.10 tertiary 10.30.10.10 quaternary 10.40.10.10

need to remove the server 10.20.10.10 from the list, leaving only 3 relays

I can do this

set dhcp server interface LAN5 relay relay-to 10.10.10.10 secondary 10.30.10.10 tertiary 10.40.10.10

but still leaved the quaternary setting resulting in this

set dhcp server interface LAN5 relay relay-to 10.10.10.10 secondary 10.30.10.10 tertiary 10.40.10.10 quaternary 10.40.10.10

From the web interface the 4th entry can be blanked out, however ideally would like to avoid having to use the web interface as we need to update multiple gateways for which we intend intend creating a script using cprid_util to update the configuration.

The R81.10.x cli guide does not provide any clues

https://sc1.checkpoint.com/documents/SMB_R81.10.X/CLI/EN/Content/Topics/set-dhcp-relay.htm

 

0 Kudos
3 Replies
the_rock
Legend
Legend

0 Kudos
Greg_Harbers
Collaborator

No, that does not appear to work

if I try to delete the dhcp server interface setting I get this

GATEWAY1> delete dhcp server interface LAN5
Incomplete command
GATEWAY1> delete dhcp server interface LAN5 relay
^
Bad parameter starting at 'relay'
GATEWAY1>

command completion indicates the only accepted parameter for the delete command is exclude-range as below...

GATEWAY1> delete dhcp server interface LAN5 exclude-range

0 Kudos
the_rock
Legend
Legend

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events