From: Kenny McCormack on 4 May 2010 12:32 How to find out the default gateway on Mac OSX? I know how to do this on Windows and Linux. At one point, I knew how to do it on Solaris, and I suspect the Mac way is the Solaris way, since both seem to be pretty much unadorned BSD-based. It *should* just be "route", or maybe "route print", but it is not... -- > No, I haven't, that's why I'm asking questions. If you won't help me, > why don't you just go find your lost manhood elsewhere. CLC in a nutshell.
From: Doug McIntyre on 4 May 2010 13:07 gazelle(a)shell.xmission.com (Kenny McCormack) writes: >How to find out the default gateway on Mac OSX? Same as on linux & solaris. >I know how to do this on Windows and Linux. At one point, I knew how to >do it on Solaris, and I suspect the Mac way is the Solaris way, since >both seem to be pretty much unadorned BSD-based. FWIW: Darwin's networking and shell userland is based on FreeBSD, not much of the kernel is though. >It *should* just be "route", or maybe "route print", but it is not... Thats only windows. $ netstat -nr | fgrep default default 10.11.12.254 UGSc 83 12 en0 default fe80::209:fff:fe88:fb1e%en0 UGSc en0
From: Kenny McCormack on 4 May 2010 17:52 In article <4be05458$0$633$8046368a(a)newsreader.iphouse.net>, Doug McIntyre <merlyn(a)geeks.org> wrote: .... >>It *should* just be "route", or maybe "route print", but it is not... > >Thats only windows. And Linux: sh-3.1# route | grep default default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 sh-3.1# >$ netstat -nr | fgrep default >default 10.11.12.254 UGSc 83 12 en0 >default fe80::209:fff:fe88:fb1e%en0 UGSc en0 Thanks. Much appreciated. -- > No, I haven't, that's why I'm asking questions. If you won't help me, > why don't you just go find your lost manhood elsewhere. CLC in a nutshell.
From: Ian Collins on 4 May 2010 22:51 On 05/ 5/10 05:07 AM, Doug McIntyre wrote: > gazelle(a)shell.xmission.com (Kenny McCormack) writes: >> How to find out the default gateway on Mac OSX? > > Same as on linux& solaris. > >> I know how to do this on Windows and Linux. At one point, I knew how to >> do it on Solaris, and I suspect the Mac way is the Solaris way, since >> both seem to be pretty much unadorned BSD-based. > > FWIW: Darwin's networking and shell userland is based on FreeBSD, not much > of the kernel is though. > >> It *should* just be "route", or maybe "route print", but it is not... > > Thats only windows. > > $ netstat -nr | fgrep default > default 10.11.12.254 UGSc 83 12 en0 > default fe80::209:fff:fe88:fb1e%en0 UGSc en0 Does "route get default" work? -- Ian Collins
From: Kenny McCormack on 5 May 2010 08:29 In article <84c4ppFibU2(a)mid.individual.net>, Ian Collins <ian-news(a)hotmail.com> wrote: .... >Does "route get default" work? Yes. I was almost there, from "man route", but the documentation of the route command on traditional Unices is exceedingly bad (even by man page standards). -- > No, I haven't, that's why I'm asking questions. If you won't help me, > why don't you just go find your lost manhood elsewhere. CLC in a nutshell.
|
Pages: 1 Prev: poll [was:poll and if] Next: verifying file ownership with dlopen() |