Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th April 2010, 16:47
golfnut golfnut is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I configure 2nd NIC in Ubuntu Server

I recently installed Ubuntu Server 9.1 on a new box with an Intel 82576 network controller with dual ports. When I first installed I only configured one of the ports but I think I want to configure the second one now. What is the process for doing this?
Reply With Quote
Sponsored Links
  #2  
Old 30th April 2010, 19:43
dfed dfed is offline
Junior Member
 
Join Date: Apr 2010
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

How are you looking to configure them? separate nics on the same subnet? ganged together? failover? separate nics on different subnets?
Reply With Quote
  #3  
Old 30th April 2010, 19:54
golfnut golfnut is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would like them to be seperate nics on the same subnet.
Reply With Quote
  #4  
Old 1st May 2010, 14:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's in /etc/network/interfaces?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st May 2010, 20:55
dfed dfed is offline
Junior Member
 
Join Date: Apr 2010
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by golfnut View Post
I would like them to be seperate nics on the same subnet.
Well aside from setting up the ifconfig for each, Linux by default sets arp_filter to 0 (The kernel can respond to arp requests with addresses from other interfaces.)

So you'll need to add:

net.ipv4.conf.default.arp_filter = 1

to /etc/sysctl.conf

and add to local.start:

ip route add default via ${GATEWAY} dev $(NIC2_DEV} table TABLE1
ip rule add from ${NIC2_IP} table TABLE1

I assume you're doing this to dedicate a nic to a VM or some such.

Stole this info from here:

http://spg-kush.blogspot.com/2005/07...ne-subnet.html
Reply With Quote
  #6  
Old 20th February 2011, 20:45
Schuby Schuby is offline
Junior Member
 
Join Date: Feb 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi,

Sorry to bring this thread back but I have a similar question.

I'm building a Counter Strike: Source game server (gonna use Ubuntu Server 10.04) and I'm looking at getting the Intel E1G42ET PCI-Express, dual port 82576 Gigabit Ethernet Controller and I'm wondering if it will be recognized right out of the box or if I'll have to do some setup?? I plan on disabling my motherboard's NIC prior to installation.

Also how can I set this card up so that one of the ports will connect to the internet and the other port I can connect to my LAN and share the internet to the LAN?

I know this is a really n00b question, I'm very new to this. If someone could at least point me in the right direction, I would really appreciate it.

Thank you.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with mail server and subdomains MyKE General 7 26th February 2010 10:18
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49
Mail porblems after The Perfect Server - Ubuntu Gutsy Gibbon (Ubuntu 7.10) w/ISPConfi hvrossum HOWTO-Related Questions 7 23rd March 2009 18:24
mail delivered in mbox patfee Installation/Configuration 8 11th December 2007 13:58
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11


All times are GMT +2. The time now is 19:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.