On Wednesday 29 January 2003 12:18, Eliran wrote:
> I know people have discussed this topic alot but it's over a month that
> I can't successfully connect.
> This was tried on RedHat 8 , RedHat 7.3 and Debian 3 SID (all on the
> same machine).
> The ethernet card is Realtek.
>
> Here are the details (l/p details altered):
>
> [This is quite long, I tried to trim it up as much as I could]
>
> ---------------------------------------------------------------------------
>--------------------------------------------------------
>
>
> cablestart script (provided by Amir Tal):
> ^^^^^^^^^^
>
> #!/bin/bash
>
> USERNAME="username"
>
> /sbin/ifdown eth0
> /sbin/ifup eth0
>
> CABLEGW=`cat /etc/dhcpc/dhcpcd-eth0.info | grep GATEWAY | cut -d"=" -f2`
>
> /sbin/route add -host pns.inter.net.il gw $CABLEGW
>
> /usr/sbin/pptp-linux pns.inter.net.il debug user $USERNAME remotename
> pns.inter.net.il mtu 1460 mru 1460 defaultroute noauth
>
> sleep 5
>
> NEWGW=$(/sbin/ifconfig ppp0 | grep inet | cut -d":" -f3 | tail -1 | cut
> -d" " -f1)
>
> /sbin/route add default gw $NEWGW
> /sbin/route del default gw $CABLEGW
>
> ---------------------------------------------------------------------------
>------------------------------------------------------
>
> /etc/ppp/options:
>
> lock
> hide-password
> noauth
> usepeerdns
>
> ---------------------------------------------------------------------------
>------------------------------------------------------
>
> [root@localhost netvision-connect]# route -vn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 213.8.255.217   0.0.0.0         255.255.255.255 UH    0      0        0
> ppp0
> 213.8.56.15     10.40.32.1      255.255.255.255 UGH   0      0        0
> eth0
> 10.40.32.0      0.0.0.0         255.255.224.0   U     0      0        0
> eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
>
> [root@localhost netvision-connect]# netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 213.8.255.217   0.0.0.0         255.255.255.255 UH       40 0          0
> ppp0
> 213.8.56.15     10.40.32.1      255.255.255.255 UGH      40 0          0
> eth0
> 10.40.32.0      0.0.0.0         255.255.224.0   U        40 0          0
> eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo
>
>
> ---------------------------------------------------------------------------
>-------------------------------------------------------
>
> [root@localhost netvision-connect]# cat /etc/resolv.conf
> search inter.net.il
> nameserver 192.116.202.222
> nameserver 192.116.192.9
>
> ---------------------------------------------------------------------------
>-------------------------------------------------------
>
> This is probably meanless as I'm using a clean install of RedHat 7.3 no
> rules created by me:
>
> [root@localhost netvision-connect]# iptables --list
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
>
> ---------------------------------------------------------------------------
>--------------------------------------------------
>
> My devices, ppp0 is up only after runing 'cablestart' of course:
>
> [root@localhost netvision-connect]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:50:FC:8C:43:46          inet
> addr:10.40.38.210  Bcast:255.255.255.255  Mask:255.255.224.0
>          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:479 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:531 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:100
>          RX bytes:48132 (47.0 Kb)  TX bytes:44308 (43.2 Kb)
>          Interrupt:9 Base address:0xc000
>

try to change MTU of your eth0 also to 1460, and reconnect.
other then that, it looks ok.

just make sure the $CABLEGW interval is removed from the routing table after 
ppp0 is up. i saw cases where it does not get removed cleanly, and causes 
problems.

tal.



> lo        Link encap:Local Loopback          inet addr:127.0.0.1
> Mask:255.0.0.0
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:61 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:3940 (3.8 Kb)  TX bytes:3940 (3.8 Kb)
>
> ppp0      Link encap:Point-to-Point Protocol          inet
> addr:213.8.129.19  P-t-P:213.8.255.217  Mask:255.255.255.255
>          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1460  Metric:1
>          RX packets:48 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:3
>          RX bytes:2750 (2.6 Kb)  TX bytes:912 (912.0 b)
>
>
> ---------------------------------------------------------------------------
>-------------------------------------------------
>
> Login/password details changed:
>
> # Secrets for authentication using PAP
> # client    server    secret            IP addresses
> ####### redhat-config-network will overwrite this part!!! (begin)
> ##########
> ####### redhat-config-network will overwrite this part!!! (end)
> ############
> username pns.inter.net.il password
>
>
> Here is pinging google:
>
> [root@localhost netvision-connect]# ping google.com
>
>
>
> As you see I get nothing... Not within a hour, two or three.
>
> Here's pinging IPs:
>
> [root@localhost netvision-connect]# ping 111.111.111.111
> PING 111.111.111.111 (111.111.111.111) from 10.40.38.210 : 56(84) bytes
> of data.
>
> --- 111.111.111.111 ping statistics ---
> 1 packets transmitted, 0 received, 100% loss, time 0ms
>
>
> As you see, no replies.
>
> Any idea why is this happening ?
>
> Thanks
>
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to