Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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 jailbroke my iPhone4 and want to display and alter the route table on my iPhone. There is a route command, but I don't know the parameters needs to display/alter the route table.

I've googled a lot but still cannot find a clue. I know how to display/alter route table in Linux, but obviously the route command in iOS is not like the same command in Linux. Hope someone can answer this question.

Note: the iOS is the iOS of Apple, not the IOS of Cisco :-)

This command comes from package _network_cmds_ in Cydia.

The default output without any argument:
yeglemato-iPhone:~ root# route
usage: route [-dnqtv] command [[modifiers] args]

share|improve this question

migrated from Apr 17 '11 at 11:42

This question came from our site for system and network administrators.

I cant remember, does the iphone even have man pages? Was this route command installed as a part of the jailbreak? What happens when you run it with no parameters? Even if it isnt the same command it probably behaves similarly. – ConstantineK Apr 17 '11 at 12:30
@hobs This command is installed when you install Cydia on your phone, in package network_cmds. There seems no manpages in Cydia. I've updated the info in my question :-) – yegle Apr 17 '11 at 12:37
Yeah I think you just have the bsd version of route, I dont know how to use it much, but the man page is, thats the same route command if you type it into your mac. – ConstantineK Apr 17 '11 at 12:53
This looks like a more user friendly intro to route on bsd… – ConstantineK Apr 17 '11 at 12:55

Use netstat -r to display route table and route to alter it.

You can read netstat and route man page on OSX for more information. I think they are the same BSD route version.

share|improve this answer
Thank you for your answer. I didn't notice this is a BSD version of route/netstat :-) Here's the manpage of MacOSX route/netstat command:…… – yegle Apr 18 '11 at 5:37

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.