Well, I solved my original problem that was preventing me from adding the
plip interface 'pl0' with ifconfig, turns out I don't have 'pl0' as the
NET-2 faq suggests but instead I use 'plip0' this seemed to work without
any problems.
some background. I have two linux machines enigma.robo.com and
arcadia.robo.com. they are to compose a two machine isolated network with
IP address of 192.63.31.27 and 192.63.31.23 respectively.
I have recompiled my kernel.
my hosts files are
--begin file--
127.0.0.1 localhost
192.63.31.27 enigma.robo.com enigma
192.63.31.23 arcadia.robo.com arcadia
--end file--
my reolve.conf and host.conf files are the bare minimum without nameservers
and other than that the only files I think will be of interest is rc.inet1
--begin file--
HOSTNAME=enigma
# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add 127.0.0.1
# attach the plip device
/sbin/ifconfig plip0 192.63.31.27 pointopoint 192.63.31.23 up
/sbin/route add 192.63.31.23 plip0
--end file--
(the rc.inet1 file on arcadia is similarly configured but with ip address
swapped around and configured from arcadia's point of view.)
now when I boot my two machines they come up fine, run the rc.inet1 file
without error messahes or problems and then they startup all the net
daemons except for named since I don't want this hassle.
so there are no errors during the boot up.
if I then log in as root I can do the following:
--begin command--
enigma:/etc/rc.d# ifconfig
lo IP ADDR 127.0.0.1 BCAST 127.255.255.255 NETMASK 255.0.0.0
MTU 2000 METRIC 0 POINT-TO-POINT ADDR 0.0.0.0
FLAGS: 0x0049 ( UP LOOPBACK RUNNING )
plip0 IP ADDR 192.63.31.27 BCAST 192.63.31.255 NETMASK 255.255.255.0
MTU 1600 METRIC 0 POINT-TO-POINT ADDR 192.63.31.23
FLAGS: 0x0053 ( UP BROADCAST POINTOPOINT RUNNING )
--end command--
(again similarly for arcadia but with appropriate ip addreses.)
I can also show the routing being done:
-begin command--
enigma:/etc/rc.d# route
Kernel routing table
Destination net/address Gateway address Flags RefCnt Use
Iface
localhost * UH 0 38 lo
arcadia.robo.com enigma.robo.com UGH 0 2 plip0
--end command--
and for arcadia I get:
--begin command--
arcadia:/etc/rc.d# route
Kernel routing table
Destination net/address Gateway address Flags RefCnt Use
Iface
localhost * UH 0 38 lo
enigma.robo.com * UH 0 2 plip0
--end command--
I CAN'T SEEM TO FIGURE OUT WHY enigma adds that Gateway address and arcadia
doesn't. do you know why?
anyways the bigger problem is this...
from enigma I can ping enigma and I can telnet/rlogin to enigma but
whenever I try to ping/telnet/rlogin to arcadia (the only other remote
machine I can ping) the command will just hang indefinetly. if I ctrl-C a
ping operation it tells me how many packets sent, 0 received, 100% packet
loss.
this behavior is also similar on the other machine arcadia, in that it
seems to hang on commands to remote hosts.
Do you know why? do I have some sort of routing information screwed up? I
would have thought I would get "network unreachable" errors if the routing
was botched.
Well, hopefully you guru's out there will be able to help me with my
problem since I feel I am sooooo close to getting this plip stuff working
between the two computers.
also can somebody tell me how to configure plip so it will use IRQ 7
instead of the default 5? I have a soundcard at 5 and for now I just
hardcoded dev->irq=7; in plip_init() and plip_open(). I don't think this
is the best and most elegant way to do this though and if you have a better
solution please let me know.
Also please let me know if you have a solution to my overall network
configure/routing problem described above. If you need more information
please let me know.
Thanks in advance for all your help,
- Jeff Wiegley