[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Advice on network setup



Hi Bernd,

First up, thanks for your help.

On Fri, Jan 31, 2003 at 12:38:47AM +0100, Bernd Eckenfels wrote:
> On Fri, Jan 31, 2003 at 10:13:29AM +1100, Lucas Barbuto wrote:
> >         - On the firewall, what will I set the internal IP to?  It
> >           doesn't matter right?
> 
> well, if you are going to use only assigned addresses, i would suggest you
> use the same as the external, because this safes address space. .226

If I do this, how do I set the gateway for my internal interface?  For
example, my /etc/network/interfaces

#
# eth0 external interface
#
auto eth0
iface eth0 inet static
        address         203.35.176.226
        netmask         255.255.255.240
        network         203.35.176.224
        broadcast       203.35.176.239
        gateway         203.35.176.225

#
# eth1 internal interface
#
auto eth1
iface eth1 inet static
        address         203.35.176.226
        netmask         255.255.255.240
        network         203.35.176.224
        broadcast       203.35.176.239
        gateway         203.35.176.225

These two entries would be identical, I'm guessing that isn't going to
work.  So I would need to modify the routing table to tell eth1 how to
get out (via eth0)?  How do I do that?  And vice-versa?

I setting up the routing table the way I thought it should go and it
came out like this:

# route -n
Kernel IP routing table
Destination     Gateway         Genmask                 Flags   Iface
203.35.176.226  0.0.0.0         255.255.255.255         UH      eth0
203.35.176.224  0.0.0.0         255.255.255.240         U       eth0
203.35.176.224  0.0.0.0         255.255.255.240         U       eth1
0.0.0.0         203.35.126.226  0.0.0.0                 UG      eth0
0.0.0.0         203.35.176.225  0.0.0.0                 UG      eth1
0.0.0.0         203.35.176.225  0.0.0.0                 UG      eth0

Is this correct?  I just want to get traffic going both ways.

Regards,

Lucas



Reply to: