2

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
Idlecool
  • 234
  • 3
  • 9

2 Answers2

5
ip route add default via 192.0.2.254

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.

womble
  • 96,255
  • 29
  • 175
  • 230
2

I found it, its

ip route add default dev ppp0
Idlecool
  • 234
  • 3
  • 9