cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1118
Views
0
Helpful
0
Replies

Script to set alternative static IP if DHCP fails

gustm
Level 1
Level 1

Hi all,

I have idea about setting static IP address to ethernet interface of router in case DHCP assignment fails or if renewal fails. It should behave similar to "Alternative configuration" option in Windows IP setting - first try to obtain IP address and default route from DHCP ("ip address dhcp" command) and if it fails it should configure static IP address and default route.

I've already tried to google such script but unsuccessfully. I have no experience in writing EEM scripts hence I'm trying to get some advice here what events and commands could be used or examples of similar scripts.

Thanks,

Michal.

0 Replies 0
Review Cisco Networking for a $25 gift card