LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Realtek 8139 eth card help (https://www.linuxquestions.org/questions/slackware-14/realtek-8139-eth-card-help-90802/)

plm 09-09-2003 03:44 AM

Realtek 8139 eth card help
 
i have a Realtek 8139 ethernet card. i can't get my network and internet working with it?! there is a module 8139too, which i load but nothing works! i uncommented the device in rc.modules, the module for it was loaded. as i wrote this is 8139too and also a module called mii is loaded and is used by 8139. can anyone help me please?! i have no idea what do i have to do to have internet and lan network on my slack 9.0 :cry:

Cerbere 09-09-2003 04:02 AM

Welcome to LQ.org! Since this is your first post, I'm going to be as polite as I can. Before you post a question, you should try using the search function here. There are two reasons for this:

1) You may be able to find the answer right away instead of waiting for someone to give you an answer. This benefits you directly.

2) The board doesn't get clogged with the same questions & answers being repeated over & over. This benefits all of us.

That being said, I don't think I can give you a solution to your problem, since I generally try to compile a monolithic kernel, and therefore I don't use modules. However if you search for keywords such as, 'realtek' '8139' and 'slack', I'm sure you'll find the answer, as this is probably one of the most commonly used nics.

Again, Welcome to the forum, plm. I hope all your linux problems can be solved simply by searching previous posts (it really is much easier that way), but if they don't then I'm sure everyone here will do all we can to give you a proper answer.

Enjoy!
--- Cerbere

[edit] And whatever you do, don't even think about ASKING how to get your mouse wheel working :-) [/edit]

plm 09-09-2003 04:41 AM

thanks for the welcoming:) actially i did search after posting the thread, and found a few things, but still i am not sure taht they will help. i will try them and if they don't work i'll return to the forum for help then

laxi 09-09-2003 08:11 AM

you can use the command "netconfig" to configure your ip and sth else in slack

plm 09-09-2003 09:35 AM

yes I know i've done that. nothing works?! i have no idea why. the module is loaded. ifconfig finds the device, but i don't have net?! i looked rc.inet1 and everything was okay, but no ethernet and internet... i saw in some previous posts regarding this same matter, and i tried doing some things but nothing is happening. i added
alias eth0 8139too
ifconfig

but nothing happened, i still have no net

linuxJaver 09-09-2003 09:48 AM

Wut is ur connection (cable/dsl) ? post in here ur /etc/rc.d/rc.inet1, make sure those file in /etc/rc.d have the permission rwxr_xr_x, if u want them to be run by init during the boot phase, if rc.inet1 is configured correct, it is actually only the matter of calling the /sbin/dhcpcd .. (look into rc.inet1).

U need to manually call "./etc/rc.d/rc.inet1" several time after booting if the connection is not established right away after booting (to check whether it is connected "route -n", if u see ur gateway is filled with any IP than it is connected), that is by me the case, I suppose it is either problem of the ISP or the signal in the cable ..

I've 2 dlink 538TX, they worked after installation (slack 9,9.1. But I configured it during the setup ..

plm 09-09-2003 10:06 AM

we have a network with a machine under linux that is the gateway and we are sharing a cable connection. i'll check the permission and i'll post rc.inet1 after a few minutes. i know abour the dhcpcd but it doesn't work. it cannot connect to the dhcp server and get the information from there. i'll see what will happen and post the result.

windsok 09-09-2003 10:22 AM

Im a linux newbie too so this might be wrong, but i have the same nic and this is how i sovled my problems:

If it cant connect to the dhcp server then maybe its not working becouse it has not been assigned a ip address.

do ifconfig -a and see if eth0 is assigned an ip address. if it isnt do:

ifconfig eth0 192.168.0.3

or whatever ip address you want to assign to it.

can you ping other machines on your network?

Noryungi 09-09-2003 10:29 AM

Have you correctly used "netconfig" (as root!) to configure your network? Try using "ifconfig", like other people suggested. Then, if something looks wrong with the config of your network card, run "netconfig" again.

Please be aware that we need more information about your network before we can help you!

Hope this helps nonetheless... :D

linuxJaver 09-09-2003 10:47 AM

U talk about a network, on which machine it doens't work (client or server) ?
On the server the gateway should be configured automatically if u get the connection to ISP (through the /sbin/dhcpc .. command). The gateway of ur server should of that of ur ISP.

The gateway of ur client/LAN should be the LAN-static-IP of ur server (192.168..) logically, in case u used 2 nics, it is the IP address of the nic that connect to LAN. See "ifconfig -a" notice the MAC-address to find out which MAC is which eth0/1 ..

That is all it is all about in rc.inet1 to tune for, for sharing the internet connection of the server u have to enable it in the kernel of the server, see rc.d/rc.inet2 that is something with "echo 1 >>/proc/... " am not into slack to see it ..

plm 09-09-2003 11:24 AM

windsok: i will try to ping the others on our network to see if it works. eth0 has an ip address assigned. i am not sure, but however i don't think i need dhcp, isn't dhcp only when i am connecting to my isp? in my case i am a client connecting to the gateway 192.169.0.1.

Noryungi: yes i configured it properly i think. as root and everything else, i am not sure only for the dhcp and the nameserver. i don't think i need them both.

linuxJaver: on my machine(client) i don't have net. as i said teh gateway is 192.168.0.1 and i am 192.168.0.201.

here is a part of what i did and what i received:
# /./etc/rc.d/rc.inet1
SIOCADDRT: File exists
Configuring eth0:
ifconfig eth0 192.168.0.201 broadcast 192.168.0.255 netmask 255.255.255.0

here is my rc.inet1:
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script starts up the base networking system.
#
# Version:
# @(#)/etc/rc.d/rc.inet1 8.1 Tue May 28 15:27:39 PDT 2002 (pjv)

# Edit these values to set up your first Ethernet card (eth0):
IPADDR="192.168.0.201" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth0 using DHCP:
#USE_DHCP=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME="CCHOSTNUM-A"

# Edit these values to set up your second Ethernet card (eth1),
# if you have one. Otherwise leave it configured to 127.0.0.1,
# or comment it out, and it will be ignored at boot.
IPADDR2="127.0.0.1" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth1 using DHCP:
#USE_DHCP2=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME2="CCHOSTNUM-A"

# Edit the next line to point to your gateway:
GATEWAY="192.168.0.1" # REPLACE with YOUR gateway!

# You shouldn't need to edit anything below here.

# Set up the loopback interface:
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

# Set up the eth0 interface:
if [ "$USE_DHCP" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth0 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME" = "" ]; then
DHCP_HOSTNAME="-h $DHCP_HOSTNAME"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME} -d eth0
elif [ ! "$IPADDR" = "127.0.0.1" -a ! "$IPADDR" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST=`/bin/ipmask $NETMASK $IPADDR | cut -f 1 -d ' '`
NETWORK=`/bin/ipmask $NETMASK $IPADDR | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth0:"
echo "ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}"
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth0 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should run netconfig"
echo " and configure your machine for loopback. (Unless you don't mind seeing this"
echo " error...)"
fi
fi # set up eth0

# Set up the eth1 interface:
if [ "$USE_DHCP2" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth1 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME2" = "" ]; then
DHCP_HOSTNAME2="-h $DHCP_HOSTNAME2"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME2} -d eth1
elif [ ! "$IPADDR2" = "127.0.0.1" -a ! "$IPADDR2" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 1 -d ' '`
NETWORK2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth1:"
echo "ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}"
/sbin/ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth1 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should fix"
echo " /etc/rc.d/rc.inet1 to stop trying to configure eth1. (Unless you don't mind"
echo " seeing this error...)"
fi
fi # set up eth1

# Set up the gateway:
if [ ! "$GATEWAY" = "127.0.0.1" -a ! "$GATEWAY" = "192.168.0.1" ]; then
/sbin/route add default gw ${GATEWAY} metric 1
fi

# End of /etc/rc.d/rc.inet1

plm 09-09-2003 01:16 PM

can anyone please help me? :(

plm 09-09-2003 01:32 PM

okay, so if no one can help with the things i've written, i was thinking, would it work if i compile all my modules in the kernel? i recompiled the 2.4.22 kernel on my machine, but when it loads there is somekind of a problem. linux loads, but it's says that it can't find the modules for anything?! /sbin/modprobe ... says that the wanted module cannot be found...;(

pPcG5 09-09-2003 03:06 PM

Yeah but you need dhcp from your gateway if you want to access the DNS dynamically
Otherwise you have to set them in /etc/resolv.conf
with static LAN ip

Looking_Lost 09-09-2003 05:51 PM

Start again,

Your card looks as though it's working.

How are you meant to get your IP address, is it through dhcp or have you been assigned a static one to enter yourself?

linuxJaver 09-09-2003 06:37 PM

So,

U configured ur NIC as static 192.168.0.201 gateway 192.168.0.1.

That mean ur host is a client of a LAN. Thing that u have to clear are:
1. Whether ur LAN-server (ip 192.168.0.1) had enabled ICS (internet connection sharing, that with echo "1" >>/proc/... within rc.inet2)

2. If that LAN-server configured firewall/iptable than 192.168.0.201 must also be allowed, by standard without firewall/iptable ur configuration looked already ok.

Ask also the IP of the DNS server of the LAN-server as well as well as of ISP and append them into /etc/resolve.conf. I don't think u need DNS for getting hooked to internet.

Tinkster 09-09-2003 07:24 PM

plm: what kind of machine is the gateway,
has it got two network cards, one for the
router, one for your lan? Is the internet
actually functional on that box?

What's the output of
dmesg
?

Any error messages relating to networking
(either hardware drivers or from ifconfig)?

If you run ifconfig as root after boot, what
output do you get?

Can you ping the gateway?

Cheers,
Tink

plm 09-10-2003 05:46 AM

pPcG5: well i am not sure why, but my ISP actually doesn't provide dns?!:) but nevermind the dns. I have a static IP assigned on our LAN.

Looking_Lost: static ip it is..:) well I connect through windows using static ip 192.168.0.201. without dns

linuxJaver: 1. well i think the LAN-server is under SuSe 8.2 ot something like Mitel Networks SME Server. I am not sure what the last one is... Internet connection sharing has to be enabled. i use this server to connect from windows and don't have any difficulties, but i'm not sure about that with rc.inet2.

2. Well i think 192.168.0.201 is allowed!? if it wasn't i think i couldn't be able to hook to the internet using windows. As for the dns, as i wrote i don't think it is enabled by my ISP or LAN-server.

Tinkster: well i am not sure about what kind is the gateway. well i think it has to network cards. one is connected to a switch, and i am connected to that switch. and the other to another switch/router, not sure. But the cable modem is connected to the gateway.

i'll post the output of dmesg right away.

Well i haven't noticed any errors nor from drivers neither from ifconfig (i'll post ifconfig's outpur too).

Last night i tried pinging the gateway, but i am not familiar with the linux pinging, but i think i can ping it. i'll post the output:):)

plm 09-10-2003 06:50 AM

root@design:~# dmesg
Linux version 2.4.20 (root@midas) (gcc version 3.2.2) #2 Mon Mar 17 22:02:15 PST 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000013ff0000 (usable)
BIOS-e820: 0000000013ff0000 - 0000000013ff3000 (ACPI NVS)
BIOS-e820: 0000000013ff3000 - 0000000014000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
319MB LOWMEM available.
On node 0 totalpages: 81904
zone(0): 4096 pages.
zone(1): 77808 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=Slack.new ro root=342
Initializing CPU#0
Detected 704.734 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1405.74 BogoMIPS
Memory: 321008k/327616k available (1733k kernel code, 6220k reserved, 568k data, 112k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: After generic, caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: Common caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: AMD Duron(tm) processor stepping 01
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb480, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Disabling VIA memory write queue (PCI ID 0305, rev 03): [55] 89 & 1f -> 09
PCI: Using IRQ router VIA [1106/0686] at 00:07.0
Applying VIA southbridge workaround.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:DMA, hdd:pio
hda: IC35L040AVER07-0, ATA DISK drive
hdb: ST36531A, ATA DISK drive
hdc: DVD-ROM DDU1621, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c0388784, I/O limit 4095Mb (mask 0xffffffff)
hda: 80418240 sectors (41174 MB) w/1916KiB Cache, CHS=5005/255/63, UDMA(100)
blk: queue c03888c0, I/O limit 4095Mb (mask 0xffffffff)
hdb: 12706470 sectors (6506 MB) w/128KiB Cache, CHS=790/255/63, UDMA(33)
hdc: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
ide-floppy driver 0.99.newide
Partition check:
hda: hda1
hdb: hdb1 hdb2 hdb3 hdb4
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
ide-floppy driver 0.99.newide
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 1010.400 MB/sec
32regs : 581.200 MB/sec
pII_mmx : 1650.000 MB/sec
p5_mmx : 2105.600 MB/sec
raid5: using function: p5_mmx (2105.600 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.5+(22/07/2002)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
FAT: bogus logical sector size 0
UMSDOS: msdos_read_super failed, mount aborted.
FAT: bogus logical sector size 0
FAT: bogus logical sector size 0
reiserfs: checking transaction log (device 03:42) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 112k freed
Adding Swap: 160608k swap-space (priority -1)
reiserfs: checking transaction log (device 03:43) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
reiserfs: checking transaction log (device 03:44) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 262M
agpgart: Detected Via Apollo Pro KT133 chipset
agpgart: AGP aperture is 64M @ 0xe8000000
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
usb.c: registered new driver keyboard
usbkbd.c: :USB HID Boot Protocol keyboard driver
Creative EMU10K1 PCI Audio Driver, version 0.20a, 09:06:03 Mar 17 2003
PCI: Found IRQ 5 for device 00:0a.0
PCI: Sharing IRQ 5 with 00:07.5
emu10k1: EMU10K1 rev 7 model 0x8061 found, IO at 0xd800-0xd81f, IRQ 5
ac97_codec: AC97 Audio codec, id: 0x8384:0x7608 (SigmaTel STAC9708)
emu10k1: SBLive! 5.1 card detected
NET4: Linux IPX 0.47 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 11 for device 00:0b.0
PCI: Sharing IRQ 11 with 00:07.2
PCI: Sharing IRQ 11 with 00:07.3
eth0: RealTek RTL8139 Fast Ethernet at 0xd4a94000, 00:20:18:dc:4e:6f, IRQ 11
eth0: Identified 8139 chip type 'RTL-8139C'
ne2k-pci.c:v1.02 10/19/2000 D. Becker/P. Gortmaker
http://www.scyld.com/network/ne2k-pci.html
8139cp: 10/100 PCI Ethernet driver v0.3.0 (Sep 29, 2002)
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Intel PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
ds: no socket drivers loaded!
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.

root@design:~# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 octets data
64 octets from 192.168.0.1: icmp_seq=0 ttl=64 time=0.6 ms
64 octets from 192.168.0.1: icmp_seq=1 ttl=64 time=0.2 ms
64 octets from 192.168.0.1: icmp_seq=2 ttl=64 time=0.3 ms
64 octets from 192.168.0.1: icmp_seq=3 ttl=64 time=0.3 ms
64 octets from 192.168.0.1: icmp_seq=4 ttl=64 time=0.2 ms
64 octets from 192.168.0.1: icmp_seq=5 ttl=64 time=0.2 ms
64 octets from 192.168.0.1: icmp_seq=6 ttl=64 time=0.2 ms
64 octets from 192.168.0.1: icmp_seq=7 ttl=64 time=0.3 ms

[1]+ Stopped ping 192.168.0.1
root@design:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:20:18:DC:4E:6F
inet addr:192.168.0.201 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4177 (4.0 Kb) TX bytes:904 (904.0 b)
Interrupt:11 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:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2688 (2.6 Kb) TX bytes:2688 (2.6 Kb)

i also tried another module rtl8139.o

# insmod rtl8139.o
rtl8139.o: init_module: No such device
rtl8139.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg

anon099 09-10-2003 06:57 AM

do you have more then one card on that machine?
I guess you must since you are using it as a gateway.
That cards sucks hard. sorry but i really hate it. Was setting it up with another card using tulip.o driver and it just kept bailing(disappearing for no good reason). The module would unload or it would just forget its configuration. It did this in another configuration using multiple network cards too.
It has worked fine when used alone but who knows whats up with the multiple network thing. anyhow.

GET RID OF IT! IT IS THE EVIL DEVIL.

sorry i'm so bitter but i hate that card.
go buy a new one for like $10 or trade it with someone or another computer you have on site that needs only one card. I've been doing that and the card does great by itself. ok im done.

plm 09-10-2003 07:12 AM

well it's not a bad idea, but i'm having a lack of finances, so i can't afford changing the card. i'm not using the machine as a gateway, i'm using it as a client pc and there is only one network card, the realtek 8139. the gateway i'm trying to connect has possibly two network cards.

linuxJaver 09-10-2003 07:27 AM

Quote:

Originally posted by plm
pPcG5: well i am not sure why, but my ISP actually doesn't provide dns?!:) but nevermind the dns. I have a static IP assigned on our LAN.

Looking_Lost: static ip it is..:) well I connect through windows using static ip 192.168.0.201. without dns
I estimated ur LAN server could run dhcpd (server), when the connection between ur host n the dhcpd-server is established, u get also the IP, also the DNS-IP from the dhcpd (server). That meant the IP u got from the dhcpd can vary.

On windows u can type on command prompt " ipconfig /all " to see wut IP, DNS-IP u have. On Linux " ifconfig -a; route -n "

But ur /etc/resolve.conf will be automatically replace by the dhcpcd with the actual DNS-IP of dhcpd if connected.

Forget about rc.inet2 if u can connect to the server from windows.

Quote:

plm wrote:
Tinkster: well i am not sure about what kind is the gateway. well i think it has to network cards. one is connected to a switch, and i am connected to that switch. and the other to another switch/router, not sure. But the cable modem is connected to the gateway.

i'll post the output of dmesg right away.
So let me try to estimate how ur topology looked like:



ISP - CableModem - (NIC1-SuseServer-NIC2) - Switch - (NIC-yourHost)

NIC is ur eth0, so I suggest, try to use DHCP for ur eth0, uncomment the below line in rc.inet1
#USE_DHCP=yes

The rest can be let there like it was, then run the rc.inet1 script from the command prompt " cd /; ./etc/rc.d/rc.inet1 "

That is actually the same when u run below on command prompt:

/sbin/dhcpcd -t 10 -d eth0


Forget about using the kernel u compiled, use that kernel come with slack, if it worked then just try to cook ur own kernel, It worked by me (used 2 nics of them, it worked) ..

It is too much thing together, if u compile kernel this time ..

Noryungi 09-10-2003 07:30 AM

Quote:

i am not sure only for the dhcp and the nameserver. i don't think i need them both.
Actually, you need *both*.

DHCP will give you an IP address.

The name server will tell you where everything else is on the Internet... :)

So you need both.

plm 09-10-2003 07:55 AM

well i'll try again with the dhcp, but when i tried it the last time when the kernel was loading it said there dhcp timeout, could not connect to dhcp server, ot smth.;( i have no idea

linuxJaver 09-10-2003 08:10 AM

Therefore I said u should try it several time, but by LAN connection u should easily get connected, when the susServer is running dhcpd. Can u ask the administrator of the suseServer, whether suse is running dhcpd or it gives only static IPs ?

U can find most answer through the commands above, if not try to boot into windows for find the infos out .. Look like u need to that DNS-IPs to into ur /etc/resolve.conf. Something like that ..

search ns1.domain.com
search 192.168.0.1

plm 09-10-2003 08:21 AM

in windows ipconfig /all says that dhcp is not enabled. i know that the server gives static IPs.
i'll try with the resolve.conf

Looking_Lost 09-10-2003 08:27 AM

If you haven't already added 8139cp to your blacklist (not 8139too) then you can add it

/etc/hotplug/blacklist

and add

8139cp

This should be simple :)

Once it's rebooted again try doing it manually

ifconfig eth0 192.168.0.201
route add default gw 192.168.0.1

Forget about dns the now and try and ping here

ping 64.179.4.146

Just to check, you are allowed full access and not meant to specify a proxy or anything?

plm 09-10-2003 09:00 AM

okay i'll try that. but the odd thing is that actually i think i have lan! i connected via telnet the server?! but it looks like i can't get to the internet. i'll try this thing with the blacklist. i found it in another topic before. i didn't have /etc/hotplug/blacklist. i was with slack 8.1. now i'm with 9.0. i'll try it right away

Looking_Lost 09-10-2003 09:10 AM

Well if you can telnet into the gateway server while in linux then I can't see any connectivity problem on your part.

Does pinging an external address by number like above give any output?

plm 09-10-2003 09:30 AM

wneh i try to ping the above address nothing happens. it displays PING: addresss... 56... something
only one line. i waited for some time, but nothing happened.
if i can't ping it should it display 'timed out' or something?!

Looking_Lost 09-10-2003 09:45 AM

bizzarro.


With the exact same settings you can connect to the internet using windows

You can telnet into the gateway server

You can ping the gateway server

You can't ping outside

You don't have any crazy firewall settingss

That'd bring me back to whether your gateway settings where right on slackware but...hmm.


what does

traceroute 64.179.4.146

come up with

plm 09-10-2003 10:58 AM

guys I have net!! ;););) i have net! i added the line
nameserver 194.12.244.34
to resolve.conf
and i have net!:P
i'm happe:) now there are more things to be done!:) configuration of software and stuff like that... thank you all for your help! your the best:))) have a nice day

Looking_Lost 09-10-2003 11:26 AM

Strange that you couldn't ping by ip but alls well that ends well :)

plm 09-10-2003 11:56 AM

:):) it's strange, but nevermind, t'm glad that with help i got it working

pPcG5 09-11-2003 04:26 AM

Ahahah
I was right from the beginning
So finally you have entered the DNS server of the SuSE box into your resolv.conf of your slackware
I had the same problem with my routeur dhcp off and static ip to my eth0. But as my gateway is a routeur i must enter the DNS of my ISP.

But try to ping again your gateway it's very strange it must be an error
If now you can telnet and internet it must works
Have fun...

plm 09-11-2003 08:28 AM

ooh i sure will have fun:):) thks. actually i'm not sure what was that dns server that i used.. . could be the one of my ISP. not' know:) who cares

CrazyHead 10-13-2003 09:33 AM

Hello..
 
I just wanna know about the solution of the realtek 8139too problem with linux..


All times are GMT -5. The time now is 08:35 PM.