From owner-freebsd-questions Tue Jun 17 10:11:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA23716 for questions-outgoing; Tue, 17 Jun 1997 10:11:12 -0700 (PDT) Received: from mpeks.tomsk.su (mpeks.tomsk.su [193.124.185.19]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA23594 for ; Tue, 17 Jun 1997 10:08:14 -0700 (PDT) Received: (from uucp@localhost) by mpeks.tomsk.su (8.6.11/8.6.9) with UUCP id BAA08666; Wed, 18 Jun 1997 01:04:22 +0800 Received: (from vas@localhost) by vas.tomsk.su (8.8.5/8.8.3) id RAA07410; Tue, 17 Jun 1997 17:04:40 +0800 (TSD) From: "Victor A. Sudakov" Message-Id: <199706170904.RAA07410@vas.tomsk.su> Subject: Re: NT4 ISP To: toj@gorilla.net (Tom Jackson) Date: Tue, 17 Jun 1997 17:04:39 +0800 (TSD) Cc: questions@freebsd.org In-Reply-To: <19970616183342.11874@peeper.my.domain> from "Tom Jackson" at "Jun 16, 97 06:33:42 pm" Organization: Tomsk Region Education Department X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Tom Jackson wrote: > Well first I misunderstood that you had alias'd lo0, I thought you had used > ifconfig for tun0. There is no need to use ifconfig for tun0. iijppp does everything by itself. > Secondly I was going to say that it sounded like a good idea > to alias lo0 with your hostname but I tried it and it did*not* work with ppp. What does lo0 have to do with ppp? I think they even do not know about each other. How exactly did it not work with ppp? I think it would be a good idea though to take different addresses for lo0 alias and for /etc/ppp/ppp.conf to avoid confusion. Say, 192.168.1.1 and 192.168.2.1 Please IP experts correct me here. > As I said before, I ended up with a 'my addr' of 192.168.0.1 and of course the > ppp session failed. If you mean the "ifaddr" statement in your /etc/ppp.conf file, try set ifaddr 192.168.0.1/0 thus allowing iijppp to assign ANY address received from the ISP to your tun0 interface. > > > > > I have dynamic assigned address. My /etc/hosts file has only the loopback > > > > > address, 127.0.0.1, and nothing else (I have no ethernet card). If I use > > > > > anything there with my hostname, my isp will try to use that address and > > > > > the connection will fail. > > > > > > > > Why should he try to use that address? And how is he going to know about it, > > > > anyway? > > > > > > > > > > Well for one reason, that is the default standard everyone starts with. You > > > only muck it up when you start modifying the file :) > > > > Sorry, I did not understand this phrase. I mean if you assign another IP > > address to your lo0 interface, the ISP will not know about this and this > > will cause no problems at all. > > > > > > > > > > This is something I wish somebody would clearup. > > > > > > > > I also have a dynamically assigned address. However, I have in my /etc/hosts > > > > file: > > > > > > > > 127.0.0.1 localhost > > > > 192.168.1.1 vas.tomsk.su vas > > > > > > I think maybe you have an ethernet card, yes? > > > > No, I have none. > > > > > > > > > > > > > And in my /etc/rc.local: > > > > > > > > /sbin/ifconfig lo0 inet 192.168.1.1 alias > > > > > > > > > > Everything I've seen posted recommends against using this assignment. I'm > > > > What is the reason of recommending against this assignment? What is wrong > > with it? Note the "alias" parameter I use. Thus, lo0 has two addresses. > > > > > glad it works for you though. > > > > > > > It works fine, I can ping vas.tomsk.su even if I am offline. It does not > > > > prevent me from using ppp because 192.168.1.1 is associated with lo0 and has > > > > nothing to do with tun0. > > > > > > > > > > I'm not sure I understand this. I thought the 127 address was the loopback > > > address. > > > > Certainly. In my case, the lo0 interface has two addresses: > > > > 127.0.0.1 localhost > > 192.168.1.1 vas.tomsk.su vas > > > > I can ping both 127.0.0.1 and 192.168.1.1 -- Victor Sudakov http://www.tomsk.su/r/persons/vas.htm