[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

need help on setting up a ppp connection



Hi there,
	I have previously set up a network at home, one acts as a gateway and it is
	connected to my isp via ppp, and the other one accesses internet through 
	the gateway.

	I have since rearranged my room and decided to rebuild one of my slower
	computers and make it the gateway computer.

	I installed potato release 2 onto it.

	after pppconfig, I installed kernel 2.4.2 onto the computer.

	YOu can assume that my configuration for pppconfig is correct, since
	I did a straight copy from my working gateway. plog showed that it
	did shake hand with the isp's server at least and it stayed alive.

	My problem is that it could not ping my isp neither could it ping
	the outside network.

	Do I need to configure /etc/network/interfaces?

	I don't think I needed to though.

	Note, my current working gateway is not using the /etc/networking/interface
	feature, but using the old init script in /etc/init.d
	with lots of "ifconfig" and "route add"

here's what I got when ppp is not on: (192.168.1.3 is the new gateway box that I was trying to build).

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.3     0.0.0.0         UG    0      0        0 eth0

here's what I got when ppp is on:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
129.78.56.16    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0


this is what I want to get when ppp is on: (129.78.56.17 is given by my ISP, but this is not the DNS, 192.168.1.1 is the old gateway that I have, and it is running).

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
129.78.56.17    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     192.168.1.1     255.255.255.0   UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         129.78.56.17    0.0.0.0         UG    0      0        0 ppp0

this is what my /etc/network/interfaces looks like:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
iface lo inet loopback

# The first network card - this entry was created during the Debian installation# (network, broadcast and gateway are optional)
iface eth0 inet static
	address 192.168.1.3
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255

please give me some pointers here.

thanks in advance.

Bill


-- 
Documentation is like sex: when it is good, it is very,
very good; and when it is bad, it is better than nothing.
                                 -- Dick Brandon
---------------------------------------------
Bill Shui           Email: wshui@mail.com
Bioinformatics Programmer



Reply to: