Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
    
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. –  hobs 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. –  hobs Apr 17 '11 at 12:53
    
This looks like a more user friendly intro to route on bsd cyberciti.biz/faq/… –  hobs Apr 17 '11 at 12:55
add comment

migrated from serverfault.com Apr 17 '11 at 11:42

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

1 Answer

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
2  
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: developer.apple.com/library/mac/#documentation/Darwin/Reference/… developer.apple.com/library/mac/#documentation/Darwin/Reference/… –  yegle Apr 18 '11 at 5:37
add comment

Your Answer

 
discard

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.