View Single Post
Old 02-21-2012, 06:34 AM
zementmischer zementmischer is offline
Join Date: Apr 2011
Location: Europe
Posts: 43

I could reproduce the crash, but it's caused by YOUR empty gwmetric.
You must always assign a value to gwmetric. The only exception is if you set gateway to none (in this case you must leave gwmetric empty).
I've tested your script with gwmetric=1 and everything seems to work fine!

A default gateway with this IP Address already configured on this interface.
This isn't an error. You'll get this message if you run the script multiple times.
Real programmers don't comment their code.
If it was hard to write, it should be hard to read.
Reply With Quote