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
7 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
Greg_Harbers
Collaborator

That is applicable if you have a) configured the gateway as a DHCP server, and b) set a custom option for the server. it it does not apply to removing a DHCP relay.

0 Kudos
the_rock
Legend
Legend

Let me spin up demo point lab later and will test this.

Andy

0 Kudos
the_rock
Legend
Legend

Give me 1 hour or so, just creating the lab at the moment, will try test it soon.

Andy

0 Kudos
the_rock
Legend
Legend

I see what you mean @Greg_Harbers . I tested in tech point lab and got exact same thing. There is no save config in smb, so I assume when you run any commands, it simply saves it right away, but even though I typed only 3 servers 2mnd time, still shows 4th one I did 1st time, 4.4.4.4, as confirmed with commands I ran. Let me see if I can try figure it out. Maybe someone else may have an idea...

Andy

 

 

Screenshot_1.png

 

 

Screenshot_2.png

  

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events