Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
johanswe
Explorer
Jump to solution

change of wan ip through cli

Hi! 

 

I manage a 1575 gateway and feel abit lost when it comes to the cli. 

I would like to change the ip of the wan interface also mapped/bound to internet.

how do I do this from the cli? 

in the gaia gui I am allowed to simply replace the ip(fortunately the new ip is still in the same Subnet as the old) 

Simply doing a set cmd isnt working. So I assume there is more to be done and I am clueless.. deleting doesnt work either. 

best regards 

 

0 Kudos
2 Solutions

Accepted Solutions
PhoneBoy
Admin
Admin

Relevant documentation: https://sc1.checkpoint.com/documents/SMB_R81.10.X/CLI/EN/Content/Topics/set-interface-wan.htm?tocpat... 
Please provide the exact commands you tried with the exact results received.
Please also provide the firmware version/build you are using.

View solution in original post

(1)
the_rock
Legend
Legend

clish -> set interface WAN (or whatever name it is) ipv4-address x.x.x.x mask-length xx default-gw y.y.y.y

Andy

View solution in original post

4 Replies
PhoneBoy
Admin
Admin

Relevant documentation: https://sc1.checkpoint.com/documents/SMB_R81.10.X/CLI/EN/Content/Topics/set-interface-wan.htm?tocpat... 
Please provide the exact commands you tried with the exact results received.
Please also provide the firmware version/build you are using.

(1)
the_rock
Legend
Legend

clish -> set interface WAN (or whatever name it is) ipv4-address x.x.x.x mask-length xx default-gw y.y.y.y

Andy

johanswe
Explorer

my-fw1> set interface-type WAN ipv4-address 10.2.3.38 subnet-mask 255.255.255.240 default-gw 10.2.3.33
That one worked!! Thank you!


Not sure why the WAN is of an "interface-type", but sure I can read up on the differences 🙂

Now another firewall(my lab) has the "internet" set to DMZ port of the firewall but then it does not work to change into something within the same subnet.(changing ip from 10.2.3.37)
set interface-type DMZ ipv4-address 10.2.3.38 subnet-mask 255.255.255.240 default-gw 10.2.3.33
Could not set internet-connection ipv4-address: IP address is in the subnet of an existing network

So DMZ and WAN is not same type of connection that I am aware of, but fail to understand the logic to why I cannot to the same change?

What started all this was that I wanted to write a script that falls back into configuring the old ip if not ... criteria is set or working. Also everytime I have to resort into the cli I just get confused being used to other cli's.

So I posted the question from the phone in pure desperation 😄 Thanks Guys!

 

the_rock
Legend
Legend

Glad we can help!

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events