LinuxQuestions.org
Review your favorite Linux distribution.
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 04-11-2012, 10:37 PM   #1
cilbuper
Member
 
Registered: Mar 2008
Posts: 141

Rep: Reputation: 0
Question Strange problem when I add eht1 - network stops working


I'm running Ubuntu 10.04 and eht0 was setup in installation as dhcp, which is good because I'm running this as my WAN connection for a router.

When I add eth1 to the interfaces file I set it to static with IP address 192.168.1.2 (Linksys router/gateway is 192.168.1.1) here is what I enter:
auto eth1
iface eth1 inet static
address 192.168.1.2
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

I then restart the network (/etc/init.d/networking restart) and from then on I can't get an internet connection. I go back into the interfaces file and comment out the entire entry of eth1 with "#"'s, save, restart network but it still hangs on any network command. I then set the interfaces file to it's original setup, restart services and nothing. I have to reboot the computer to get it to work. This doesn't make sense to me.

I don't know if this matters but I'm using a PCI-Express dual port NIC but I believe the same thing happens with the two on-board NIC's as well.

Any ideas about why this is happening? BTW, there aren't any other computers with the ip address 192.168.1.2 either.
 
Old 04-11-2012, 10:40 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at the udev rules file /etc/udev/rules.d/70-persistent-net.rules if that changes by any chance. Ubuntu (and other distros too for that matter but not all) can behave pretty strange with udev when you manually start editing files without taking into account the udev rule set.

Kind regards,

Eric
 
Old 04-12-2012, 02:30 AM   #3
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
I remember seeing reports that '/etc/init.d/networking restart' might not work as expected. In my particular case it failed to bring back up an interface. Try using ifup ifdown, or reboot the machine if you can. Your settings for eth1 look fine.
 
  


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
Strange problem with network when vmware process is working froff Linux - Networking 4 11-07-2009 02:33 PM
Network randomly stops working Doug52392 Linux - Networking 1 11-06-2007 03:29 AM
Network stops working when X is activated dinojerm Linux - Wireless Networking 0 08-15-2005 03:41 PM
Strange problem! rlocate Stops to register with kernel AJones Linux - Software 0 08-03-2005 10:37 AM
Network stops working after reboot balajipriya Linux - Networking 2 06-03-2004 10:49 PM

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

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