LinuxQuestions.org
Help answer threads with 0 replies.
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-20-2003, 07:50 PM   #1
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
NIC Issues, please, need some idea's...


I've built a LFS system, and I built NIC support for eepro100 (Intel Pro/100) and 8139too (Realtek 8139) into the kernel and added these lines to /etc/modules.conf

alias eth0 eepro100
alias eth1 8139too


then i issue:

ifconfig eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255

then i plug the cable into that NIC and try and ping my machine (192.168.0.200) but it doesn't get any replies for some wierd reason!! The lights on the back of the card flash, and so do the lights on the switch...any idea's?
 
Old 01-21-2003, 02:55 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Adding the alias in the modules.conf is only necessary if you have built the network drivers as modules. If you built them into the kernel then it won't be used.
What does your dmesg output tell you? Which card is detected as eth0. Could be that you are trying them the wrong way around.

I just read it again but using the wrong nic wouldn't make the lights on it flash. Unless you where pinging it from the other side. But it's probably good to read the output of dmesg anyway just to see what is exactly going on.

Last edited by Mik; 01-21-2003 at 03:01 AM.
 
Old 01-21-2003, 03:33 AM   #3
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
How long does dmesg usually take to run??

root$ dmesg

and now its just sitting with a blank line, which i can type stuff on and hit enter and it'll goto a new blank line...and ctrl+c won't stop it from running...ACK!


EDIT: Ignore that...must've just been something terribly wrong, which a reboot fixed

Last edited by Grim Reaper; 01-21-2003 at 03:37 AM.
 
Old 01-21-2003, 03:36 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
That's definetly wrong. It's just supposed to print the kernel ring buffer and then exit. You might want to browse through /var/log and see if you can find anything there. You might also want to scan through your kernel config and check if you missed anything vital.
 
Old 01-21-2003, 03:39 AM   #5
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
heh, mik, sorry, just edited my post

Quote:
EDIT: Ignore that...must've just been something terribly wrong, which a reboot fixed

Now, for the dmesg output..

Code:
Linux version 2.4.20 (root@netserver) (gcc version 3.2) #3 SMP Mon Jan 20 12:25:27 EST 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000008000000 (usable)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
user-defined physical RAM map:
 user: 0000000000000000 - 00000000000a0000 (usable)
 user: 00000000000f0000 - 0000000000100000 (reserved)
 user: 0000000000100000 - 0000000008000000 (usable)
128MB LOWMEM available.
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda6 mem=131072K
No local APIC present or hardware disabled
Initializing CPU#0
Detected 300.684 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 599.65 BogoMIPS
Memory: 126432k/131072k available (1684k kernel code, 4256k reserved, 420k data, 288k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: L1 I Cache: 32K (32 bytes/line), D cache 32K (32 bytes/line)
CPU:     After generic, caps: 008001bf 808009bf 00000000 00000000
CPU:             Common caps: 008001bf 808009bf 00000000 00000000
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU: L1 I Cache: 32K (32 bytes/line), D cache 32K (32 bytes/line)
CPU:     After generic, caps: 008001bf 808009bf 00000000 00000000
CPU:             Common caps: 008001bf 808009bf 00000000 00000000
CPU0: AMD-K6(tm) 3D processor stepping 00
per-CPU timeslice cutoff: 182.87 usecs.
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfb190, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router PIIX [8086/7110] at 00:07.0
Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
isapnp: Card 'ESS ES1868 Plug and Play AudioDrive'
isapnp: 1 Plug & Play card detected total
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver v1.1.22 [Flags: R/O]
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
hda: FUJITSU MPD3043AT, ATA DISK drive
hdc: MATSHITA CR-583, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c03aae44, I/O limit 4095Mb (mask 0xffffffff)
hda: 8448300 sectors (4326 MB) w/512KiB Cache, CHS=525/255/63, UDMA(33)
hdc: ATAPI 8X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
 hda: hda1 hda2 < hda5 hda6 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
PCI: Found IRQ 3 for device 00:0a.0
eth0: Intel Corp. 82557/8/9 [Ethernet Pro 100], 00:02:B3:8B:7D:5A, IRQ 3.
  Board assembly 751767-004, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
    Secondary interface chip i82555.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0x3258698e).
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 12 for device 00:09.0
eth1: RealTek RTL8139 Fast Ethernet at 0xc8802000, 00:20:18:a1:29:0a, IRQ 12
eth1:  Identified 8139 chip type 'RTL-8139B'
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 96M
agpgart: no supported devices found.
[drm:drm_init] *ERROR* Cannot initialize the agpgart module.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (1024 buckets, 8192 max) - 292 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 288k freed
 
Old 01-21-2003, 03:52 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well the dmesg output looks fine. The IntelPro card is being detected as eth0. I guess you are gonna have to troubleshoot to find out where it's getting blocked or goes wrong.
Do you have a firewall on either side blocking icmp packets?
Have you tried switching cables. Or ports on your switch. What happens when you do the same thing but then with eth1 after switching the cables.
What does the output of the following commands look like:
ifconfig eth0
arp
route
 
Old 01-21-2003, 04:43 AM   #7
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
ok, i tried using a cross-over cable straight into my machine, no success...

the outputs of those cmds:

ifconfig eth0:
Code:
eth0      Link encap:Ethernet  HWaddr 00:02:B3:8B:7D:5A  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2020 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:199349 (194.6 Kb)  TX bytes:756 (756.0 b)
          Interrupt:3

route:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
arp:
absolutely nothing. this cmd didn't show anything.


Another thing, do you have to install IPTables separetely? maybe that has something to do with it? IPTables isn't installed...i thought i did install it during the installation of LFS...
nmap, traceroute and a few others aren't installed either...looks like ill have to install them...

Could any of these have somethign to do with it? (well, not the nmap and traceroute, just the IPTables.)
 
Old 01-21-2003, 05:04 AM   #8
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well if the arp tables are empty then you shouldn't see much with that command. And iptables isn't part of the default lfs install, it shouldn't be necessary to get basic networking running but you will have to add it seperatly if you want to use it. You should probably add the package if you've enable kernel support for iptables.

According to the output of ifconfig the network card is both sending and receiving packets. It doesn't have any errors or dropped frames. So these packets must be going somewhere. Maybe you could log the packets with tcpdump or ipchains to see what's happening.
Have you tried pinging from the other side?
 
Old 01-21-2003, 05:29 AM   #9
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
yep. tried pinging from the other side, no good.

I would log it with tcpdump, but thats not installed, lol.

Do you know what package that comes in, or is it on its own at some site?

/me goes off looking for it..
 
Old 01-21-2003, 05:52 AM   #10
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
Found it...the second that i start TCPDUMP it gives me this:

Code:
22:43:37.177601 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:43:37.927969 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:43:38.679061 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:43:42.435004 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:43:43.185596 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:43:43.936681 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
This is with the machine plugged into the switch..the only other machine that is on and plugged into the switch is mine, and the D-Link DSL-300 Ethernet ADSL modem is plugged into the uplink port to provide my machine the net (till i get this linux box up )...

my IP isn't in any of those packets...strange...guess those packets are coming from the net for some reason?

well, that shows one thing...its recieving stuff...LOL..

Now, when i go ping 192.168.0.200 i get:
Code:
22:47:07.937435 arp who-has 192.168.0.200 tell 192.168.0.1
22:47:08.233354 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:47:08.947515 arp who-has 192.168.0.200 tell 192.168.0.1
22:47:08.984429 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:47:09.947422 arp who-has 192.168.0.200 tell 192.168.0.1
22:47:10.947413 arp who-has 192.168.0.200 tell 192.168.0.1
22:47:11.947938 arp who-has 192.168.0.200 tell 192.168.0.1
22:47:12.740393 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:47:12.947424 arp who-has 192.168.0.200 tell 192.168.0.1
22:47:13.490952 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
22:47:13.947420 arp who-has 192.168.0.200 tell 192.168.0.1
22:47:14.242027 169.254.0.89.netbios-ns > 169.254.255.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
as you can see, its still getting those netbios packets, and sending out its ping packet (i thought that when something wants to establish a connect, a SYN packet was sent out?) but it isn't getting any replies...
 
Old 01-21-2003, 06:13 AM   #11
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well a ping request sends a ICMP packet so it's not exactly the same as setting up a normal TCP/IP connection. Anyways it's first doing an arp request to find out what the hw_addr is. But it's never getting a reply to that. You can try manually adding it to the arp table with something like:

arp -i eth0 -s 192.168.1.200 xx:xx:xx:xx:xx:xx
With the last part being the mac-addres of the 192.168.1.200 machine.
I also noticed you got Arp Tables support enabled in the kernel. I don't have this on in my kernel. I didn't really look into it in detail but couldn't find anything about it in the quick search I did. It might need some more things from the iptables package since it's part of the netfilter code. I would try disabling that.
 
Old 01-21-2003, 06:31 AM   #12
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
i just went into the networking section in the kernel menu and selected everything as this machine is going to be full of networking, once i get over this stage ...ill try disabling that option...

Edit: Recompiling now...I unselected the ARP tables support. That the right one?

Last edited by Grim Reaper; 01-21-2003 at 06:33 AM.
 
Old 01-21-2003, 07:59 AM   #13
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
If I read the network topology right you have the ADSL, your machine (supposedly 192.168.1.200) and eth0 on the linux box all plugged into the same switch? The uplink port on most switches isn't anything more special than a rewired port so a regular cable plugged in acts like a crossover cable.

If that's the case and your machine reaches the internet then whatever your machine is, I'm guessing a windows box, it probalby doesn't have an IP of 192.168.1.200 but rather an IP address that it got from the ADSL so it could reach the internet. I'd even go so far as to say maybe this address from the ADSL is (or was when you posted) 169.254.0.89 and the packets you saw in TCPDUMP were from your windows box checking to see if there were any computers to add to network neighborhood.

The network topology should be more linear like this:

{The_Internet}---ADSL---"your_machine"---the_switch---linux_box

or maybe even this:

{The_Internet}---ADSL---linux_box---the_switch---"your_machine"


With the linux box routing to the internet.

If you did something like your machine has 2 NICs and you plugged both into the switch that's not really going to work either.

Hope this helps, or at least clears some of it up...
 
Old 01-21-2003, 08:27 AM   #14
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
Darin...

The plan is, once i get this box up, its going to be my firewall, so it'll go:


The Net -> ADSL Modem -> eth1 -> eth0 -> switch....

and my machine is plugged into the switch...

my IP range is 192.168.0.x, without the 1...

I've tried pinging the IP you suggested (169.254.0.89) but it says Network is unreachable...

That is why the ADSL modem is plugged into the uplink, because I haven't gotten this machien running yet...
 
Old 01-21-2003, 08:33 AM   #15
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
HAHAHAHAH! ROFLMAO!!!! ROFLMAO!!! HAHAHAAHAHAHAH
ROFLMAO




OMFG!!! /me beats self to a pulp with a feather!!!!!!!!! OMFG!!!!!!!
/me SLAPS SELF EXTEMELY! HARD!!!!
OMFG!!!! YOU STUPID FUCK!!!!!!

FUCKIN IDIOT!!!! /SLAP SLAP SLAP!!!!!!!


/rant @ self


Guess what...The other weekend I went to big day in (incase your not in AU, its the biggest LAN we've had in the southern hemisphere..1000 person LAN...anyway, we had a DHCP server running there, and had to set our IPs to Auto....we'll guess what from my above comments..........


yep, thats right, i forgot to set my IP back to 192.168.0.200 and it was letting windows set itself, so thats why the linux box couldn't talk to it, because it was on an entirely different subnet! hahah! ROFL!!! OMFG!
 
  


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
My idea's for linux hardware kromag Linux - General 27 07-21-2005 02:16 PM
NIC install issues Virus860 Linux - Hardware 24 03-18-2005 05:14 PM
mandrake 9.1 - a major cock up - idea's appreciated. bigjohn Mandriva 3 03-17-2004 02:06 PM
Alsa drivers, no back speakers...idea's? Grim Reaper Linux - Hardware 3 10-05-2002 03:13 AM
Deul NIC Issues rob_roman23 Linux - Networking 9 05-26-2002 10:49 AM

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

All times are GMT -5. The time now is 02:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration