LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-09-2003, 06:37 PM   #16
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30

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.
 
Old 09-09-2003, 07:24 PM   #17
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 09-10-2003, 05:46 AM   #18
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
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
 
Old 09-10-2003, 06:50 AM   #19
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
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: hdaMA, hdbMA
ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdcMA, hddio
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:18C: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
 
Old 09-10-2003, 06:57 AM   #20
anon099
Member
 
Registered: Oct 2002
Posts: 188

Rep: Reputation: Disabled
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.

Last edited by anon099; 09-10-2003 at 07:11 AM.
 
Old 09-10-2003, 07:12 AM   #21
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
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.
 
Old 09-10-2003, 07:27 AM   #22
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
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 ..

Last edited by linuxJaver; 09-10-2003 at 07:40 AM.
 
Old 09-10-2003, 07:30 AM   #23
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
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.
 
Old 09-10-2003, 07:55 AM   #24
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
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
 
Old 09-10-2003, 08:10 AM   #25
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
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
 
Old 09-10-2003, 08:21 AM   #26
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
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
 
Old 09-10-2003, 08:27 AM   #27
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
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?
 
Old 09-10-2003, 09:00 AM   #28
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
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
 
Old 09-10-2003, 09:10 AM   #29
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
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?
 
Old 09-10-2003, 09:30 AM   #30
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
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?!
 
  


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
Realtek network card 8139 under FC4 realcr Linux - Hardware 9 08-18-2005 06:38 PM
mdk10, krnl2.6.5, and realtek eth card rgiggs Mandriva 0 05-06-2004 09:55 PM
How to install and configure Realtek 8139 Nic card zerokool Linux - Newbie 5 08-14-2003 02:23 AM
Realtek / Asound 8139 Network Card with Redhat 8.0 jamesonq Linux - Networking 6 04-06-2003 10:44 PM
Realtek 8139 pci network card and RH 7.3 d4u Linux - Networking 6 09-06-2002 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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