From owner-freebsd-questions Sun Jun 27 12:20:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from infoviaplus.net.ar (adv19.infoviaplus.net.ar [200.9.212.59]) by hub.freebsd.org (Postfix) with ESMTP id 3D50314DAA for ; Sun, 27 Jun 1999 12:20:12 -0700 (PDT) (envelope-from luisbajo@infovia.com.ar) Received: from luisbajoinfovia ([209.13.234.229]) by infoviaplus.net.ar (Tid InfoMail Exchanger v2.20) with SMTP id #930511214.229760001; Sun, 27 Jun 1999 16:20:14 -0300 Reply-To: "Luis Bajo" From: "Luis Bajo" To: Subject: Please, help me with two SLIP connections. Date: Sun, 27 Jun 1999 16:16:36 -0300 Message-ID: <01bec0d1$93b89d00$LocalHost@luisbajoinfovia> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01BEC0B8.6E6B6500" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 X-Infomail-Id: 930511214.59C001AC1E03A0.31214 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0004_01BEC0B8.6E6B6500 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=20 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=20 sl0 Link encap:Serial Line IP=20 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=20 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 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=3D`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=20 # 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=3D"199.60.103.1" # REPLACE with YOUR IP address! NETMASK=3D"255.255.255.0" # REPLACE with YOUR netmask! NETWORK=3D"199.60.103.0" # REPLACE with YOUR network address! BROADCAST=3D"199.60.103.255" # REPLACE with YOUR broadcast address, if = you # have one. If not, leave blank and edit below. GATEWAY=3D"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 [ ! $? =3D 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" =3D "" ]; 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=20 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 ------=_NextPart_000_0004_01BEC0B8.6E6B6500 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

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=20 Windows 95 based computers via SLIP connections.

The connection to the Linux box from each Windows 95 based computers = is=20 successfully.

But my problem is that I can not comunicate between the Windows 95 = based=20 computers. That is, when I try to do ping from one Windows 95 based = computer to=20 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=20 problem.

Thank you very much!

 

     Window=20 95            = ;        =20 Linux           &n= bsp;       =20 Window 95

|-----------------|        &nb= sp;=20 |----------------|        =20 |----------------|

|      win586     |=20 SLIP     |   = linux386    =20 |   SLIP  |    =20 compaq     |

| (199.60.103.2)  |--------->| (199.60.103.1) |<--------|=20 (199.60.103.3) |

|-----------------|        &nb= sp;=20 |----------------|        =20 |----------------|

 

 

 

ifconfig

lo Link encap:Local Loopback

inet addr:127.0.0.1 Bcast:127.255.255.255=20 Mask:255.0.0.0

UP BROADCAST LOOPBACK RUNNING MTU:3584=20 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=20 00:10:4B:21:DD:6F

inet addr:199.60.103.1 Bcast:199.60.103.255=20 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500=20 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=20 Mask:255.255.255.0

UP POINTOPOINT NOTRAILERS RUNNING MTU:1500=20 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=20 Mask:255.255.255.0

UP POINTOPOINT NOTRAILERS RUNNING MTU:1500=20 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=20 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=3D`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=20

# eth0 interface. If you're only using loopback or SLIP, don't = include=20 the

# rest of the lines in this file.

# Edit for your setup.

IPADDR=3D"199.60.103.1" # REPLACE with YOUR IP address!

NETMASK=3D"255.255.255.0" # REPLACE with YOUR netmask!

NETWORK=3D"199.60.103.0" # REPLACE with YOUR network = address!

BROADCAST=3D"199.60.103.255" # REPLACE with YOUR broadcast = address,=20 if you

# have one. If not, leave blank and edit below.

GATEWAY=3D"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=20 uncommented.

# It sees if the ethernet was properly initialized, and gives the = admin=20 some

# hints about what to do if it wasn't.

if [ ! $? =3D 0 ]; then

cat << END

Your ethernet card was not initialized properly. Here are some = reasons why=20 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=20 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=20 this

section of /etc/rc.d/rc.inet1. (Unless you don't mind seeing this=20 error...)

END

fi

# Uncomment these to set up your IP routing table.

/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0

if [ ! "$GATEWAY" =3D "" ]; 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=20 ...

# 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=20 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

------=_NextPart_000_0004_01BEC0B8.6E6B6500-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message