Install hardware
Install software
Configure network adapter
# ifconfig eth0 netmask 255.255.255.0 broadcast 10.0.0.255 10.0.0.150
# ifup eth0
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr AA:BB:CC:DD:EE:FF
inet addr:10.0.0.150 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
# route add -net 10.0.0.0 netmask 255.255.255.0 eth0
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.150 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
# ping -c4 10.0.0.150
PING 10.0.0.150 (10.0.0.150) from 10.0.0.150 : 56(84) bytes of data.
64 bytes from 10.0.0.150: icmp_seq=0 ttl=255 time=0.2 ms
64 bytes from 10.0.0.150: icmp_seq=1 ttl=255 time=0.2 ms
64 bytes from 10.0.0.150: icmp_seq=2 ttl=255 time=0.2 ms
64 bytes from 10.0.0.150: icmp_seq=3 ttl=255 time=0.2 ms
--- 10.0.0.150 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.2/0.2/0.2 ms
Configure pppd
# cd /etc/ppp
# mv options options.modem
# touch options
/etc/ppp/options.mxstream
and put the following in, replacing username
, service
by the username and service at your ISP. When you have a XS4ALL Mxstream connection then service
is either xs4all-basic-adsl
or xs4all-fast-adsl
.
idle 0
noauth
user username@service
defaultroute
usepeerdns
nodetach
lcp-echo-interval 10
lcp-echo-failure 3
/etc/ppp/pap-secrets
and put the following in, replacing username
, service
and password
by the username, service and password you have at your ISP:
# Secrets for authentication using PAP
# client server secret IP addresses
username@service * password
Test the connection
# /usr/sbin/pptp 10.0.0.138 file /etc/ppp/options.mxstream
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
local IP address 194.109.197.56
remote IP address 195.190.241.39
primary DNS address 194.109.104.104
secondary DNS address 194.109.6.66
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.150 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
195.190.241.39 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 195.190.241.39 0.0.0.0 UG 0 0 0 ppp0
If you curious what this means, then here is some explanation:
The first line means: I have a network interface called eth0, which is located on the local ethernet and it has IP address 10.0.0.150
The second line means: All IP addresses in the 10.x.x.x range can be found through the interface eth0.
The third line means: I have a network interface called ppp0, and the other end of the connection has IP address 195.190.241.39
The fourth line means: All IP addresses (unless specified or included in previous lines) can be found through the interface ppp0
# ping -c4 194.109.104.104
PING 194.109.104.104 (194.109.104.104) from 194.109.197.56 : 56(84) bytes of data.
64 bytes from 194.109.104.104: icmp_seq=0 ttl=255 time=25.2 ms
64 bytes from 194.109.104.104: icmp_seq=1 ttl=255 time=25.7 ms
64 bytes from 194.109.104.104: icmp_seq=2 ttl=255 time=26.1 ms
64 bytes from 194.109.104.104: icmp_seq=3 ttl=255 time=26.9 ms
--- 194.109.104.104 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 25.2/25.9/26.9 ms
Configure auto-connect
and add the following line:/usr/sbin/start-mxstream
and put the following in:
#!/bin/sh
ADSLMODEM=10.0.0.138
/usr/bin/killall pptp 2> /dev/null && /bin/sleep 10
/bin/rm -f /var/run/pptp/$ADSLMODEM 2> /dev/null
/usr/sbin/pptp $ADSLMODEM file /etc/ppp/options.mxstream
/etc/inittab
mx:2345:respawn:/usr/sbin/start-adsl
inittab
re-read its configuration:
# telinit q
/var/log/messages
.
Troubleshooting
DISABLE your FIREWALL and check /var/log/messages