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