A. Jorge Garcia
09-25-2007, 06:50 PM
OK, I teach Computer Science at a school where the tech dept decided to put my linux classes on a separate network. So, in their infinte wisdom, they added a 2nd Network Interface Card (NIC) to each of my linux boxes (25 student stations + 1 teacher station with a projector). What's nice about this is that the new NICs are GigaBit, what's not nice is that they are going to be able to block access to other parts of the school network (b/c I have infamous hackers in my class this year).
Anyway, the problems I'm having are:
(1) how do I know which NIC is being used?
(2) how do I disable one NIC and enable another NIC when necessary?
(3) is there a configuration file where the settings from netcardconfig are saved that I can simply delete and start over?
(4) if I use netcardconfig w/o DHCP can I use any IP I feel like (I know the netmask, braodcast, default gateway and dns)?
You see, I used netcardconfig to configure eth0 as usual, but apparently, its eth1 that I should have configured as the new NIC. So, now when I run ifconfig, both NICs come up + localhost, but I don't know which is being used as default.
TIA,
AJG
Anyway, the problems I'm having are:
(1) how do I know which NIC is being used?
(2) how do I disable one NIC and enable another NIC when necessary?
(3) is there a configuration file where the settings from netcardconfig are saved that I can simply delete and start over?
(4) if I use netcardconfig w/o DHCP can I use any IP I feel like (I know the netmask, braodcast, default gateway and dns)?
You see, I used netcardconfig to configure eth0 as usual, but apparently, its eth1 that I should have configured as the new NIC. So, now when I run ifconfig, both NICs come up + localhost, but I don't know which is being used as default.
TIA,
AJG