- CheckMates
- :
- Products
- :
- Quantum
- :
- SMB Gateways (Spark)
- :
- Re: Delete DHCP relays via Clish
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe one below the section for dhcp server?
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I meant this, but not sure if thats right one.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let me spin up demo point lab later and will test this.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Give me 1 hour or so, just creating the lab at the moment, will try test it soon.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
