You are not logged in.

#1 2006-05-15 07:48:06

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

network problem (and my ifconfig)

I cant ping out, see my ifconfig message:

eth0      Link encap:Ethernet  HWaddr 00:04:61:AC:43:56  
          inet addr:192.168.132.50  Bcast:192.168.132.1  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:894 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:86273 (84.2 Kb)  TX bytes:0 (0.0 b)
          Interrupt:18 Base address:0x4000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:336 (336.0 b)  TX bytes:336 (336.0 b)

my host info:
arch64 on amd64 platfrom
ip: 192.168.132.50
gateway: 192.168.132.254
broadcast: 192.168.132.1 (this setting is valid in arch32)

and tracepath cant go out.

Offline

#2 2006-05-15 08:13:52

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: network problem (and my ifconfig)

What's the output for "route'?


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2006-05-15 09:25:01

Titus
Member
From: Izmir
Registered: 2006-05-11
Posts: 120
Website

Re: network problem (and my ifconfig)

i tihnk you have to tune your etho0="dhcp" and above lines must be like this
#etho=(eth0 ........................)
#gateway(default............)
#ROUTES(!gateway)

i have maden the same mistake while installing the arch


In a world without walls,who need windows?

Offline

#4 2006-05-15 10:28:34

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

FUBAR wrote:

What's the output for "route'?

my route cmd take a long time to display the correct gate way.
genmask for gateway(192.168.132.254) is 0.0.0.0, i don't know why.

i tried tracepath, but the result is i cant go out off my computer.
My hardware is a little new. I don't know if this does matter.

to Titus, no im not a dhcp user.
im under a vlan (a virtual lan network, i have the static ip address)

Offline

#5 2006-05-15 12:54:01

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: network problem (and my ifconfig)

Hi,

what the default route?  Can you ping this? Why are you using .1 for broadcast as a matter of interest?

Posting the output of route would be useful.

Silly question, but can you ping 127.0.0.1?

Jon

Offline

#6 2006-05-15 12:54:48

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: network problem (and my ifconfig)

Additionally, can you ping yourself?

Offline

#7 2006-05-15 13:06:34

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

I can Ping myself, by 192.168.132.50 or 127.0.0.1.

Look at this:

          RX packets:894 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

It seems I can receive packets. And I checked my arp record, I have the mac address of my swither(gateway).

In my arch32 system , i can use .1 for my broadcast. And I tried 255, but it does not help.

Offline

#8 2006-05-15 13:11:32

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

BTW, my route:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
default         192.168.132.254  0.0.0.0         UG    0      0        0 eth0

the second line takes 5 minitus to be displayed.

the link below will lead to my good solution on my 32bit platform.
http://bbs.archlinux.org/viewtopic.php? … highlight=

Offline

#9 2006-05-15 13:31:18

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: network problem (and my ifconfig)

Hi,

try running

netstat -rn

and see if it any quicker than

netstat -r

Jon

Offline

#10 2006-05-15 13:55:05

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

netstat -rn
the same as route, but take no time.

netstat -r
the second line takes 1 minitus or more.

Offline

#11 2006-05-15 14:03:07

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: network problem (and my ifconfig)

you don't happen to have a name service running do you (NIS/DNS etc)?  If you do disable the lookup via /etc/nsswitch.conf (restart nscd after rejigging this file), and try route &| netstat again.  Sounds alot like a lookup failure causing the time problem, which if you cannot get out of you NIC, would make sense.

One thing to knock down anyway

Jon

Offline

#12 2006-05-15 14:18:07

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

No, I don't have any name services running.

The whole system is newly installed.

Offline

#13 2006-05-15 14:58:37

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: network problem (and my ifconfig)

thats a bit odd as the only difference between netstat -rn and netstat -r is that -rn does not perform name lookups.

Offline

#14 2006-05-15 15:04:25

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: network problem (and my ifconfig)

OK lets go back to basics, what the output of

mii-tool eth0

or

ethtool eth0

Mainly interested in link status here. (I'm assuming you hard coded the ip)

Are there any other servers on you network that can ping you?  Would be good to run a ping from another server whilst running tcpdump:

tcpdump -nvi eth0

to see if you see the ping.  Are you connected to a switch or a hub?

Ensure you /etc/nsswitch.conf file only refers to files for the moment (you'll want DNS later I assume)

Jon

Offline

#15 2006-05-15 15:05:18

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

name lookup?
I don't know why use ip will also do a name lookup.
So strange.

Offline

#16 2006-05-15 15:09:44

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

OK, I'm to follow you help now. Thank you.

Offline

#17 2006-05-15 15:24:15

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

I ask my roomate to ping me , but I cant catch anything by
tcpd -nvi eth0

And,  here is the information when I run mii-tool eth0:

SIOCGMIIPHY on 'eth0' failed: Operation not supported


I'm sure I 've connected to my switcher, I can now post this reply in windows

Offline

#18 2006-05-15 15:29:31

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: network problem (and my ifconfig)

are you running this as root?

Use ethtool instead

Offline

#19 2006-05-15 15:49:13

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

Yes, i logged as a root.
but I can't run ethtool, command not found.

My distro is arch64.

Offline

#20 2006-05-16 07:16:17

paul_au
Member
Registered: 2006-04-13
Posts: 38

Re: network problem (and my ifconfig)

it looks at if your eth0 doesn't have a gateway assigned to it as displyed in your ifconfig ( i may be wrong)

Easiest way to check, if you can ping your router but not any other address on your network then your gateway is not set properly.

Offline

#21 2006-05-20 11:18:15

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: network problem (and my ifconfig)

I changed a new net card then it's ok.
Maybe my nforce net card is too new.

Offline

Board footer

Powered by FluxBB