PPP, LAN and Newbie Frustration.

2004-04-06 Thread R J Sharp
hi

i was wondering if u could help me.
When i type   ipconfig/release [adapter]  in msprompt it says dhcp not enabled for 
that adapter.
it is a ppp adapter.
I have managed to enble dhcp for my lan but not my internet connection. 
Can u help me out?

Mike
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PPP, LAN and Newbie Frustration.

2003-09-02 Thread Michael Vondung
Hello!

This is my third month with FreeBSD, and while so far everything worked
mostly fine, I think I now hit a wall. Hard. Please note that I lack Unix
and networking background, so expect me to sound embarrassingly amateurish.

The current situation:

Over the past few weeks I used a network consisting of two machines. Machine
A is a Window XP Pro system with a dial-up connection to my ISP. Machine B
is a FreeBSD 4.8 system that shares XP's internet connection when available.
This was easy enough to set up: I used the idiot-proof set up a network
wizard in XP and enabled Internet Connection Sharing, and in FreeBSD I let
Sysinstall DHCP-configure the Ethernet card. This works flawlessly.

However, this isn't what I really want. It makes little sense for the
FreeBSD box to run local IMAP and NTTP servers, connect through the XP box
to the net, and then serves mail and news to the very same XP machine. It's
just not pretty or efficient, since it requires me to have the workstation
running 24/7, too.

The goal:

I'd like the FreeBSD to connect to the 'net, using a PPP dial-up connection,
and the XP box to share the (dial-up) Internet connection of the FreeBSD
machine.

So, yesterday I plugged an old, external ISDN modem into the FreeBSD
machine. It took me a while to get PPP working (with the help of a kind
freebsd-questions soul), but it eventually did work. It connects to the ISP,
and it will also use this connection, but ONLY if the XP machine is also
there (even if not connected). If the XP machine is turned off or the LAN
interrupted, the FreeBSD box will not use its own Internet connection. (I
suspect it has to do with resolv.conf listing the XP machine's internal IP
address as nameserver? If I remove this, FreeBSD still can't resolve
addresses, even though ppp.conf has enable dns.)

Roughly, what I'd like is this:

Have the FreeBSD box connect to the Internet via PPP (dial-up) whenever an
application on either the FreeBSD box *or* the Windows box requires a
connection to the Internet, and disconnect when it's been idle for a while
(I know how to set *this* in ppp.conf, but that's pretty much all I know).
I'd like the FreeBSD system to internally use 192.168.0.1 and the XP box
192.168.0.2.

Some of the problems:

- I get a dynamic IP address whenever I connect to the ISP and I don't know
this address before I connect.

- I do not have a local DNS/nameserver. I understand that I can set one up
locally, but that I would need my ISPs nameserver IP for this. Also, how
would this help me if the host configuration is done before a PPP connection
is established? Ideally, in addition, I'd like to use different ISPs.

- I am uncertain if it is all right that the host names of these two
machines are fictive. With the old setup, both use system.mshome.net
(something Windows assigns, I didn't choose this.) Is it acceptable to use
something made up? (Let's say I own example.org and name the boxes
freebsd.example.org and xp.example.org, would this be all right even though
the machines have 192.x.x.x IP addresses and don't really exist as far as
the outside world is concerned?)

- I noticed that after setting up PPP, FreeBSD will automatically establish
a PPP connection at boot time. It will only use the papchap configuration,
and fail if I rename this entry. The problem is that the only change I made
to anything but /etc/ppp/ppp.conf is that I added ppp_enable=YES to
/etc/rc.conf. Where does it get the idea from to use the papchap entry in
ppp.conf?

- I am in the dark when it comes to configuring the XP side. This is
off-topic here, but if anyone has an idea, I'd be grateful for the
assistance. The wizard allows for two modes: XP being the machine
connecting to the 'net, and XP using another machine's connection. It
doesn't actually ask for any IP addresses, or lets me assign any IP
addresses (it picks 169.x.x.x for itself when I make it a client). How
does one configure this manually? (I never thought I'd see the day where I
actually *want* textual configuration files -- but three months with FreeBSD
changed this fundamentally.)

- To make matters worse, I don't really understand what netstat tells me, or
how to draw any conclusions from the information it provides. I did read the
man pages for netstat, PPP and so on, but frankly, it's over my head. I
know, I must sound pathetically helpless here. Rest assured, I feel exactly
this way, too! :)

What am I looking for?

Ideally, for easy-to-understand, step-by-step instructions! Seriously
though, I've tried the entire morning and afternoon to figure this out, but
it's clearly out of my scope. It is a pitiful experience to read
documentation and not understand it. I don't know which files to edit (on
the FreeBSD side), and how to set up everything to work as outlined above.

The future:

If/when I get this to work, I'll add a second 80GB disk to the XP machine
and put FreeBSD on it, and then dual-boot. The current FreeBSD box would
continue to connect to the 

Re: PPP, LAN and Newbie Frustration.

2003-09-02 Thread Henrik Hudson
On Tuesday 02 September 2003 07:37, Michael Vondung wrote:
 Hello!

