LinuxQuestions.org
Review your favorite Linux distribution.
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 01-04-2013, 11:16 AM   #1
esolve
LQ Newbie
 
Registered: Oct 2012
Posts: 18

Rep: Reputation: Disabled
network problem with eth0 on linux


I have a laptop, the wifi is OK, but for wired network, if I'm using windows, it is OK. But with linux, yesterday, it is OK, but today I can't access the network through eth0(in windows, it is OK), what are potential problems?

BTW, yesterday I modified MTU from 1406 to 500, but then modified it back to 1406.

eth0 Link encap:Ethernet HWaddr 5C:26:0A:2B:B8:06
inet addr:138.96.201.72 Bcast:138.96.207.255 Mask:255.255.240.0
inet6 addr: fe80::5e26:aff:fe2b:b806/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1406 Metric:1
RX packets:21221 errors:0 dropped:0 overruns:0 frame:0
TX packets:1355 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3710568 (3.5 MiB) TX bytes:130299 (127.2 KiB)
Interrupt:20 Memory:f5400000-f5420000

additional information: 1 it seems it is from dhcp coz I didn't do any configuration for the ip address, and it is a public IP. but the ip is fixed

2 I think the /etc/resolv.conf is fine, coz previously the network is fine
 
Old 01-05-2013, 09:01 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
You have not provided a lot of information.

What distro are you using?

Are you using software like Network Manager or WICD to configure and control your adapters?

Where is this DHCP server? Is it in a router at your location?

Please describe the network connection. If it is a router/modem provide the make and model.

Is this address
Quote:
138.96.201.72
in the same network as your other adapters when they are working?

When you said
Quote:
but today I can't access the network through eth0
how did you do the testing? A web browser only? Did you try pinging your modem/router? Points outside like yahoo?
 
Old 01-05-2013, 09:23 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Why is your MTU 1406? The default is 1500.
 
Old 01-05-2013, 02:52 PM   #4
esolve
LQ Newbie
 
Registered: Oct 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
You have not provided a lot of information.

What distro are you using?
-------------------------------------------
fedora 16

Quote:
Are you using software like Network Manager or WICD to configure and control your adapters?
I don't know, how to check this?

Quote:
Where is this DHCP server? Is it in a router at your location?
how to check this?

Quote:
Please describe the network connection. If it is a router/modem provide the make and model.
it is in a institute

Quote:
Is this address in the same network as your other adapters when they are working?
no
but when I'm using windows, the network is OK

Quote:
When you said how did you do the testing? A web browser only? Did you try pinging your modem/router? Points outside like yahoo?
I used ping, web browser
 
Old 01-06-2013, 09:11 AM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Are you using software like Network Manager or WICD to configure and control your adapters?
I did some googling, it appears Fedora 16 comes with Network Manager. You should have an icon somewhere on your desktop for NM. You can configure your interfaces, activate them and deactivate them with NM. This is the first place to look when you have problems communicating with the outside world.

You are in an institution. The IP address I see may, or may not be correct to get to the outside world. You will need to find out from the network admins what IP addresses you can use. You may be connecting to an internal network, with out outside access. I have no way of knowing what addresses will work.

One thing you can do, is run the command netstat -r in a terminal. I would like to see if you have a gateway address set. This is what the output looks like.

Quote:
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default cisco 0.0.0.0 UG 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
localnet * 255.255.255.0 U 0 0 0 eth0
Under the heading Gateway, you see an entry 'cisco'. This is my router. It is also my gateway. gateways are the path to the outside world. You probably will have a doted decimal IP address here, or nothing. I have a name, since I updated the /etc/hosts file with a name for the router. ( not necessary for it to work).

In order to use ping to the outside world, you need to know various IP addresses. It helps a lot if you also know the IP addresses of key spots in your network. You should find out the IP's of the Gateway, and one or two other systems on the internal network.

Resolv.conf gets overwritten. You should check it, to see if the IP's in there are valid for your location. Once again, I can not tell you what should be there. Network admins, or, since windoze works, and your wireless works, connect there, and look at what you get. Your IP, whats in resolv.conf, gateway.... Then look at the problem on eth0 when failing.
 
Old 01-10-2013, 06:59 AM   #6
esolve
LQ Newbie
 
Registered: Oct 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
I notice that, after rebooting, eth0 doesn't work
but if I deactivate the eth0 and then activate it
it works

what is wrong with this?
 
Old 01-10-2013, 08:19 AM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Most likely it has to do with the configuration setup you have. I asked earlier if you were using Network Manager, or WICD. As far as I can tell, ( I don't run Fedora ) it uses Network Manager by default.

Look to see if you have an icon somewhere, that looks like a terminal, or modem. If you see it, hover the mouse pointer over it. If it displays some info, click it. Look in there for what configuration you have. Some are set up to activate wireless first. If you deactivate wireless, then some will try the wired connection. See what you can find.
 
  


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
network problem eth0 and eth1 paruhang Linux - Networking 9 06-04-2012 09:22 PM
[SOLVED] Network eth0 activated upon boot in ifcfg-eth0; but no network connection after login TomRaaijmakers Linux - Networking 1 06-17-2010 08:29 AM
Network problem with DNS, eth0 and wlan0 st00 Debian 1 07-25-2007 08:30 PM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
eth0 network problem sockknitter Debian 7 09-14-2004 11:19 AM

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

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