-
Senior Member
registered user
Dual NICs (wired)
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
-
Senior Member
registered user
Re: Dual NICs (wired)
Originally Posted by
A. Jorge Garcia
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)?
(1) maybe via 'ifconfig'?
(2) see answer 3 :-p
(3) see answer 4 :-p :-p
(4) the file you are looking for is (should be) '/etc/network/interfaces'
Here's mine with a 192.168.0.14 static address:
Code:
# /etc/network/interfaces -- configuration file
# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.14
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
The 'iface eth...' section is which that matters.
Edit the file and then issue 'update-rc.d networking defaults' to keep it persistent at every reboot.
HTH!
-
Senior Member
registered user
Oh, thank God! Finally, the file I needed! I knew there was a config like that somewhere, I just needed someone to kickstart my memory.
Thanx, you're a God send!
Regards,
AJG
-
Senior Member
registered user
OK, so my /etc/network/interfaces file only has
Code:
auto lo eth1
iface lo ...
iface eth1 ...
...
...
...
...
...
And all is well!
Thanx,
AJG
Similar Threads
-
By sknuky in forum Networking
Replies: 0
Last Post: 10-14-2006, 06:36 PM
-
By honegod in forum Networking
Replies: 6
Last Post: 09-13-2005, 02:50 PM
-
By ghostblaze in forum General Support
Replies: 0
Last Post: 10-27-2004, 11:09 PM
-
By CodeOptimist in forum Networking
Replies: 0
Last Post: 03-18-2004, 11:25 PM
-
By gkp in forum General Support
Replies: 5
Last Post: 07-10-2003, 07:09 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays
$1849.00
Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD
$89.99
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox
$340.00
DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45
$284.00
DELL POWEREDGE T430 SERVER W/ DUAL XEON E5-2609 CPU & 16GB MEMORY
$329.00
CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs
$246.67
Dell PowerEdge R620 Server 2x E5-2650 V2 = 16 Cores H710P 128GB RAM 2x 600GB SAS
$274.99
Dell PowerEdge R730XD Server (2x) E5-2630 V3 2.4Ghz 128GB (8x)1TB(2x)300GB HDD
$220.00
DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 256GB H730 4xRJ45
$600.00