LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2009, 10:02 PM   #1
rjickity
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Rep: Reputation: 0
lost networking after renaming network interfaces


Hi,

I've got 4 NIC's in my server (debian 5.0.2)as im attempting to set up a load balancer. I just installed 2 extra NIC's and booted, linux proceeded to rename my interfaces (side request - anyone know how to stop that from happening? i know it should only really occur when new hardware is put in).

So i went through udev and renamed my interfaces appropriately which went fine. I now have:

gig0 - internal network 1
gig1 - internal network 2
eth0 - external network 1
eth1 - external network 2

eth0/eth1 are not setup yet. Now the server was acting as a router for the 2 internal networks before i put in the 2 new NIC's but now gig0 and gig1 can't seem to communicate to their respective networks. Does anyone know why this would be ?

From the server i cannot ping the gateway for either network nor any hosts and vice-versa. The weird thing is that ifconfig is showing tx and rx bytes on the gig interfaces... the routing table seems to reflect the correct configuration. I can write it up if need be but i can't copy n paste because i can only console it

ANy help would be appreciated - did i miss something that you need to do when renaming interfaces?
 
Old 07-04-2009, 12:19 AM   #2
f14f21
Member
 
Registered: Sep 2008
Distribution: rhel
Posts: 42

Rep: Reputation: 6
if you absolutely sure about ur route table check for firewall .
if firewall is configured correctly and your other side that you want to ping is pingable ,so i'm sure something wrong is with ur routing table.
 
Old 07-04-2009, 09:52 PM   #3
rjickity
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
it sounds firewall related. But iptables -L shows nothing....

my route table looks like this:

net gateway netmask
10.1.1.0 0.0.0.0 255.255.255.0 gig0
10.1.2.0 0.0.0.0 255.255.255.0 gig1
0.0.0.0 10.1.2.254 0.0.0.0 gig1

Now when i ping the networks i get destination unreachable from their respective (local) NIC's on the server. Bear in mind that this was communicating perfectly fine before i changed the interface names from eth0/eth1 - gig0/gig1. Are the interfaces referenced in some other config that i don't know about?
 
Old 07-04-2009, 10:44 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
/etc/network/interfaces?
 
Old 07-05-2009, 02:32 AM   #5
rjickity
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Yep that's configured. My IP's are statically assigned via the /etc/network/interfaces config file

edit: if i unplug the cables ifconfig still shows the interfaces as UP....
also apparently if I "ifdown gig1" it doesn't exist... gah ! >_<

Any other ideas before i go and re-install ?

Last edited by rjickity; 07-05-2009 at 02:41 AM.
 
Old 07-05-2009, 06:22 AM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
What happens if you do /etc/init.d/networking stop | start | restart?
 
Old 07-05-2009, 06:24 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Oh yeah, and if you start adding new pci cards, udev may change the id of a card that was already installed.
 
Old 07-05-2009, 07:55 AM   #8
rjickity
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
yeah udev did, which is why i went down the route of setting names for them

start/stop and restarting the network is successful but doesn't change anything - still unable to communicate.
 
Old 07-05-2009, 09:55 AM   #9
rjickity
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
i just ended up reinstalling as i needed to get it functional again - all working now (same config just minus the interface name change).

if anyone has any other ideas post them up here for future ppl who might have the same problem.

Cheers
 
  


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
After installing virtual box , eth0 and ath0 interfaces were lost DeepSeaNautilus Linux - Networking 10 04-18-2009 05:42 PM
the network scripts to create network interfaces for 802.1q VLANs 10 and 11, Lahore Linux - Networking 0 03-18-2009 05:45 AM
For laptop - different networks in /etc/network/interfaces, or use network-manager? dmravaet Linux - Wireless Networking 4 03-17-2007 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:55 AM.

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