Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PPP - IP addresses

Status
Not open for further replies.

ManagerJay

IS-IT--Management
Jul 24, 2000
302
US
I have configured pppd in RedHat 6.1 and it dials on demand without any difficulty. The problem I am having is once the ppp0 interface is activated, it assumes the same IP address as eth0. And, when the Internet provider is dialed, no ip address is assigned.

I spoke to my Internet provider and they "think" they are running PPP but they are not sure.

I have the following in my /etc/ppp/options file
demand
idle 600
ipcp-accept-remote
ipcp-accept-local
lock
noauth
defaultroute
user halljay
remotename myisp
/dev/ttyS3 115020 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/call-isp'

From the log file, I get a message stating

Aug 21 20:43:37 halls pppd[1276]: Serial connection established.
Aug 21 20:43:37 halls pppd[1276]: Connect: ppp0 <--> /dev/ttyS3


Does this mean that I am connected to my isp, or am I not connected? If I am connected, any ideas why I am not receiving an IP address?

Thanks,



Jay
 
>I spoke to my Internet provider and they &quot;think&quot; they are running PPP but they are not sure.

If that is true, find another ISP. They probably don't know where ppp is on there NT servers ;-)

When you are connected did you try running ifconfig? What are the results? Did you try pining external addresses like or 204.137.168.66 ? Did that turn up anything? Can you ping machines on your local network through eth0 when you are connected?
 
I cannot ping other machines on the network when ppp0 is active. Running ifconfig shows ppp0 inet addr: 10.129.10.40 and P-t-P: 10.112.112.112. eth0 has an ip address of 10.129.10.40.

Thanks for your help.



Jay
 
You could try turning eth0 off by: ifconfig eth0 down when you are connected to your ISP and see if you can ping tek-tips from there.

How are you getting the ip address for eth0, is it static or DHCP?

 
eth0 has a static ip address. I will try disabling eth0 tonight and let you know what happens.



Jay
 
I disabled eth0 and started pppd. ppp0 still came up with the ip address of 10.129.10.40 initially, but when I pinged outside my network, the server dialed and was assigned an ip address from my ISP.

I have changed /etc/ppp/options to include the line noipdefault, but ppp0 is still being assigned this address. I have also checked and there is not a /etc/sysconfig/network-scripts/ppp0 script. Should there be?

Thanks,



Jay
 
What does ifconfig say once you have ppp0 up and eth0 down?

Did you trying changing the ip address of eth0 to something else? and does the ppp0 adopt this change?

Do you know what range your ip for ppp0 should be? What distor are you using?

Here is an excellant site that you may find more information about as I am out of ideas:
I usually go here for most of my linux problems....


Good Luck....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top