Linux-Networking Digest #447, Volume #10 Wed, 10 Mar 99 13:14:01 EST
Contents:
rpl daemon in Linux? (Joakim Ericsson)
to make D-Link DFE 650 work on IBM ThinkPad 1411 under RedHat 5.1
([EMAIL PROTECTED])
Re: How can I redirect TCP-Ports? (JamesLay)
Apache 1.3.4 'make install' problem ("Wes Ratcliff")
Re: I need help on configuring a RAID 1 ("Bruno Prior")
rpc problems... (Muad'Dib)
Linux+Win95 networking problem (Andy Jaworski)
routing tables - just being curious (Andy Jaworski)
Basic Samba configuration problem (Andy Jaworski)
Re: 2 network boards problem (Guglielmo Alfieri)
NFS not supported by kernel ????? (Red Hat 5.2) ([EMAIL PROTECTED])
Modem setup problems ("Somnath Banerjee")
Re: NAT Support (Gordon Haverland)
----------------------------------------------------------------------------
From: Joakim Ericsson <[EMAIL PROTECTED]>
Subject: rpl daemon in Linux?
Date: Wed, 10 Mar 1999 17:39:07 +0100
Reply-To: [EMAIL PROTECTED]
Is there any RPL daemon available in Linux?
Regards
Joakim
------------------------------
From: [EMAIL PROTECTED]
Subject: to make D-Link DFE 650 work on IBM ThinkPad 1411 under RedHat 5.1
Date: Tue, 09 Mar 1999 22:41:38 GMT
Hello all:
Could someone tell me how to make D-Link DFE 650 work under RedHat 5.1 ?
My laptop IBM Thinkpad 1411 with Pentium 300 4.3GB/32MB has both Window 98 and
RedHat 5.1 installed.
I have been following PCMCIA-HOWTO and other user groups. But I still can not
get network eth0 work.
Here is some system information might help you help me diagnosis my system:
- I have made an entry in /etc/pcmcia/config as following:
card "D-Link DFE-650 Ethernet Card"
version "D-Link", "DFE-650", "Fast Ethernet"
bind "pcnet_cs"
- cardmgr is running
- /etc/pcmcia/config.opts
include port 0x1060-0x107f
include memory 0x02010000-0x02010fff
include memory 0x04301000-0x4301fff
include irq 11
exclude irq 4
exclude irq 7
- under Window 98, here is the system information for PCMCIA card:
a) PCMCIA Card Service
provider: O2Micro Corp
8-27-1998
memory range: 02010000-02010fff
b) O2Micro OZ6832/6833 Card Bus Controller
Device Type: PCMCIA socket
Manufacturer: O2Micro Corp.
Hardware ver. 052
Input/Output Range: 1060-107f
Irq=9
Memory Range: 04301000-04301fff
c) D-Link DEF-650 PCMCIA Adapter
Input/Output Range: 1060-107f
Irq=11
- /etc/sysconfig/pcmcia
PCMCIA=yes
PCIC=i82365
PCIC_OPTS=
CORE_OPTS=
- /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=tian
- /etc/hosts
127.0.0.1 localhost localhost.localdomain
192.168.1.4 tian tian.bitint.com
- dmesg with the follwing information:
......
Linux PCMCIA Card Services 3.0.0
kernel build: 2.0.34 #8 Thu OCt 2 21:48:49 BST 1997
options: [cardbus]
Intel PCIC probe:
O2Micro OZ6832 Cardbus at 0x3e0 ofs 0x00, mem 0x68000000,
2 sockets.
host opts [0]: [ring] [inpack] [255/255/255] [255/255/255] [pci irq 9]
[lat32/176] [bus 1/0]
host opts [1]: [ring] [inpack] [255/255/255] [255/255/255] [pci irq 9]
[lat32/176] [bus 2/0]
OSA irqs (default) = 2,4,5,7,10,11,12 status change on irq 11
cs: IO port probe 0x1060-0x107f: clean
I really appreciate your help !
Thanks,
Jeremy
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: [EMAIL PROTECTED] (JamesLay)
Subject: Re: How can I redirect TCP-Ports?
Date: Tue, 09 Mar 1999 22:02:26 GMT
On Tue, 9 Mar 1999 20:08:35 +0100, "Juergen Bachsteffel"
<[EMAIL PROTECTED]> wrote:
http://www.monmouth.demon.co.uk/ipsubs/portforwarding.html
Just got that from a gent here...=)
JamesLay
>Hi!
>
>I installed a Linux-box with 'squid' (HTTP-FTP-proxy).
>Now my users get access to internet for these to proctocols.
>The Linux box connects to my ISP using a CISCO-router and
>eyeryone is happy.
>
>-->>But for incoming and outgoing email I have to redirect port 25(smtp)
> and 110(pop3).
>
>The users should connect to the Linux-box on a specfic port (it can
>also be 25 or 110) and all connections should redirected to port 25
>and 110 on the mailserver of my ISP.
>I do not have a local mailserver. All email-accounts are maintained
>by the ISP.
>
>I have done this before with a NT-box. Is used a programm called 'Wingate'.
>It's also a proxy server. It has a builtin function called 'named pipes'
>where
>you can redirect TCP-ports.
>
>How can I do this with Linux?
>Is there a simple network service for this?
>
>PS: I read the description of the SOCKS-proxy-server. I have to proxy
> the incoming and outgoing mail with this software.
> This method does not fit for me!
>
>
>CU Juergen
>
>
>
>
>
------------------------------
From: "Wes Ratcliff" <[EMAIL PROTECTED]>
Subject: Apache 1.3.4 'make install' problem
Date: Wed, 10 Mar 1999 08:06:35 -0600
When runnning make install for Apache 1.3.4, I get the error: "make:
'install' already up to date". I am running Red Hat 5.2 with kernel 2.2.2.
I have read the readme's to no avail. Here's the process I followed to
uncompress and compile Apache:
gunzip apache_1.3.4.tar.gz
tar xvf apache_1.3.4.tar
cd apache_1.3.4
./configure --prefix=/usr/local/apache
make
make install <-- Here's where it says "make:'install' already up to date"
Any suggestions?
Thanks,
Wes
[EMAIL PROTECTED]
------------------------------
From: "Bruno Prior" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.help,comp.os.linux.misc
Subject: Re: I need help on configuring a RAID 1
Date: Wed, 10 Mar 1999 17:06:02 -0000
Curtis Adams wrote in message <7c384h$8dc$[EMAIL PROTECTED]>...
>There's a mini-Howto at
>http://www.ssc.com/linux/LDP/HOWTO/mini/Software-RAID.html
>that's a good starting point. However, it's very lacking in information.
This is completely out of date. Try
http://ostenfeld.dk/~jakob/Software-RAID.HOWTO/. This has been incorporated
into the latest raidtools, so you could simply go to
http://www.<country>.kernel.org/pub/linux/daemons/raid/alpha
and download the latest raidtools (raidtools-19990309-0.90.tar.gz) and patch
(raid0145-19990309-2.0.36.gz or raid0145-19990309-2.2.3.gz depending on your
kernel version). Remember, you will also need a pristine kernel source
package to apply the patch to.
>Here's a simplified step-by-step process
>1) Install the RAID tools v0.5 (if you have RedHat 5.2, the tools are on
the
>CD in RPM format)
raidtools has been at 0.90 for a while. It is much improved on 0.5, so make
your life easy and upgrade. The changes to the init scripts which are in
RH5.2 to take account of v0.5 are junk, not just for 0.90 but for 0.5 as
well. If you have RH5.2, you will want to search the rc scripts for mentions
of raidstart and raidstop and remove the appropriate lines.
>2) create a partition on the two separate drives using fdisk (must be equal
>in size)
Not necessarily, it's just that inequal size partitions waste some of the
space on the larger partition.
>3) edit /etc/raidtab to look like... (modify the device parameters to
>whatever your drives are)
>
>raiddev /dev/md0
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
>
> device /dev/hdc1
> raid-disk 0
> device /dev/hdd1
> raid-disk 1
>
>4) Add the RAID to the kernel configuration, execute...
> raidadd /dev/md0
What happened to mkraid? Without creating the device, you won't be able to
raidadd or raidstart it.
Also, this all assumes that raidtools was installed from an RPM. If he had
to download the raidtools tar.gz and patch, then he won't have known to
patch and compile a new kernel to include the latest RAID support (and
reboot so it's running), nor to compile the raidtools with "make; make
install; make install_dev" in the gunzipped/extracted raidtools directory.
The latter command can be very significant on a machine which has not had
RAID on it before. Without it, you can apply all the right commands and
still be told that the devices do not exist.
>5) Start the RAID, execute...
> raidstart /dev/md0
mkraid does this automatically for you now.
>6) Format the RAID device, execute...
> mke2fs /dev/md0
>
>7) Change to the top level mouting point, and create a directory name for
>the mounting point,...
> cd /
> mkdir myraid
>
>8) Mount the RAID device as the new directory,
> mount -t ext2 /dev/md0 /myraid
>
>You can also tell Linux to automatically mount the device when booting, if
>desired. I used linuxconf to do this.
I assume linuxconf adds a line to /etc/fstab for the RAID array, does it?
This will only work if the RAID is already running, so you will want to use
RAID auto-recognition. Just use fdisk to mark any RAID partitions as type
"fd", and enable RAID auto-recognition when you compile the kernel. Now the
kernel will start any RAID arrays at boot time without any commands needing
to be issued, and shut them down cleanly when you shutdown. All you need to
do is add a line to your fstab (with linuxconf or whatever) showing where
you want the RAID array to be mounted, just like a normal partition.
>Review all the man pages for the various commands so you can customize to
>your needs.
>
>Good Luck
>Curtis
>
>
>Ray wrote in message ...
>>Hi, i have a 4 gb SCSI boot hd and 2 9 gb SCSI data hd�s. I would do a
raid
>>1 over the 2 9 gbhd�s, how do i ?
>>
>>(raid 1 i think it is : mirroring a harddisk and keep it alive mirrored)
>>(i think to keep the mirror alive is much easier than to bring it to live
>>;-) )
Actually, it's all pretty easy now, thanks to some excellent work by Ingo
Molnar. Just follow the HOWTO at the URL at the top of the message, and
ignore all documentation in older raidtools packages.
Cheers,
Bruno Prior [EMAIL PROTECTED]
------------------------------
From: Muad'Dib <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system,linux.dev.apps,linux.dev.c-programming
Subject: rpc problems...
Date: Wed, 10 Mar 1999 16:59:42 +0000
This is a multi-part message in MIME format.
==============0A073911B3658F50BF433851
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
we've been trying to program a very basic client-server app (returns a
number++) using the RPCs but have met soooo many problems.
Here's the code, if anyone could be nice enough as to tell us what's
wrong with it.
On the 2 linux machines we've tried it we've had different results :
1. The server crashes (core dumped - segmentation fault)
2. The client can't encode the xdr_int
We're also looking for some code that would work so as to understand how
to use RPCs, the examples we've found on the net use <rpc/rusers.h>, and
it doesn't seem to compile on our machines...
Thanks a lot
==============0A073911B3658F50BF433851
Content-Type: text/plain; charset=us-ascii;
name="client.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="client.c"
#include <stdio.h>
#include <utmp.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "rpc.h"
#include "max.h"
main (int argc, char* argv[]){
int rep, test;
int ce ;
ce = 2 ;
if (argc != 2){
fprintf(stderr,"usage : client nom_de_site\n");
exit(1);
}
if ( rep = callrpc ( argv[1], TOTO_PROG, TOTO_VERSION_1, TOTO_MAX,
xdr_int, &ce, xdr_int, &test) != 0){
fprintf(stderr,"Erreur de callrpc !\n");
clnt_perrno(rep) ;
putchar('\n') ;
exit(-1);
}
printf("Le nombre + 1 vaut : %d\n",test);
exit(0);
}
==============0A073911B3658F50BF433851
Content-Type: text/plain; charset=us-ascii;
name="max.h"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="max.h"
bool_t xdr_entier(XDR *ptr_xdr, int *i){
return (xdr_int(ptr_xdr, i));
}
bool_t xdr_couple_entier(XDR *ptr_xdr, couple_entier *ptr_ce){
return (xdr_int(ptr_xdr, &ptr_ce->entier_a)
&&(xdr_int(ptr_xdr, &ptr_ce->entier_b)));
}
int max (couple_entier *ptr_ce) {
if (ptr_ce->entier_a > ptr_ce->entier_b){
return ptr_ce->entier_a;
} else {
return ptr_ce->entier_b;
}
}
int plus (int *ptr_int) {
return *ptr_int + 1 ;
}
==============0A073911B3658F50BF433851
Content-Type: text/plain; charset=us-ascii;
name="rpc.h"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="rpc.h"
#include <stdio.h>
#include <utmp.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#define TOTO_PROG 0X22222222
#define TOTO_VERSION_1 1
#define TOTO_MAX 1
typedef struct {
int entier_a;
int entier_b;
} couple_entier;
bool_t xdr_entier(XDR *, int *);
bool_t xdr_couple_entier(XDR *, couple_entier *);
==============0A073911B3658F50BF433851
Content-Type: text/plain; charset=us-ascii;
name="rpc2.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="rpc2.c"
#include "rpc.h"
#include "max.h"
main()
{
if (registerrpc(TOTO_PROG, TOTO_VERSION_1, TOTO_MAX,
plus, xdr_int, xdr_int) == -1) {
fprintf(stderr, "Echec a l'enregistrement de max\n");
exit(2);
}
printf("coucou\n");
svc_run();
fprintf(stderr, "Erreur svc_run\n");
exit(2);
}
==============0A073911B3658F50BF433851==
------------------------------
From: [EMAIL PROTECTED] (Andy Jaworski)
Crossposted-To: comp.os.linux.help
Subject: Linux+Win95 networking problem
Date: Wed, 10 Mar 1999 10:55:15 -0600
Hi there,
I hope somebody just knows an answer to this.
I just set a two-machine network between a Linux and a Win95 (OSR 2) boxes.
They are connected with a crossover twisted-pair cable. The connection
seems to be working - I can ping each machine from the other one. I can
also ping the machines themselves.
Now here is the problem. On my Win95 machine I also have a couple of
dial-up accounts configured (one to my ISP and one to my work LAN). When I
try to do telnet or ftp from Win95 to Linux, I get a dial-up popup window
asking me to connect to my ISP account. When I cancel this, nothing
happens. It seems that neither telnet nor ftp can see the ethernet
connection.
Why is this happening and how can I fix it? I tried to remove the
"TCP/IP -> Dial-up adapter" from the Network applet, but this did not change
anything.
Additional info. I have a small Win98 partition on my Linux box and when I
boot it, my "network" works with no problems. I can see both machines in
the "network neigborhood" and I can mount local disk dirives and copy files
between them.
Any info will be appreciated. Thanks in advance,
Andy
=========================================
Andy Jaworski
[EMAIL PROTECTED]
Opinions expressed herein are my own and may not represent those of my employer.
------------------------------
From: [EMAIL PROTECTED] (Andy Jaworski)
Crossposted-To: comp.os.linux.help
Subject: routing tables - just being curious
Date: Wed, 10 Mar 1999 10:30:30 -0600
Hi there,
I have been struggling a little with my very small home network. I have
only two machines. The Linux box has a small Win98 partition (dual boot).
The other box is Win95 OSR2. They are both connected through a crossover
twisted-pair cable. The Linux box also has PPP configured.
The IP addresses of both machines are 192.168.48.1 and 192.168.48.2.
Now, without PPP running i get the following output from the "route -n"
command
Destination Gateway Genmask Flags Metric
Use Iface
192.168.48.1 0.0.0.0 255.255.255.255 UH 0
0 eth0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0
0 lo
192.168.48.0 0.0.0.0 255.255.255.255 U 0
0 eth0
0.0.0.0 192.168.48.1 255.255.255.0 UG 0
0 eth0
My first question is: why is my local host 127.0.0.1 not 127.0.0.0. It has
been like this from the beginning (i.e. from original installation of
RH5,2). Does it matter?
The second question: how did the 192.168.48.0 line get into the routing
table and what iis it for?
As you can see I am just being curious and try to understand a little more.
When I fire up my PPP connection, the routing table changes to:
Destination Gateway Genmask Flags Metric
Use Iface
206.156.201.131 0.0.0.0 255.255.255.255 UH 0
0 ppp0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0
0 lo
192.168.48.0 0.0.0.0 255.255.255.255 U 0
0 eth0
0.0.0.0 206.156.201.131 255.255.255.0 UG 0
0 ppp0
Everything seems to work fine, but in order for this to work I had to add
"route del default"
line to my ppp-up script just before the pppd line. Also, I had to add the
following line
route add -net default gw `hostname`
to my ppp-off script.
Is this correct? Unfortunately, for this to work for all users on my Linux
box, I had to make the route command suid.
Sorry for the longish ramblings. I would appreciate any comments.
Andy
=========================================
Andy Jaworski
[EMAIL PROTECTED]
Opinions expressed herein are my own and may not represent those of my employer.
------------------------------
From: [EMAIL PROTECTED] (Andy Jaworski)
Crossposted-To: comp.os.linux.help
Subject: Basic Samba configuration problem
Date: Wed, 10 Mar 1999 10:43:39 -0600
Hi there,
I have the smallest network of two machines: Win 95 OSR2 and Linux RH 5.2
with 2.2.2 kernel running together with all required updates (including
Samba 2.0.3). I have them connected using a crossover twisted-pair cable.
The machines see one another. I can ping from both machines.
I noticed that, after configuring the network card on my Linux box, my boot
process now stalls for a long time at two points. The sendmail daemon takes
about a minute to start, and the smbd takes even longer. Samba actually
seems to time out. Now, the smbd got configured to start from my original
RH5.2 installation, even though I did not have a network card then (I am not
sure why). Before I put the network card in my Linux box this did not cause
any problems.
Now I would like to actually try to use Samba. I looked at the
/etc/smb.conf file which got installed originally (I think) and tried to
check it with testparm Samba utility. It never gets beyond prining "loading
the configuration file" or something similar. I tried to make a very small
configuration file with just a few lines in it, but the testparm never seems
to do anything. It just sits there hanging even with an empty configuration
file.
I have a feeling that I am missing something very basic, but I cannot put my
finger on it. Any insight/help will be appreciated
Andy
=========================================
Andy Jaworski
[EMAIL PROTECTED]
Opinions expressed herein are my own and may not represent those of my employer.
------------------------------
From: Guglielmo Alfieri <[EMAIL PROTECTED]>
Subject: Re: 2 network boards problem
Date: Wed, 10 Mar 1999 13:42:12 +0100
stupid question.....irqs & ios ???
--
______________________________________________________________________
Guglielmo Alfieri [EMAIL PROTECTED]
PGP public key http://www.inrete.it/linux/darklord.asc
PGP key fingerprint = 15 CC DB 37 9E A8 DF 6A 7A 89 72 05 EC 20 49 FB
"Much of the excitement we get out of our work is that we don't really
know what we are doing."
-- E. Dijkstra
______________________________________________________________________
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.setup
Subject: NFS not supported by kernel ????? (Red Hat 5.2)
Date: Wed, 10 Mar 1999 17:24:05 GMT
Hey,
I used to run a very simple NFS network between
two RedHat machine (let's call them "mutt" and "jeff", ok?).
rpc.nfsd is started up at boot-time (default Red Hat intsllation)
and is running fine.
I use the following /etc/fstab on mutt:
/dev/sda1 /boot ext2 defaults 1 2
/dev/sda2 / ext2 defaults 1 1
...
(lignes deleted)
...
jeff:/v1 /v1 nfs rsize=4096,wsize=4096,hard,intr 0 0
and /etc/exports file on jeff:
/v1 mutt(rw,no_root_squash,link_relative)
And that work perfectly FINE for the last 2 months.
BUT,
yesterday I did nothing special to my system, except
maybe downloading and installing a shitload of .rpm on mutt
from the GNOME 1.0 distribution. And I also reboot
mutt twice to get rid of an ugly lpd color printer problem.
And NOW, from mutt I can no longer see jeff's files on /v1 via NFS!
Whenever I try to mount the NFS drive on mutt, at boot-time or by using:
mount -t nfs -o rsize=4096,wsize=4096,hard,intr jeff:/v1 /v1
I get the following error message:
"mount: fs type nfs not supported by kernel"
which of course I find hard to believe since I
used NFS everyday (or almost) for the last 2 months!
The funny thing is that jeff still sees two other drives
NFS mounted on mutt (jeff hasn't been rebooted in a while
and doesn't know anything about GNOME..)
Anybody has an idea as to what happened
to mutt & jeff ?????
Thanks!
Please reply to: [EMAIL PROTECTED]
Yves
Yves Larochelle
Indiana University Cyclotron Facility
Bloomington, Indiana
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: "Somnath Banerjee" <[EMAIL PROTECTED]>
Subject: Modem setup problems
Date: Wed, 10 Mar 1999 08:43:19 -0000
Hello everybody,
I have setup RedHat Linux 5.2 on my PC. Now I want to reach the net from
Linux.
I have a MDP7800-U Modem attached to COM3 in my WINNT.
When I reboot in Linux I changed to the /dev directory
an typed in
ln -s /dev/cua2 modem #for COM3
Then using the control-panel I defined a PPP interface.
I typed in the phone number of my ISP, my userid and password. I use this
day in and out from
my NT. I set the modem speed to be 19200 ( I wanted to start conservative)
Then I pressed activate from the control panel menu.
The activate button is greyed but I do not see any action. The modem does
not even start dialling
So I weent to /var/log/messages. I am attaching the tail of this file here:
============================= Beginning of the message file
===========================
Mar 9 22:53:39 localhost pppd[678]: pppd 2.3.5 started by root, uid 0
Mar 9 22:53:39 localhost pppd[678]: tcgetattr: Input/output error(5)
Mar 9 22:53:39 localhost ifup-ppp: pppd started for ppp0 on /dev/modem at
19200
Mar 9 22:53:40 localhost pppd[678]: Exit.
Mar 9 22:54:06 localhost kernel: PPP: ppp line discipline successfully
unregistered
============================= End of the message file
===========================
What am I doing wrong?
Do I need to install Red Hat in a certain way? Start some daemon ?
What is the deal?
Your help is greatly appreciated.
Regards, Somnath
------------------------------
From: Gordon Haverland <[EMAIL PROTECTED]>
Subject: Re: NAT Support
Date: Wed, 10 Mar 1999 07:55:03 -0700
Rick Onanian wrote:
>
> Allen wrote:
> >
> > Does Linux support NAT?
>
> Yes, but it's called IP Masquerading. Linux supports it very well,
> indeed. http://ipmasq.cjb.net is the official home page.
Sorry, NAT refers to an N to M mapping of IP addresses (and
possibly swapping port numbers). Masquerading refers to
N to 1 mapping. NAT is generic, Masquerading is specific.
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.networking) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Networking Digest
******************************