RedHat 7.2 -> Freebsd - BIG PROBLEN

bivol at bivol at
Tue Nov 4 00:57:09 PST 2003

I'm trying to migrate my router from RedHat 7.2 to FreeBSD.
Please see the following scrit - it works fine under linux:
touch /var/lock/subsys/local
sleep 5
/sbin/ifconfig eth0 down
sleep 1
/sbin/ifconfig eth0 netmask up
sleep 2
/sbin/route add -host eth0
/sbin/route add default gw
/sbin/route add -net eth0


I could never make that work for FREEBSD.

ifconfig fxp0 down
ifconfig fxp0 netmask up
route add -host
route add -host

Looks impossible at freebsd...It says Network Unreachable. I read the man page 
of route; It says this happens when the host is more than one hop away. But it 
is working with my old RedHat.

Typing just:

route add -host

works, but I need mask to have inet access

I posted to the local group but  the only guy that anaswered me says that it 
is not possible.

Please help,
I just can't believe that freebsd can not do it.

Thanks in advance,

More information about the freebsd-questions mailing list