Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two machines. One runs arch linux and another runs fedora. arch uses iproute2. so i need a conversion for iproute2 from route. this command will set the default interface to ppp0.

I have searched for documentation but I have still no clue.

How shall do this in iproute2

route add default ppp0
share|improve this question
ip route add default via

You can't specify a device for a route, it has to be an address. Generally you shouldn't have to do this at all; pppd should take care of adding a default route if it is configured appropriately.

share|improve this answer
I have two NICs, eth0 and ppp0, so i need to bond a default interface. – Idlecool Jul 24 '11 at 12:40
No you don't. Routing doesn't work like that. – womble Jul 24 '11 at 12:41
It's entirely valid to specify a device as a default route. It's only valid when that interface is a point-to-point though. – MikeyB Jul 24 '11 at 14:56

I found it, its

ip route add default dev ppp0
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.