Morning :)

 - I get a dynamic IP address whenever I connect to the ISP and I don't know
 this address before I connect.

This is fine, unless of course you were planning on running a 
mailserver/webserver/someserver for the outside world to see and then you can 
either play with some of the dynamic DNS services available or your S.O.L.

 - I do not have a local DNS/nameserver. I understand that I can set one up
 locally, but that I would need my ISPs nameserver IP for this.

Yes, you can setone up and you don't need the ISP nameservers since your DNS 
server will query down to the root level for you, but it is more polite to 
ask your ISP nameservers first for info. For starters, since you're running 
only 2 machines I would just use your ISP nameservers on both boxes and not 
run a DNS server locally.

 Also, how
 would this help me if the host configuration is done before a PPP
 connection is established? Ideally, in addition, I'd like to use different
 ISPs.


Different ISPs all the time or just switching now and again?

 - I am uncertain if it is all right that the host names of these two
 machines are fictive. With the old setup, both use system.mshome.net
 (something Windows assigns, I didn't choose this.) Is it acceptable to use
 something made up? (Let's say I own example.org and name the boxes
 freebsd.example.org and xp.example.org, would this be all right even though
 the machines have 192.x.x.x IP addresses and don't really exist as far as
 the outside world is concerned?)

I prefer setting up something like:  boxname.int.domain.com   (int = internal) 
and yes, you can name them anything you like since you aren't broadcasting to 
the world and are in private space. The 2 machines should have different 
names however. Another issue, unless you are running an internal DNS server 
or add the info to the hosts file (yes, XP has a hosts file as well..just a 
well hidden one) you won't be able to actually use the names to get from one 
box to another. IPs only.


 - I noticed that after setting up PPP, FreeBSD will automatically establish
 a PPP connection at boot time. It will only use the papchap
 configuration, and fail if I rename this entry. The problem is that the
 only change I made to anything but /etc/ppp/ppp.conf is that I added
 ppp_enable=YES to /etc/rc.conf. Where does it get the idea from to use the
 papchap entry in ppp.conf?

My PPP is really rusty..sorry. Check the ppp man page and/or the ppp.conf man 
page. or look in /etc/defaults/rc.conf for any default settings related to 
ppp.conf

 - I am in the dark when it comes to configuring the XP side. This is
 off-topic here, but if anyone has an idea, I'd be grateful for the
 assistance. The wizard allows for two modes: XP being the machine
 connecting to the 'net, and XP using another machine's connection. It
 doesn't actually ask for any IP addresses, or lets me assign any IP
 addresses (it picks 169.x.x.x for itself when I make it a client). How
 does one configure this manually? (I never thought I'd see the day where I
 actually *want* textual configuration files -- but three months with
 FreeBSD changed this fundamentally.)

Don't use the wizard :) Right-Click on Network Neihborhood and select 
Properties (or go through to Network via the Control Panel) and then click 
around in there. I don't use Windows and don't have access to an XP box at 
all, so I'm a little fuzzy. I would assign IPs manually at first.

Not a lot of detailed help..sorry...I haven't setup a PPP connection in a LONG 
time.


Henrik
-- 
Henrik Hudson
[EMAIL PROTECTED]

`If there's anything more important than my ego
around, I want it caught and shot now.' 
--Hitchhikers Guide to the Galaxy

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: PPP, LAN and Newbie Frustration.

2003-09-02 Thread Michael Vondung
Henrik wrote:

 Not a lot of detailed help..sorry...I haven't setup a PPP
 connection in a LONG time.

The good news is that in a year I'll relocate to an area where ADSL is
available. Until then I'm stuck in a beautiful but telecommunication-wise
terribly medieval area.

I received an e-mail from another list member, and with both his and your
thoughts I had enough pointers to read up more on the relevant topics. The
most important resource was the FreeBSD Unleashed book that came with a
very nice for dummies type of chapter about networking. ;) Here's a short
summary in case someone else has a similar problem and suffers the same lack
of knowledge as I did:

- Learned that ppp_enable=YES in rc.conf results in FreeBSD establishing a
PPP connection at boot time. Unless otherwise configured in rc.conf, it'll
be in auto mode (connection on demand). If not specified, it will use the
papchap profile. ppp_profile= will cause it to use the  profile.
It also uses the -nat option by default.

- Went to sysinstall and configured my ethernet card manually this time.
Managed to fill in the right values, amazingly enough.

- Got ahold of my ISPs name servers and put the IP addresses in the
resolv.conf.

- Figured out how to configure the LAN manually in XP, without the wizard
(right-click on the connection icon, properties, highlight tcp-ip,
properties button). Put in the appropriate IP addresses, and that was
that. I also had to change the Internet settings to prevent that XP uses the
local ISDN adapter to establish a dial-up connection.

- The last step was the biggest obstacle. While the two machines could ping
each other, FreeBSD wouldn't forward the packets for outside systems.
After some digging around I learned that this is disabled by default. Adding
gateway_enable=YES to rc.conf fixed this. A small thing, but took the most
time to solve.

In short, it works as desired. Broke through the wall, and quite happy with
myself. ;)

Cheers,
Michael

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]