public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] dual nic cards
@ 2006-02-12  6:02 Dan Sheffner
  2006-02-13 10:15 ` Jo Are Rosland
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Sheffner @ 2006-02-12  6:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

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"
)

[-- Attachment #2: Type: text/html, Size: 1360 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] dual nic cards
  2006-02-12  6:02 [gentoo-user] dual nic cards Dan Sheffner
@ 2006-02-13 10:15 ` Jo Are Rosland
  0 siblings, 0 replies; 2+ messages in thread
From: Jo Are Rosland @ 2006-02-13 10:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1789 bytes --]

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 #2: Type: application/pgp-signature, Size: 185 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-13 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-12  6:02 [gentoo-user] dual nic cards Dan Sheffner
2006-02-13 10:15 ` Jo Are Rosland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox