|
|
Home Linux and 3G Forum
|
|
PHARscape 3G Datacards and Linux
|
| View previous topic :: View next topic |
| Author |
Message |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 505 Location: UK and Belgium

|
Posted: Wed Feb 15, 2006 1:08 pm Post subject: PPP - Routing and DNS - Fedora/Redhat |
|
|
Sometimes everything works but you still can't see the internet. This could be because the routing table has not been updated or perhaps the list of DNS servers is not correct.
When PPP makes a connection it gets the gateway address and a list of DNS servers from the remote computer. We can use PPPD scripts to make changes to our Linux system so that our computer knows about the internet.
PPPD will run /etc/ppp/ip-up when a PPP conncetion is made. On Fredora/Redhat systems that script will also call /etc/ppp/ip-up.local.
The principle is to put your own commands into /etc/ppp/ip-up.local. We can use that script to update the DNS and routing inforamtion:
/etc/ppp/ip-up.local
###########################################
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
echo "created by pppd" > /etc/resolv.conf
echo "nameserver ${DNS1}" >> /etc/resolv.conf
echo "nameserver ${DNS2}" >> /etc/resolv.conf
chmod go+r /etc/resolv.conf
route del default
route add default gw ${IPREMOTE}
###########################################
You may need to make it executable:
chmod +x /etc/ppp/ip-up.local
Paul |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|
|
|
|