Re: [LINUX:2290] Re: linux ile L-L ppp

Ozerk Alpay (Ozerk.Alpay@charon.raksnet.com.tr)
Fri, 02 May 1997 21:38:25 +0300


bende leased line iCin SOyle birSey var ama cslip iCin.

saygIlar.

#! /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`

killall slattach
# 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.
#ip 194.27.230.0
# Edit for your setup.
SL0_NETWORK="195.142.2.248"
SL0_RIPADDR="195.142.2.249"
SL0_LIPADDR="195.142.2.250"
SL0_NETMASK="255.255.255.252"

ETH0_IPADDR="195.142.128.193" # REPLACE with YOUR IP address!
ETH0_NETMASK="255.255.255.192" # REPLACE with YOUR netmask!
ETH0_NETWORK="195.142.128.192" # REPLACE with YOUR network address!
ETH0_BROADCAST="195.142.128.255" # REPLACE with YOUR broadcast address, if you
# have one. If not, leave blank and edit below.
GATEWAY=SL0_RIPADDR # REPLACE with YOUR gateway
address!
/sbin/slattach -p cslip -s 57600 /dev/cua1&
sleep 2
/sbin/ifconfig eth0 ${ETH0_IPADDR} broadcast ${ETH0_BROADCAST} netmask
${ETH0_NETMASK}
sleep 2
/sbin/ifconfig sl0 ${SL0_LIPADDR} pointopoint ${SL0_RIPADDR} netmask
${SL0_NETMASK}
sleep 2

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${ETH0_NETWORK} netmask ${ETH0_NETMASK}
/sbin/route add -net ${SL0_NETWORK} netmask ${SL0_NETMASK} dev sl0
/sbin/route add default gw 195.142.2.249 metric 1
#${SL0_RIPADDR} metric 1

# End of rc.inet1

=========== REPLY PARTITION ===========

On 05/02/97, at 07:02 PM, Baris Cenberci wrote:

>Tevfik Uret wrote:
>>
>> selam,
>> asagidaki ayarlari b gozden gecirirmisiniz ?
>>
>> rc.inet1 e eklenen satirlar;
>>
>> /usr/sbin/pppd /dev/cua1 115200 defaultroute crtscts local passive
>> 193.140.129.1:193.140.141.1 netmask 255.255.255.0
>>
>> /sbin/route add -host 193.140.141.1 ppp0
>> /sbin/route add default gw 193.140.141.1 metric 1
>>
>> ve routing sonuclari ile ifconfig;
>>
>> ~#route
>> Kernel routing table
>> Destination Gateway Genmask
>> Flags MSS Window Use Iface
>> 193.140.141.1 * 255.255.255.255 UH
>> 1500 0 ppp0
>> 193.140.129.0 * 255.255.255.0 UH
>> 1500 0 eth0
>> loopback * 255.0.0.0
>> UH 3584 0 lo
>> default 193.140.141.1 *
>> UH 1500 0 ppp0
>> ~#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:12 errors:0 dropped:0 overruns:0
>> TX packets:12 errors:0 dropped:0 overruns:0
>>
>> eth0 Link encap:10Mbps Ethernet HWaddr 00:20:18:2C:41:48
>> inet addr:193.140.129.1 Bcast:193.140.129.255 Mask:255.255.255.0
>> UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
>> RX packets:635 errors:0 dropped:0 overruns:0
>> TX packets:8 errors:0 dropped:0 overruns:0
>> Interrupt:10 Base address:0x6100
>>
>> ppp0 Link encap:Point-Point Protocol
>> inet addr:193.140.129.1 P-t-P:193.140.141.1 Mask:255.255.255.252
>> UP POINTOPOINT RUNNING MTU:1500 Metric:1
>> RX packets:1077 errors:0 dropped:0 overruns:0
>> TX packets:939 errors:0 dropped:0 overruns:0
>>
>> ~#
>>
>> yukaridaki konfigurasyonu iceren
>> Linux Gateway makinasi yannizca
>> kendisi internet i goruyor,
>> ne kadar bencilce b durum :(
>> bunlarin arkasina ethernet tarafindan
>> bagladigimiz makina 129.1 i gordugu halde
>> internet i gorememiyor,
>> bir routing hatasi oldugu suphesiz
>> ama ben goremedim, yardim eder misiniz ?
>> +---------------------------------?
>>
>Cok basit bir kontrol ama, ayni zamanda cok sIk yapilan bir hata oldugu
>icin tekrar belirtmeyi uygun gordum...
>
>1. Kernel'i routing enable halde bir daha derleyip install ettiniz mi?
>2. routed caisiyor mu?
>(3.) Karsidaki router'in konfigurasyonu tamam mi? Yani sizin LAN'a gelen
>paketleri linux'a gonderiyor mu?
>
>Iyi calismalar...
>--
>B.C.
>=={:{)*
>e-mail= Baris.Cenberci@raksnet.com.tr

--
Ozerk Alpay
Ozerk.Alpay@raksnet.com.tr
ozerk@ankara.edu.tr
TEL : 90-312-4400072
FAX : 90-312-4408244