Date: Wed, 9 Jun 1999 16:24:56 -0400 From: Christopher Michaels <ChrisMic@clientlogic.com> To: "'Dainel \"The Bruce\" Keller'" <dkeller@psln.com> Cc: freebsd-questions@freebsd.org Subject: RE: beginner question: how can I determine my local IP address? ( can't ping) Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105976@site2s1>
next in thread | raw e-mail | index | archive | help
I seem to remember Brian Somers telling me that you can't ping or telnet, etc to your dynamically assigned IP address, because the link is a point-to-point link. Can you ping/telnet/etc.. your ip address from another machine on the internet? I will try this when I get home from work tonight to verify if this is indeed the case. Is the ppp link working otherwise, or is it a more serious problem?? Maybe Brian can chime in here if I am wrong (or right)? -Chris > -----Original Message----- > From: Dainel "The Bruce" Keller [SMTP:dkeller@psln.com] > Sent: Wednesday, June 09, 1999 4:39 PM > To: ChrisMic@clientlogic.com > Cc: freebsd-questions@freebsd.org > Subject: Fw: begginner question: how can I determine my local IP > address? (can't ping) > > > ----- Original Message ----- > From: Dainel "The Bruce" Keller <dkeller@psln.com> > To: Jamie Lawrence <jal@thirdage.com> > Sent: Wednesday, June 09, 1999 1:35 PM > Subject: Re: begginner question: how can I determine my local IP address? > (can't ping) > > > > Thanks for the help, I think i may have confused things a bit. > > I do have a NIC, but it is connected only to my other home computer, not > the > > internet. I am connected to my ISP through a dialup line, so the IP > > should be the IP of the machine (or the modem?) right? I put the XXs on > the > > IP to show that it is dynamically assigned in that range. Once I know my > > local IP I can ping it from my other computer by the NIC, and I assume > other > > computers on the internet can get to it, but I can't ping it from itself > > using the IP address. Here is the output of "ifconfig -a": > > > > ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > > inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 > > ether 00:00:c0:59:a6:f4 > > ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1006 > > inet 206.155.61.157 --> 206.155.61.100 netmask 0xffffff00 > > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > > inet 127.0.0.1 netmask 0xff000000 > > > > here is "netstat -rn": > > Routing tables > > > > Internet: > > Destination Gateway Flags Refs Use Netif > > Expire > > default 206.155.61.100 UGSc 3 8 ppp0 > > 10/24 link#1 UC 0 0 ed0 > > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > > 206.155.61.100 206.155.61.157 UH 3 0 ppp0 > > > > > > here is "ipfw show": > > 00100 15 1260 divert 8668 ip from any to any via ppp0 > > 65535 0 0 allow ip from any to any > > > > "ping localhost": > > PING localhost (127.0.0.1): 56 data bytes > > 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.052 ms > > 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.043 ms > > 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.030 ms > > > > --- localhost ping statistics --- > > 3 packets transmitted, 3 packets received, 0% packet loss > > round-trip min/avg/max/stddev = 0.030/0.042/0.052/0.009 ms > > > > "ping 206.155.61.157": > > PING 206.155.61.157 (206.155.61.157): 56 data bytes > > > > --- 206.155.61.157 ping statistics --- > > 8 packets transmitted, 0 packets received, 100% packet loss > > > > Any suggestions would be great, > > Thanks again, > > Daniel Keller > > > > ----- Original Message ----- > > From: Jamie Lawrence <jal@thirdage.com> > > To: Dainel "The Bruce" Keller <dkeller@psln.com>; Christopher Michaels > > <ChrisMic@clientlogic.com> > > Sent: Tuesday, June 08, 1999 2:47 PM > > Subject: Re: begginner question: how can I determine my local IP > address? > > (can't ping) > > > > > > > At 03:13 PM 6/8/99 -0700, Dainel \"The Bruce\" Keller wrote: > > > >Thanks, I had been looking all over the mailing list and gerneally > > getting > > > >nowhere. unfortunately I now have a rather larger problem. I can't > ping > > or > > > >telnet to myself by the IP address. I can ping localhost fine, but > not > my > > IP > > > >(206.155.61.1XX). I have tried flushing ipfw and making sure it is > not > > > >blocking anything, but I have no idea what to try next. And > suggestions > > > >would help greatly. > > > >Thanks again for the help! > > > >Daniel Keller > > > > > > Keep in mind that the IP address (206.155.61.130, BTW - you're > > > not protecting yourself by obscuring it) is The NIC's IP, > > > not the machine's. Make sure you ifconfig'ed your device correctly. > > > > > > Do an ifconfig -a and see what it tells you it thinks its IP, > > > netmask, broadcast, etc. are. > > > > > > -j > > > > > > >----- Original Message ----- > > > >From: Christopher Michaels <ChrisMic@clientlogic.com> > > > >To: 'Dainel "The Bruce" Keller' <dkeller@psln.com> > > > >Cc: FreeBSD Mailing List (E-mail) <questions@FreeBSD.ORG> > > > >Sent: Tuesday, June 08, 1999 1:58 PM > > > >Subject: RE: begginner question: how can I determine my local IP > address? > > > > > > > > > > > >> ifconfig <interface> > > > >> > > > >> Where <interface> is the name of your network interface. E.g. if I > > wanted > > > >> to see my ip for my ppp I would type. > > > >> > > > >> ifconfig tun0 > > > >> > > > >> -Chris > > > >> > > > >> > > > >> > -----Original Message----- > > > >> > From: Dainel "The Bruce" Keller [SMTP:dkeller@psln.com] > > > >> > Sent: Tuesday, June 08, 1999 5:27 PM > > > >> > To: questions@freebsd.org > > > >> > Subject: begginner question: how can i determin my local IP > address? > > > >> > > > > >> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6C37EE640B78D2118D2F00A0C90FCB4401105976>