Fixed bug in ipv4 default gw generation