about routing

M.H.Hung sysdba at mail.tradepages.com.tw
Mon Sep 10 16:54:41 BST 2001


Hi,

  I have a FreeBSD 4.3 RELEASE server for mail and 
secondary domain name server, the following is the
result of ifconfig -a:

ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 211.23.135.60 netmask 0xfffffff8 broadcast 211.23.135.63
        inet6 fe80::250:baff:fe06:4c8a%ed1 prefixlen 64 scopeid 0x2
        inet 203.74.57.5 netmask 0xffffff00 broadcast 203.74.57.255
        ether 00:50:ba:06:4c:8a

the result of netstat -nr is:

Internet:
Destination        Gateway            Flags     Refs     Use     Netif
Expire
default            211.23.135.57      UGSc      351      628      ed1
127.0.0.1          127.0.0.1          UH          0       10      lo0
203.74.57          link#2             UC          0        0      ed1 =>
211.23.135.56/29   link#2             UC          0        0      ed1 =>

I set an ip alias 203.74.57.5 for some reason, but this ip
is not visibale outside anywhere, I think when an ip packet
come in to this ip, it's returning packet will go throuth
default gateway, but I want this returning packet will go through
another gateway 203.74.57.254 if the source packet come from the
ip alias 203.74.57.5, can anybody tell me how to configure?

  Thanks very much.

-- 
M.H.Hung
from Taiwan




More information about the Ukfreebsd mailing list