two network cards

Wouter Eerdekens retuow at xs4all.be
Wed Nov 10 16:34:44 UTC 2004


On Wed, Nov 10, 2004 at 11:11:02AM -0500, David Williamson wrote:
> What is the normal debian behaviour when adding a second network card,
> anyway?  I guess that's part of my confusion.

Adding the necessary stuff in /etc/network/interfaces. If for example,
first card is configured for DHCP, and the second one has a fixed IP,
your /etc/network/interfaces card could look like:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

# The secondary network interface
auto eth1
iface eth1 inet static
   address 10.0.0.196
   netmask 255.255.255.0
   broadcast 10.0.0.255
   network 10.0.0.0
   gateway 10.0.0.1

The lines starting with auto make sure the interface is loaded at boottime.
If you omit the line auto eth1, you can fire up your secondary network
interface with the command

ifup eth1

Hope this helps.

Wouter

-- 
Wouter Eerdekens
                                    "Revenge is a dish best served cold"
retuow at xs4all.be                             -- Ancient Klingon Proverb
http://www.haggis.be/




More information about the ubuntu-users mailing list