LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-12-2009, 02:39 AM   #1
brycesteinhoff
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Problem getting 2 NICs Configured on Debian


I’m trying to move a DNS server to a different connection without losing resolution in the meantime. The server has two NICs and I have them both configured so that DNS can be resolved by hitting either IP until it is fully propogated, at which point I’ll disconnect the old connection.

--------------------------------------------------
/etc/network/interfaces
--------------------------------------------------
# The loopback network interface
auto lo
iface lo inet loopback

# CHARTER CONNECTION
auto eth1
iface eth1 inet static
address 68.xxx.xxx.xxx
netmask 255.255.255.240
network 68.xxx.xxx.xxx
broadcast 68.xxx.xxx.xxx
gateway 68.xxx.xxx.xxx

# SPRINT CONNECTION
auto eth0
iface eth0 inet static
address 204.xxx.xxx.xxx
netmask 255.255.255.240
gateway 204.xxx.xxx.xxx
--------------------------------------------------

The problem is... The server is only “using” one interface (eth0). If I “ifconfig eth0 down”, then I can ping the server at 68.xxx.xxx.xxx and connect to it, etc. But when both interfaces are up I can only ping on 204.xxx.xxx.xxx. The Charter IP just times out.

ifconfig shows both interfaces being up

This is either really weird or I’m missing something stupid. I’ve been trying to hunt down if I have to do add something special in the routing tables, but I wouldn’t think I’d need that to hit the server from the outside... Maybe for specifying which interface to use on outgoing stuff or something, but I don’t care about that.

Anybody have any ideas? Am I doing something stupid?
 
Old 09-12-2009, 07:46 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
you can't have a gateway entry for both and you need to use iproute2 to set up an rt table entry for the second interface and assign a default route to that table. Do a search for iproute2 here and it should bring up a few different links on how to do this

http://www.linuxquestions.org/questi...light=iproute2
 
Old 09-12-2009, 01:39 PM   #3
brycesteinhoff
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
estabroo,

Thanks for your help so far. I removed the gateway for eth1 in /etc/network/interfaces. However, I tried to install iproute via "apt-get install iproute" and this is what I got:

--------------------------------------------------
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
iproute: Depends: libc6 (>= 2.7-1) but 2.3.2.ds1-22sarge3 is to be installed
Depends: libdb4.6 but it is not going to be installed
locales: Depends: glibc-2.7-1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
--------------------------------------------------

Running "apt-get -f install" gives me this:

--------------------------------------------------
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
Suggested packages:
glibc-doc libc6-i686
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 222 not upgraded.
2 not fully installed or removed.
Need to get 0B/4438kB of archives.
After unpacking 4973kB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 22019 files and directories currently installed.)
Preparing to replace libc6 2.3.2.ds1-22sarge3 (using .../archives/libc6_2.7-18_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
--------------------------------------------------

I've never seen anything like this when trying to install something. Any thoughts?
 
Old 09-12-2009, 05:30 PM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Your system must not have been updated in a long while. Your kind of in a no-win situation and if you have the option of building up a new box to replace this one that would be much easier than trying to get this one clean.

With regards to iproute, if you have the compilers installed it might be easier to build the package on the box so it won't have the dependency issues.
 
Old 09-13-2009, 09:42 PM   #5
brycesteinhoff
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
estabroo,

I appreciate your help. I think I can resolve the dependency issue if I am able to upgrade to the 2.6.18 kernel first. I tried apt-get install linux-image-2.6.26-1-686, but that upgrade depends on glibc also. From what I understand 2.6.18 may install. How can I make that linux-image available via apt?

Thanks.
 
Old 09-13-2009, 10:40 PM   #6
vieraci
Member
 
Registered: Mar 2007
Location: Darwin, Australia
Distribution: Debian Lenny (testing)
Posts: 45

Rep: Reputation: 15
Why not just do apt-get upgrade ?
 
Old 09-13-2009, 10:54 PM   #7
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
well you could download it and install it directly with dpkg and some force, but I don't guarantee it'll work

dpkg -i --force-all package_name
 
Old 09-13-2009, 10:58 PM   #8
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
vieraci - unfortunately until the chicken/egg is fixed upgrade won't work. There was a spot where having an older kernel broke the upgrade path (though I'd thought it had only affected testing and unstable branches of debian) and it looks like brycesteinhoff has one that hits the problem.
 
  


Reply



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
Configure virtual network settings in debian guest on xp host dual nics patrick2099 Debian 1 11-04-2008 07:10 PM
Debian Configured For Desktop Can Print? Novatian Linux - Desktop 2 05-18-2008 09:31 PM
Soundcard configured. It's a problem with HP quickplay? neolithic_psyche Fedora 0 09-15-2007 04:58 AM
configured Mouse: cannot open input device in Debian Linux pawankumarch Linux - Newbie 3 03-21-2007 11:52 AM
Setting up two nics with ntop in Debian bazagee Linux - Networking 0 02-13-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:25 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