Adding a 2nd network card on a virtual Debian machine


#1

hey! (:

i need to add another network card on a linux machine…
how to do it?

thanks for helping!
(:


#2

Hi,

To add second network card on your virtual machine use your virtualization software to add another network interface and reboot. This way you will attach new network interface to your system and debian will recognize it after reboot and most like it will be available as

eth1

.

If you cannot create new virtual network interface due to the admin access restrictions you can create second network interface within your Linux system using the ifconfig command. For example here we create a secont virtual interface from exciting

eth0

network interface:

[B]# ifconfig eth0:0 123.123.22.22[/B]
# ifconfig eth0:0
eth0:0    Link encap:Ethernet  HWaddr 3c:97:0e:02:98:c8  
          inet addr:123.123.22.22  Bcast:123.255.255.255  Mask:255.0.0.0

Follow this line for more information on how to add virtual network interface on Linux.

Hope this helps…

Lubos


#3

#4