Date: Sun, 13 Jun 1999 21:37:07 -0400 From: "Mark S. Reichman" <mark@borg.com> To: "\"Dainel \\\"The Bruce\\\" Keller\"" <dkeller@psln.com> Cc: questions@FreeBSD.ORG Subject: Re: begginner question: how can i determin my local IP address? Message-ID: <37645CC3.98DD6158@borg.com> References: <016901beb1f5$ad108f00$a33d9bce@g6200>
next in thread | previous in thread | raw e-mail | index | archive | help
Put this in your .cshrc or .bashrc or .profile or whatever you use.
This is written for .cshrc... Then type "ip" at the prompt.
alias ip "ifconfig -a | grep "inet" | grep -v "127.0.0.1" | awk
'{print"'
Dainel \"The Bruce\" Keller wrote:
>
> I posted a similar message here last night, but I haven't gotten any
> response and I never received the message myself so I'm not sure if it got
> through,
> Thanks
> ----- Original Message -----
> From: Daniel Keller <dkeller@psln.com>
> Newsgroups: comp.unix.bsd.freebsd.misc
> Sent: Tuesday, June 08, 1999 1:39 PM
> Subject: begginner question: how can i determin my local IP address?
>
> > Hi,
> > I am having some trouble determining my local IP address when I dial into
> my
> > ISP. I have been getting what I believe is my IP from "netstat -rn", but I
> > can not usr this number to telnet, or ftp, or connect to any of the other
> > services available on "localhost" or "127.0.0.1". I am not sure if I am
> > getting the IP wrong, or if for some reason I cannon connect to myself
> > though the IP (perhaps I need to enable some sort of other routing, or
> > change my ipfw rules, which are currently set up for natd and are using
> > "ipfw add pass all from any to any"). Any help would be greatly
> appreciated.
> > Thanks,
> > Daniel Keller
> >
> >
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37645CC3.98DD6158>
