Hi List 

I have a FreeBSD 4.7(i386) Release box and I am trying to make it run as
a router. My outer interface is ppp and seems that is not working
correctly. The interface definitions inside the rc.conf file are the following:

...
network_interfaces="ppp0 rl0 lo0"
ifconfig_rl0="inet 111.111.111.111 mtu 1500 netmask 255.255.255.240"
ifconfig_rl0_alias0="inet 192.168.3.1 mtu 1500 netmask 255.255.255.0"
ifconfig_ppp0="inet 222.222.222.222 333.333.333.333 mtu 1500 netmask 255.255.255.252"
hostname="XXX.YYY.ZZZ"
defaultrouter="333.333.333.333"
...

And I start pppd from the rc.local file like this:

/usr/sbin/pppd /dev/cuaa0 115200 222.222.222.222:333.333.333.333 noauth
persist netmask 255.255.255.252

When I boot the router and try to connect through the outer interface
(ping) I get "no route to host", but when I try "route add default
333.333.333.333" the ppp seems to run ok. On the other hand, adding
"route add default 333.333.333.333" to my rc.local file does not solve
the problem.

The same rc.conf and rc.local files have been used in my old FreeBSD
4.2(i386) router with no problem at all. 

What am I doing wrong?
Is rc.local the correct place to start the pppd?
Any suggestions?

Thank you very much for your time

Jim Xochellis
Escape Information Services

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to