LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-05-2011, 02:45 PM   #1
zimbot
Member
 
Registered: Nov 2005
Location: cincinnati , ohio . USA
Distribution: ubuntu , Opensuse , CentOS
Posts: 179

Rep: Reputation: 17
fixed ip for more than 1 nic - more than 1 network - multi homed


Friends,

I have been struggling with the ubuntu 11.04.

I have 2 nic cards and wish the machine to be in 2 diff networks.

here is my /etc/network/interfaces file
-----
auto lo
iface lo inet loopback

auto eth0

iface eth0 inet static
address 10.100.100.16
netmask 255.0.0.0
gateway 10.1.1.1


auto eth1

iface eth1 inet static
address 172.16.100.16
netmask 255.255.0.0

-------------------------------------------------------
here is my /etc/resolv.config file


# Generated by NetworkManager
nameserver 208.233.14.16
nameserver 208.233.14.226
-------------

It seems that taking manual control from DHCP is really hard
It also seems that having 2 nic in 2 nets is hard.


I am unable to ping 172.16.100.14 which is connected via a known good crossover.

-----------
a /sbin/ifconfig show that the 10 net is still getting DHCP
( 10.2.1.NNN )


eth1 Link encap:Ethernet HWaddr 00:1c:c4:17:cf:c3
inet addr:172.16.100.16 Bcast:172.16.255.255 Mask:255.255.0.0
inet6 addr: fe80::21c:c4ff:fe17:cfc3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:726 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5714 (5.7 KB) TX bytes:177842 (177.8 KB)
Interrupt:17

eth2 Link encap:Ethernet HWaddr 00:14:d1:1d:2f:15
inet addr:10.2.1.154 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::214:d1ff:fe1d:2f15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:378791 errors:0 dropped:0 overruns:0 frame:0
TX packets:1975 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37236121 (37.2 MB) TX bytes:300314 (300.3 KB)
Interrupt:56 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3447 errors:0 dropped:0 overruns:0 frame:0
TX packets:3447 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:279472 (279.4 KB) TX bytes:279472 (279.4 KB)


Thanks for any help with this.
( i thought unity was bad until i tried to have 2 nic w 2 fixed ipNums , so is Ubuntu just going to be for tablets and such in the future ? )
 
Old 07-05-2011, 05:21 PM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Now I have to guess a little - not running Ubuntu myself but pure Debian.
If you don't have a network-manager (there are several but I think Ubuntu's is actually named network-manager) then a Debian-system uses /etc/network/interfaces for nic-configuration.
However, I do believe Ubuntu uses a special manager for networking (as mentioned) this means you have to configure your nic's through that.
Look at your post: you have configured eth0 & eth1 in /etc/network/interfaces, but ifconfig shows eth1 & eth2.
Quote:
It seems that taking manual control from DHCP is really hard
It also seems that having 2 nic in 2 nets is hard.
Nope. Wrong.
Well, of course anything you don't master might seem 'hard' - but for you, here, I think all you need is understanding in how your distro handles networking. Once you get configuration right it will just work.
---
So to make it clear: Checkout Ubuntus network-manager and configure your nic's there. Forget about /etc/network/interfaces it is not read.

Last edited by pingu; 07-05-2011 at 05:23 PM. Reason: Making it a bit clearer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-homed FW routing issues b1r2s Linux - Networking 3 03-03-2011 03:09 PM
IPv6 with Multicast on multi-homed machine Dcharan Linux - Networking 1 04-27-2010 11:16 AM
Multi Homed Gateway Router Problem conradg Linux - Networking 2 03-30-2006 11:51 PM
Multi homed gateway nukenstien Linux - Networking 4 02-10-2005 10:07 AM
Proper Solution for Multi-Homed IP ytene Mandriva 0 08-25-2003 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration