4

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]

migrated from serverfault.com 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 freebsd.org/cgi/man.cgi?query=route, 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 cyberciti.biz/faq/… – ConstantineK Apr 17 '11 at 12:55
3

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .