Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

CLI - changing Static IP

$
0
0

Hi, To change the static IP of a device and in many cases I'm also changing the host name do I need to delete the original static IP and then add it back?  What are the commands especially if I need to remove the static first.  Here is how I added it originally:

 

set service dhcp-server shared-network-name LAN2 subnet 10.1.8.0/24 static-mapping a313 ip-address 10.1.11.213
set service dhcp-server shared-network-name LAN2 subnet 10.1.8.0/24 static-mapping a313 mac-address 'AA:BB:CCMan Very HappyD:EE:FF'

 

Would it be:

configure

delete service dhcp-server shared-network-name LAN2 subnet 10.1.8.0/24 static-mapping a313 ip-address 10.1.11.213
delete service dhcp-server shared-network-name LAN2 subnet 10.1.8.0/24 static-mapping a313 mac-address 'AA:BB:CCMan Very HappyD:EE:FF'

 

set service dhcp-server shared-network-name LAN2 subnet 10.1.8.0/24 static-mapping new313 ip-address 10.1.11.213
set service dhcp-server shared-network-name LAN2 subnet 10.1.8.0/24 static-mapping new313 mac-address 'AA:BB:CCMan Very HappyD:EE:FF'

commit


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>