network interface question in debian
Hi,
My system contains two nics. 1. On-board LAN card. 2. One PCI card. My on-board LAN card get damaged after a short circute or something. So I purchased the PCI card. After inserting the PCI card, I started the system. Then executed 'ifconfig'. But the system was showing eth0 as my old LAN and the second NIC was not listed at all. So I desabled the on-board LAN in BIOS and restarted the system. The 'ifconfig' shows only the loop back interfce. After trying some commands, I found : Code:
dhclient3 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases eth1 Code:
debian:~# ifconfig I need : Code:
1. A permanent solution to configure the second card so that system will setup that automatically after each reboot |
open up a text editor, like nano or vim in a terminal window (as root or using sudo), then view /etc/network/interfaces i.e.
localhost#nano /etc/network/interfaces you should see something like below Code:
GNU nano 2.0.7 File: /etc/network/interfaces |
another option if the onboard nic is disabled in BIOS is to edit the /etc/udev/rules.d/70-persistent-net.rules and change the mac address so the PCI card will come up as eth0...
it-lenny:/# cat /etc/udev/rules.d/70-persistent-net.rules Code:
# This file was automatically generated by the /lib/udev/write_net_rules |
All times are GMT -5. The time now is 05:53 PM. |