Testing the uplink
If everything went as it should we should now have a working uplink.
Simply fire up pppd with the right connection and run ifconfig to see if it worked:
pppd call adsl
PPPD output in /var/log/syslog
Nov 3 03:22:41 gauntlet pppd[6882]: pppd 2.4.2 started by root, uid 0
Nov 3 03:22:41 gauntlet pppd[6882]: Using interface ppp0
Nov 3 03:22:41 gauntlet pppd[6882]: Connect: ppp0 <--> /dev/pts/1
Nov 3 03:22:41 gauntlet pptp[6883]: anon log[main:pptp.c:267]: The synchronous pptp option is activated
Nov 3 03:22:41 gauntlet pptp[6887]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Nov 3 03:22:41 gauntlet pptp[6887]: anon log[ctrlp_disp:pptp_ctrl.c:732]: Received Start Control Connection Reply
Nov 3 03:22:41 gauntlet pptp[6887]: anon log[ctrlp_disp:pptp_ctrl.c:766]: Client connection established.
Nov 3 03:22:42 gauntlet pptp[6887]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Nov 3 03:22:42 gauntlet pptp[6887]: anon log[ctrlp_disp:pptp_ctrl.c:851]: Received Outgoing Call Reply.
Nov 3 03:22:42 gauntlet pptp[6887]: anon log[ctrlp_disp:pptp_ctrl.c:890]: Outgoing call established (call ID 0, peer's call ID 0).
Nov 3 03:22:48 gauntlet pppd[6882]: PAP authentication succeeded
Nov 3 03:22:48 gauntlet pppd[6882]: local IP address xxx.xxx.113.88
Nov 3 03:22:48 gauntlet pppd[6882]: remote IP address xxx.xxx.249.62
Nov 3 03:22:48 gauntlet pppd[6882]: primary DNS address xxx.xxx.0.6
Nov 3 03:22:48 gauntlet pppd[6882]: secondary DNS address xxx.xxx.0.7
Note: If you get something like:
Couldn’t set tty to PPP discipline: Invalid argument
Make sure you have the synchronous tty module loaded or compiled into your kernel (I forgot this myself)
Looking at the last 4 lines you can see the connect succeeded. If you have copied my masquerading script you can now enter ‘internet’ on the console and manually configure your normal pc with an internal ip address and the dns addresses you can see in the output of pppd to go online!