network

Kevin kgilpin_uk at yahoo.co.uk
Tue Jan 6 10:16:29 GMT 2004


Happy New Year

I am in the process of moving our Redhat systems to FreeBSD systems.  We
are currently using a machine as a router which below is a snip of the
script we run to start everything working 

echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/default/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/lo/send_redirects
/sbin/ifconfig eth0:0 192.168.1.254 netmask 255.255.255.0
/sbin/route add -host 192.168.1.254 dev eth0:0
/sbin/ifconfig eth0:1 192.168.2.254 netmask 255.255.255.0
/sbin/route add -host 192.168.2.254 dev eth0:1
/sbin/ifconfig eth0:2 192.168.3.254 netmask 255.255.255.0
/sbin/route add -host 192.168.3.254 dev eth0:2

FreeBSD
Would this be the correct syntax?

ifconfig ep0 inet 192.168.1.254 netmask 255.255.255.255 alias
route add -host 192.168.1.2540 127.0.0.1 0
ifconfig ep0 inet 192.168.2.254 netmask 255.255.255.255 alias
route add -host 192.168.2.254 127.0.0.1 0

Am I on the correct track or way off?

Thanks for any advice

Kevin


________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html




More information about the Ukfreebsd mailing list