Date: Sun, 27 Jun 1999 16:16:36 -0300 From: "Luis Bajo" <luisbajo@infovia.com.ar> To: <questions@freebsd.org> Subject: Please, help me with two SLIP connections. Message-ID: <01bec0d1$93b89d00$LocalHost@luisbajoinfovia>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
My name is Luis Bajo and I am a Linux's user.
I have a Linux box with two serial interface that I used to connect two Windows 95 based computers via SLIP connections.
The connection to the Linux box from each Windows 95 based computers is successfully.
But my problem is that I can not comunicate between the Windows 95 based computers. That is, when I try to do ping from one Windows 95 based computer to another Windows 95 based computer, do not work. Can you tell me why?
Following I send you some aditional information to help you to detect the problem.
Thank you very much!
Window 95 Linux Window 95
|-----------------| |----------------| |----------------|
| win586 | SLIP | linux386 | SLIP | compaq |
| (199.60.103.2) |--------->| (199.60.103.1) |<--------| (199.60.103.3) |
|-----------------| |----------------| |----------------|
ifconfig
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:3584 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0
TX packets:18 errors:0 dropped:0 overruns:0
eth0 Link encap:10Mbps Ethernet HWaddr 00:10:4B:21:DD:6F
inet addr:199.60.103.1 Bcast:199.60.103.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
Interrupt:10 Base address:0x300
sl0 Link encap:Serial Line IP
inet addr:199.60.103.1 P-t-P:199.60.103.2 Mask:255.255.255.0
UP POINTOPOINT NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0
TX packets:3 errors:0 dropped:0 overruns:0
sl1 Link encap:Serial Line IP
inet addr:199.60.103.1 P-t-P:199.60.103.3 Mask:255.255.255.0
UP POINTOPOINT NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0
TX packets:4 errors:0 dropped:0 overruns:0
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
win586 * 255.255.255.255 UH 0 0 1 sl0
compaq * 255.255.255.255 UH 0 0 1 sl1
199.60.103.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 1 lo
default * 0.0.0.0 U 1 0 0 eth0
file /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#
# For loopbacking.
127.0.0.1 localhost
199.60.103.1 linux386.com linux386
199.60.103.2 win586
199.60.103.3 compaq
# End of hosts.
file /etc/rc.d/rc/rc.inet1
#! /bin/sh
#
# rc.inet1 This shell script boots up the base INET system.
#
# Version: @(#)/etc/rc.d/rc.inet1 1.01 05/27/93
#
HOSTNAME=`cat /etc/HOSTNAME`
# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# 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="199.60.103.1" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="199.60.103.0" # REPLACE with YOUR network address!
BROADCAST="199.60.103.255" # REPLACE with YOUR broadcast address, if you
# have one. If not, leave blank and edit below.
GATEWAY="199.60.103.1" # REPLACE with YOUR gateway address!
# Uncomment the line below to configure your ethernet card.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
# If the line above is uncommented, the code below can also be uncommented.
# It sees if the ethernet was properly initialized, and gives the admin some
# hints about what to do if it wasn't.
if [ ! $? = 0 ]; then
cat << END
Your ethernet card was not initialized properly. Here are some reasons why this
may have happened, and the solutions:
1. Your kernel does not contain support for your card. Including all the
network drivers in a Linux kernel can make it too large to even boot, and
sometimes including extra drivers can cause system hangs. To support your
ethernet, either edit /etc/rc.d/rc.modules to load the support at boottime,
or compile and install a kernel that contains support.
2. You don't have an ethernet card, in which case you should comment out this
section of /etc/rc.d/rc.inet1. (Unless you don't mind seeing this error...)
END
fi
# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
if [ ! "$GATEWAY" = "" ]; then
/sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
fi
# End of rc.inet1
file /etc/slip/slip.hosts
#
# login local-addr remote-addr netmask slipmode timeout option1 option2 ...
# valid slipmodes: normal,compressed,ax25,6bit,auto
#
# you also may use an asterisk * for DYNAMIC
#
win586 199.60.103.1 DYNAMIC 255.255.255.0 normal
compaq 199.60.103.1 DYNAMIC 255.255.255.0 normal
file /etc/slip/slip.login
#!/bin/sh
# generic login/logout file for a slip line. sliplogin invokes this with
# the parameters:
#
# 1 2 3 4 5 6 7 8 9-n
# slipunit ttyspeed pid loginname local-addr remote-addr mask mode opt-args
#
/sbin/ifconfig $1 $5 pointopoint $6 mtu 1500 arp -trailers up
/sbin/route add $6
/sbin/arp -s $6 00:10:4B:21:DD:6F pub
echo $1 $2 $3 $4 $5 $6 > /var/run/sliplogin.log
exit 0
file /etc/slip/slip.tty
/dev/ttyS0 199.60.103.2
/dev/ttyS1 199.60.103.3
[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.71.1712.3"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>
<P>My name is Luis Bajo and I am a Linux's user.</P>
<P></P>
<P>I have a Linux box with two serial interface that I used to connect two
Windows 95 based computers via SLIP connections.</P>
<P>The connection to the Linux box from each Windows 95 based computers is
successfully.</P>
<P>But my problem is that I can not comunicate between the Windows 95 based
computers. That is, when I try to do ping from one Windows 95 based computer to
another Windows 95 based computer, do not work. Can you tell me why?</P>
<P>Following I send you some aditional information to help you to detect the
problem.</P>
<P>Thank you very much!</P>
<P> </P>
<P> Window
95
Linux
Window 95</P>
<P>|-----------------|
|----------------|
|----------------|</P>
<P>| win586 |
SLIP | linux386
| SLIP |
compaq |</P>
<P>| (199.60.103.2) |--------->| (199.60.103.1) |<--------|
(199.60.103.3) |</P>
<P>|-----------------|
|----------------|
|----------------|</P>
<P> </P>
<P> </P>
<P> </P>
<P>ifconfig</P>
<P><FONT face="" size=2>lo Link encap:Local Loopback </FONT></P>
<P><FONT face="" size=2>inet addr:127.0.0.1 Bcast:127.255.255.255
Mask:255.0.0.0</FONT></P>
<P><FONT face="" size=2>UP BROADCAST LOOPBACK RUNNING MTU:3584
Metric:1</FONT></P>
<P><FONT face="" size=2>RX packets:18 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2>TX packets:18 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2>eth0 Link encap:10Mbps Ethernet HWaddr
00:10:4B:21:DD:6F</FONT></P>
<P><FONT face="" size=2>inet addr:199.60.103.1 Bcast:199.60.103.255
Mask:255.255.255.0</FONT></P>
<P><FONT face="" size=2>UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1</FONT></P>
<P><FONT face="" size=2>RX packets:0 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2>TX packets:0 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2>Interrupt:10 Base address:0x300 </FONT></P>
<P><FONT face="" size=2>sl0 Link encap:Serial Line IP </FONT></P>
<P><FONT face="" size=2>inet addr:199.60.103.1 P-t-P:199.60.103.2
Mask:255.255.255.0</FONT></P>
<P><FONT face="" size=2>UP POINTOPOINT NOTRAILERS RUNNING MTU:1500
Metric:1</FONT></P>
<P><FONT face="" size=2>RX packets:3 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2>TX packets:3 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2>sl1 Link encap:Serial Line IP </FONT></P>
<P><FONT face="" size=2>inet addr:199.60.103.1 P-t-P:199.60.103.3
Mask:255.255.255.0</FONT></P>
<P><FONT face="" size=2>UP POINTOPOINT NOTRAILERS RUNNING MTU:1500
Metric:1</FONT></P>
<P><FONT face="" size=2>RX packets:5 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2>TX packets:4 errors:0 dropped:0 overruns:0</FONT></P>
<P><FONT face="" size=2></FONT> </P>
<P><FONT face="" size=2></FONT> </P>
<P><FONT face="" size=2></FONT> </P>
<P>route</P></FONT><FONT face="Courier New" size=2>
<P>Kernel IP routing table</P>
<P>Destination Gateway Genmask Flags Metric Ref Use Iface</P>
<P>win586 * 255.255.255.255 UH 0 0 1 sl0</P>
<P>compaq * 255.255.255.255 UH 0 0 1 sl1</P>
<P>199.60.103.0 * 255.255.255.0 U 0 0 0 eth0</P>
<P>loopback * 255.0.0.0 U 0 0 1 lo</P>
<P>default * 0.0.0.0 U 1 0 0 eth0</P>
<P> </P>
<P> </P>
<P> </P>
<P>file /etc/hosts</P>
<P>#</P>
<P># hosts This file describes a number of hostname-to-address</P>
<P># mappings for the TCP/IP subsystem. It is mostly</P>
<P># used at boot time, when no name servers are running.</P>
<P># On small systems, this file can be used instead of a</P>
<P># "named" name server. Just add the names, addresses</P>
<P># and any aliases to this file...</P>
<P>#</P>
<P># By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that
127.0.0.1</P>
<P># should NEVER be named with the name of the machine. It causes problems</P>
<P># for some (stupid) programs, irc and reputedly talk. :^)</P>
<P>#</P>
<P># For loopbacking.</P>
<P>127.0.0.1 localhost</P>
<P>199.60.103.1 linux386.com linux386</P>
<P>199.60.103.2 win586</P>
<P>199.60.103.3 compaq</P>
<P># End of hosts.</P>
<P> </P>
<P> </P>
<P> </P>
<P>file /etc/rc.d/rc/rc.inet1</P>
<P>#! /bin/sh</P>
<P>#</P>
<P># rc.inet1 This shell script boots up the base INET system.</P>
<P>#</P>
<P># Version: @(#)/etc/rc.d/rc.inet1 1.01 05/27/93</P>
<P>#</P>
<P>HOSTNAME=`cat /etc/HOSTNAME`</P>
<P># Attach the loopback device.</P>
<P>/sbin/ifconfig lo 127.0.0.1</P>
<P>/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo</P>
<P># IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the
</P>
<P># eth0 interface. If you're only using loopback or SLIP, don't include
the</P>
<P># rest of the lines in this file.</P>
<P># Edit for your setup.</P>
<P>IPADDR="199.60.103.1" # REPLACE with YOUR IP address!</P>
<P>NETMASK="255.255.255.0" # REPLACE with YOUR netmask!</P>
<P>NETWORK="199.60.103.0" # REPLACE with YOUR network address!</P>
<P>BROADCAST="199.60.103.255" # REPLACE with YOUR broadcast address,
if you</P>
<P># have one. If not, leave blank and edit below.</P>
<P>GATEWAY="199.60.103.1" # REPLACE with YOUR gateway address!</P>
<P># Uncomment the line below to configure your ethernet card.</P>
<P>/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}</P>
<P># If the line above is uncommented, the code below can also be
uncommented.</P>
<P># It sees if the ethernet was properly initialized, and gives the admin
some</P>
<P># hints about what to do if it wasn't.</P>
<P>if [ ! $? = 0 ]; then</P>
<P>cat << END</P>
<P>Your ethernet card was not initialized properly. Here are some reasons why
this</P>
<P>may have happened, and the solutions:</P>
<P>1. Your kernel does not contain support for your card. Including all the </P>
<P>network drivers in a Linux kernel can make it too large to even boot, and</P>
<P>sometimes including extra drivers can cause system hangs. To support your</P>
<P>ethernet, either edit /etc/rc.d/rc.modules to load the support at
boottime,</P>
<P>or compile and install a kernel that contains support.</P>
<P>2. You don't have an ethernet card, in which case you should comment out
this</P>
<P>section of /etc/rc.d/rc.inet1. (Unless you don't mind seeing this
error...)</P>
<P>END</P>
<P>fi</P>
<P># Uncomment these to set up your IP routing table.</P>
<P>/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0</P>
<P>if [ ! "$GATEWAY" = "" ]; then</P>
<P>/sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1</P>
<P>fi</P>
<P># End of rc.inet1</P>
<P> </P>
<P> </P>
<P> </P>
<P>file /etc/slip/slip.hosts</P>
<P>#</P>
<P># login local-addr remote-addr netmask slipmode timeout option1 option2
...</P>
<P># valid slipmodes: normal,compressed,ax25,6bit,auto</P>
<P>#</P>
<P># you also may use an asterisk * for DYNAMIC</P>
<P>#</P>
<P>win586 199.60.103.1 DYNAMIC 255.255.255.0 normal</P>
<P>compaq 199.60.103.1 DYNAMIC 255.255.255.0 normal </P>
<P> </P>
<P> </P>
<P> </P>
<P>file /etc/slip/slip.login</P>
<P>#!/bin/sh</P>
<P># generic login/logout file for a slip line. sliplogin invokes this with</P>
<P># the parameters:</P>
<P>#</P>
<P># 1 2 3 4 5 6 7 8 9-n</P>
<P># slipunit ttyspeed pid loginname local-addr remote-addr mask mode
opt-args</P>
<P>#</P>
<P>/sbin/ifconfig $1 $5 pointopoint $6 mtu 1500 arp -trailers up</P>
<P>/sbin/route add $6</P>
<P>/sbin/arp -s $6 00:10:4B:21:DD:6F pub</P>
<P>echo $1 $2 $3 $4 $5 $6 > /var/run/sliplogin.log</P>
<P>exit 0</P>
<P> </P>
<P> </P>
<P> </P>
<P>file /etc/slip/slip.tty</P>
<P>/dev/ttyS0 199.60.103.2</P>
<P>/dev/ttyS1 199.60.103.3</P></FONT></DIV></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01bec0d1$93b89d00$LocalHost>
