can we add two default route
on a device
is it ok or it will create any problem
Yes. U can add 2 def routes on a device provided they are specified with a different metric which would allow them to be used as an alternative path.
ip route 0.0.0.0 0.0.0.0 192.168.100.1
ip route 0.0.0.0 0.0.0.0 192.168.200.1 20
In the above scenario.. the second one tagged with metric 20 would be used if the first one bumps off.This is known as floating static routes.
Hope this helps u.
Please do rate posts as it helps to give proper output useful to all.
Yes, you can have more than one default route, and generally it is OK, though you need to be aware of what is going to happen!
What exactly are you hoping to do?
Two similar default routes will do some load sharing across them. As long as you are routing, and both end points can forward traffic OK there should not be a problem.