Hello all.

I have an OpenBSD 4.0 system with three interfaces.

My interfaces are setup as follows:

/etc/hostname.bge0
inet xx.yy.101.98 255.255.255.224 xx.yy.101.127
/etc/hostname.em0
inet xx.yy.125.130 255.255.255.224 xx.yy.125.159
/etc/hostname.em1
inet 192.168.19.1 255.255.255.0 NONE
/etc/mygate
xx.yy.125.129

And netstat -rn gives me this:

Internet:
Destination        Gateway            Flags    Refs      Use    Mtu  Interface
default            xx.yy.125.129      UGS        10     1661      -   em0
xx.yy.101.96/27    link#3             UC          1        0      -   bge0
xx.yy.101.102      00:01:gg:86:hh:gg  UHLc        0        7      -   bge0
xx.yy.125.128/27   link#1             UC          1        0      -   em0
xx.yy.125.129      00:18:gg:gg:f5:gg  UHLc        1        0      -   em0
127/8              127.0.0.1          UGRS        0        0  33224   lo0
127.0.0.1          127.0.0.1          UH          1        0  33224   lo0
192.168.19/24      link#2             UC         10        0      -   em1


I have pf setup so that 192.168.19.0/24 addresses can access the
internet through em0.

How do I add a route such that machines on the 192.168.19.0 network
can access machines such as xx.yy.101.102 (which should be accessed
via bge0).

xx.yy.101.102 is currently accessible on a switch that hosts the
xx.yy.101.102,xx.yy.125.128 and the 192.168.19.0 networks.  All three
interfaces are also currently connected to the same switch.

The default routes for the xx.yy.101.102 and xx.yy.125.128 networks
are also connected via the same switch.

Satadru

Reply via email to