On 12.02, Dan Sheffner wrote:
>    I'm trying to setup dual nics on my server but I seem to be doing 
> something wrong.  Below is my /etc/conf.d/net
>    file.  As you can see my public address pointing to the web is 
> 70.88.74.105 and the local one is 10.1.10.5.  As
>    soon as I enamble eth1 eth0 won't ping out from another box.  It may be 
> something simple but I don't know what I'm
>    doing wrong.  Please help.
> 
>     This blank configuration will automatically use DHCP for any net.*
>    # scripts in /etc/init.d.  To create a more complete configuration,
>    # please review /etc/conf.d/net.example and save your configuration
>    # in /etc/conf.d/net (this file :]!).
>    config_eth0=( "70.88.74.105 netmask 255.255.255.0 broadcast 
> 70.255.255.255")
>    config_eth1=( "10.1.10.5 netmask 255.255.255.0 broadcast 10.1.10.255")
>    # Here's how todo routing if you need it - the below sets the default 
> gateway
>    routes_eth0=(
>           "default via 70.88.74.110"
>    )

Your eth0 broadcast address is obviously wrong, it should be 70.88.74.255
according to the netmask you've specified.  How did you come up with these
values?  Were they given to you from your ISP?  Anyway, by using the following,
alternative (and shorter) syntax you're more likely to set the different
parameters correctly:

    config_eth0=( "70.88.74.105/24")
    config_eth1=( "10.1.10.5/24")

Also, but possibly depending on what you're going to use this box for,
you need to at leat:

- enable ip forwarding in /etc/sysctl.conf

- activate iptables or something like it to protect the Internet facing 
interface
  from unwanted attention

Have a look at the following guide, if you didn't already:
http://www.gentoo.org/doc/en/home-router-howto.xml

-- 
Jo.

Attachment: pgpbO03WFZ66d.pgp
Description: PGP signature

Reply via email to