LocalNet & PPP : Together

LocalNet & PPP : Together

Post by annay » Tue, 03 Sep 1996 04:00:00



I am having tough problems trying to get my LOCAL network at home and
the PPP based network (to the world) working TOGETHER...
                                     ^^^^^^^^^^^^^^^^
Actually the local network never worked.
The IP address   of this LINUX machine for __local__ network is DIFFERENT
from the IP address this LINUX machine assumes when its hooked up by PPP.

I had recompiled the kernel to support, Soundblaster and Ethernet.
The Soundblaster support works great -- (proof that I didn't*up...
please note the dmesg o/p at end of this article -- thanks).
The new kernel detects the NE2000 compatible cards just fine.

----- DETAILS ----

I have a linux system as my Mail station (uses regular Sendmail & SMTP).
I am also using it for LINUX development (linux based sound-applications).

I have another machine for Win95.  Both these machines have ethernet cards.
Both the machine's OS recognized the ethernet cards.  (Linux output at end)

I use PPP to connect to the world (thru LINUX).
But I need the ethernet connection between the LINUX machine and the Win95
machine.

The PPP connection (FROM LINUX) connects me to the domain
        "*.remote.princeton.edu".   (128.112.67.*)
The Win95 machine is used to hook into the WindowsNetBeui network at WORK
so, I have obtained a UNIQUE IP address for it.  I also obtained another
IP address for the LINUX machine (so that it does not clash with other's
IP addresses).  The intranet at work will never be directly connected to
the internet (security purposes).
The domain at work is "*.lipper.com"  (198.20.186.*)

I have just one monitor and keyboard for both machines.  I prefer using
the "telnet" from Win95 to get into the linux machine (rather than having
to manually pull out the video, mouse and keybd connections from one and
plug it into the other every time I want to switch).

I did the following (after reading the /usr/doc/faq/howto and the FAQs)...
But if I placed the following lines in /etc/rc.d/rc.inet1, NEITHER the
ethernet worked, NOR did the PPP network (when I started up PPP). But when I
shut down the machine (after commenting out the code in /etc/rc.d/rc.inet1)
and restarted the machine, the PPP network works fine.

Also, the "route" command (as root) just hangs if I have the local network
also "ON" using the following lines from /etc/rc.d/rc.inet1 ....
(please see the system files on the next 30 lines)...

I would like the LINUX machine to respond via eth0, when the Win95 machine
starts looking for the  "198.20.186.60" address (which is the address assigned
to the LINUX m/c's eth0 PORT).  That is the only feature of the local net
I am looking for. (i.e., being able to telnet and FTP from Win95 to LINUX).

What am I doing wrong?  Can someone help me get my local net up and running?
If the above setup is not possible could someone help me with using the
STANDARD localnet IP addresses (127.0.0.* -- Am I right?)

Sarma
Sep.1.1996 (struggling since July.29th)

==========
/etc/rc.d/rc.inet1
==========
#! /bin/sh
# rc.inet1      This shell script boots up the base INET system.

HOSTNAME=`cat /etc/HOSTNAME`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the
# eth0 interface. If you're only using loopback or SLIP, don't include the
# rest of the lines in this file.

# Edit for your setup.
IPADDR="198.20.186.60"        # REPLACE with YOUR IP address!
NETMASK="255.255.255.0"       # REPLACE with YOUR netmask!
NETWORK="198.20.186.0"        # REPLACE with YOUR network address!
BROADCAST="198.20.186.255"    # REPLACE with YOUR broadcast address, if you
                        # have one. If not, leave blank and edit below.
GATEWAY="127.0.0.1"   # REPLACE with YOUR gateway address!

# Uncomment ONLY ONE of the three lines below. If one doesn't work, try again.
/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} dev eth0
                                #### gw ${GATEWAY} netmask ${NETMASK}
/sbin/route add default dev eth0

# End of rc.inet1

==========
/etc/networks
==========
# networks      This file describes a number of netname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
loopback        127.0.0.0
localnet        198.20.186.0
pppnet          128.112.67.0
# End of networks.

==========
/etc/resolv.conf
==========
# After changing this, DO NOT forget to run the "make" in /var/yp...
#
domain remote.princeton.edu
nameserver 128.112.129.111
nameserver 128.112.128.1
#
search remote.princeton.edu princeton.edu eng.wayne.edu lipper.com
#
# domain lipper.com
nameserver 127.0.0.1
#

==========
output of ifconfig when ONLY ppp is ON
==========
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:12 errors:0 dropped:0 overruns:0

<<<Edited to remove the last 3 digits of IP address>>>
ppp0      Link encap:Point-Point Protocol  
          inet addr:128.112.67.xxx  P-t-P:128.112.64.xxx  Mask:255.255.0.0
          UP POINTOPOINT RUNNING  MTU:1005  Metric:1
          RX packets:1107 errors:0 dropped:0 overruns:0
          TX packets:1236 errors:0 dropped:0 overruns:0

============================ dmesg output ==========================
Console: colour EGA+ 80x25, 1 virtual console (max 63)
bios32_init : BIOS32 Service Directory structure at 0x000f6f10
bios32_init : BIOS32 Service Directory entry at 0xf6f20
pcibios_init : PCI BIOS revision 2.10 entry at 0xf6f41
Probing PCI hardware.
Calibrating delay loop.. ok - 40.18 BogoMips
Serial driver version 4.11 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A
tty01 at 0x02f8 (irq = 3) is a 16550A
tty03 at 0x02e8 (irq = 3) is a 16550A
lp1 at 0x0378, using polling driver
snd2 <SoundBlaster Pro 4.13> at 0x220 irq 10 drq 1       <<<------**********
snd6 <SoundBlaster 16 4.13> at 0x220 irq 10 drq 5        <<<------**********
hda: Conner Peripherals 1275MB - CFS1275A, 1219MB w/64KB Cache, LBA, CHS=619/64/63, MaxMult=16
ide0: primary interface on irq 14
Floppy drive(s): fd0 is 1.44M
FDC 0 is a 8272A
Memory: 15016k/16384k available (728k kernel code, 384k reserved, 256k data)
This processor honours the WP bit even when in supervisor mode. Good.
Swansea University Computer Society NET3.019
Swansea University Computer Society TCP/IP for NET3.019
IP Protocols: ICMP, UDP, TCP
Swansea University Computer Society IPX 0.29 BETA for NET3.019
IPX Portions Copyright (c) 1995 Caldera, Inc.
PPP: version 0.2.7 (4 channels) NEW_TTY_DRIVERS OPTIMIZE_FLAGS
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
NE*000 ethercard probe at 0x340: 00 40 33 3f 0d a5       <<<------**********
eth0: NE2000 found at 0x340, using IRQ 12.               <<<------**********

Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Checking 'hlt' instruction... Ok.

Partition check:
  hda: disabled multiple mode
  hda: hda1 hda2
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 66384k swap-space
ppp: channel ppp0 mtu = 1500, mru = 1500
ppp: channel ppp0 open

## End of Article

 
 
 

LocalNet & PPP : Together

Post by B.A.McCau.. » Wed, 04 Sep 1996 04:00:00



>I am having tough problems trying to get my LOCAL network at home and
>the PPP based network (to the world) working TOGETHER...
>                                     ^^^^^^^^^^^^^^^^
>Actually the local network never worked.

Ah so forget the PPP for now - that's just going to confuse matters.

Quote:>The IP address   of this LINUX machine for __local__ network is DIFFERENT
>from the IP address this LINUX machine assumes when its hooked up by PPP.

Irrelavant - you said the Ethernet didn't work before you added PPP -
don't try to complicate things.

[ Loads more illelevant stuff about the PPP setup snipped ]

Quote:>The Win95 machine is used to hook into the WindowsNetBeui network at WORK
>so, I have obtained a UNIQUE IP address for it.  I also obtained another
>IP address for the LINUX machine (so that it does not clash with other's
>IP addresses).  The intranet at work will never be directly connected to
>the internet (security purposes).
>The domain at work is "*.lipper.com"  (198.20.186.*)
>I did the following (after reading the /usr/doc/faq/howto and the FAQs)...
>But if I placed the following lines in /etc/rc.d/rc.inet1, NEITHER the
>ethernet worked, NOR did the PPP network (when I started up PPP).
>/sbin/route add -net ${NETWORK} dev eth0
>                            #### gw ${GATEWAY} netmask ${NETMASK}
>/sbin/route add default dev eth0

You have just told your machine that all machines on the internet are
directly connected to your local ethernet.  This will propably break
your PPP connection but I can't see why it should stop the ethernet
working.

Quote:>Also, the "route" command (as root) just hangs if I have the local network
>also "ON" using the following lines from /etc/rc.d/rc.inet1 ....

Looking for a nameserver.  Try "route -n".  BTW is your machine
actually intended to function as a nameserver?  (You have said it is
in the setup files).

Quote:>What am I doing wrong?  Can someone help me get my local net up and running?
>If the above setup is not possible could someone help me with using the
>STANDARD localnet IP addresses (127.0.0.* -- Am I right?)

127.0.0.1 is the truely *local* net (i.e. *within* a single machine),
this is quite distinct from an intranet which is want you are talking
about.

My advice is do some further experiments with Ethernet and don't cloud
the issue by having PPP up until you've solved your Ethernet
problems.  Also until you've got IP working don't cloud the issue with
DNS/nameserver questions - work entirely with numeric addresses.

PS.  It is good form to give an E-mail address when posting to Usenet.

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/


 
 
 

1. port forwarding + Masq. (localnet to localnet).

Hello,
I got a few questions.

Is there a way to get ipchains masq. to kick in before
ipmasqadm portfw  ??

What is the difference between ipmasqadm portfw and
ipmasqadm fwd ?
I know the second you need to mark the packets as
they come in, but what are the advantages and
disadvantages between them ?

Thanks for any help.
Jim,

2. Can LDAP replace NDS?

3. ppp && PPPoE && ADSL && net && buffer(s)

4. hammer: MAP_32BIT

5. Ethernet & PPP together

6. Restrict root use su login?

7. NEWBIE: Need Help Getting PPP & Ethernet to work together

8. Help/printing under Linux

9. Dial-In PPP not routing to localnet

10. 10BaseT && Coax to link 3 linux machines together???

11. LILO && NCR53C810 don't work together

12. &&&&----Looking for a unix shell------&&&&&