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

Re: two network cards on a server





On Fri, 20 Apr 2007, Alex Samad wrote:

On Thu, Apr 19, 2007 at 05:15:25PM -0400, Roberto C. Sánchez wrote:
On Thu, Apr 19, 2007 at 05:06:47PM -0400, Faheem Mitha wrote:

/sbin/route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
152.3.172.0     0.0.0.0         255.255.254.0   U     0      0        0 eth1
152.3.172.0     0.0.0.0         255.255.254.0   U     0      0        0 eth0
0.0.0.0         152.3.172.1     0.0.0.0         UG    0      0        0 eth1

Somebody suggested that using two network addresses with one network card
> should be possible. Would this make these problems go away?
sorry, what are the problems that you are seeing ?

They were described in the first post to this thread. Namely one of the two network cards on this machine (the one configured later) behaves eratically, is only intermittently reachable from outside, and is constantly broadcasting dhcp requests.

Yes.  I have one server (firewall actually) with 8 IPs on one physical
interface.  It simplifies things greatly.  You want to search for how to
do aliases.

have a look for ip (it part of the iproute package)

Usage: ip addr {add|del} IFADDR dev STRING
      ip addr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]
                           [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ]
IFADDR := PREFIX | ADDR peer PREFIX
         [ broadcast ADDR ] [ anycast ADDR ]
         [ label STRING ] [ scope SCOPE-ID ]
SCOPE-ID := [ host | link | global | NUMBER ]
FLAG-LIST := [ FLAG-LIST ] FLAG
FLAG  := [ permanent | dynamic | secondary | primary |
          tentative | deprecated ]

Er, why is this relevant? Sorry if I am being clueless.

Thanks.                                         Faheem.

Reply to: