Click to See Complete Forum and Search --> : RH7.2 and cable modem
kiwizrx
11-26-2002, 02:44 AM
I've got a cable modem with a static IP. When I enter the IP number during the install (or in linuxconf) the subnet mask and gateway number Linux 'autofills' are different. I change them to what my ISP supplied.
Problem is it doesn't work! :(
Anyone care to offer some advise. I'm a complete newbie here.
kiwizrx
11-26-2002, 03:21 PM
I've now been through every NHF, the forums and the links to cable modem help. Still not working. If I can't get this working I'll HAVE to use Windows as I need an internet connection!
HELP!
miteycasey
11-26-2002, 04:00 PM
Do the numbers work when you are in Windows?
kiwizrx
11-26-2002, 08:19 PM
They work in Mac and Windows, but I'm trying to use NEAT in RedHat and there are more tabs and boxes/panels. I may be doing something wrong...
Hardcode the values into your network config files; the GUI network utilities can be wonky sometimes. In Redhat, the relevant files are:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0 (assuming you only have one Ethernet card)
/etc/hosts
/etc/resolv.conf
The files are simple text files, which you can edit with your favorite text editor. Just make sure to make a backup of the files before you change them. For static addressing:
1. /etc/syconfig/network:NETWORKING=yes
FORWARD_IPV4="no"
HOSTNAME="penguinbox.localdomain" <- put your hostname here
DOMAINNAME=localdomain <-put the domain portion of your hostname here
GATEWAY="192.168.0.1" <-If the ISP gave you a gateway IP, it goes here
GATEWAYDEV="eth0" <- for the first/only NIC
2. /etc/sysconfig/network-scripts/ifcfg-eth0:DEVICE="eth0"
BOOTPROTO="none" <-when using a static IP
IPADDR="192.168.0.2" <- your IP goes here
NETMASK="255.255.255.0" <-your netmask goes here
NETWORK=192.168.0.0 <-the network portion of you IP goes here
BROADCAST=192.168.0.255 <- your broadcast address
ONBOOT="yes" <- to make the NIC initialize at boot
3. /etc/hosts:127.0.0.1 localhost.localdomain localhost
192.168.0.2 penguinbox.localdomain penguinbox <-your IP, full hostname, and host portion of hostname
4. /etc/resolv.conf. Put your DNS entries here; the file has the folowing format:domain attbi.com <- replace this with your ISP's domain name
nameserver 216.148.227.68 <- replace these entries with
nameserver 204.127.202.4 <- the DNS IPs from your ISP
Once done, reboot the system and watch the boot messages for anything concerning eth0; if all goes well it should come up. If not, post the exact text of any errors you receive along with any further questions you might have.
kiwizrx
11-27-2002, 07:42 PM
This part confuses me...
Can I use anything for my hostname? ie zrx.localhost.localdomain or
as my ISP is paradise.net.nz do I use that?
One other thing:
You show 192.xxx.xxx.xxx, I replace that with my 203.xxx.xxx.xxx that I got from my ISP, correct?
Thanks heaps for the info - will reply...
kiwizrx
11-28-2002, 02:54 AM
Well, that didn't work so can someone cast a eye over this lot and tell me where I went off the rails:
Here's my new files:
etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
203.79.119.197 zrx.localdomain zrx
etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
IPADDR=203.79.119.197 <--ISP supplied
NETMASK=255.255.252.0 <--ISP supplied
NETWORK=203.79.119.0
BROADCAST=203.79.116.255
ONBOOT=yes
etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=no
HOSTNAME=zrx.localdomain <--I made this name up, I don't have a domain (or do I?)
DOMAINNAME=localdomain
GATEWAY=203.79.116.1 <--ISP supplied
GATEWAYDEV=eth0
etc/resolv.conf
domain paradise.net.nz <--ISP
nameserver 203.96.152.4 <--ISP supplied
nameserver 203.96.152.12 <--ISP supplied
search paradise.net.nz
Now the results:
[root@zrx root]# dmesg
<snip>
PCI: Found IRQ 11 for device 00:01.1
eth0: SiS 900 Internal MII PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xec00, IRQ 11, 21:00:00:00:00:02.
eth0: Media Link On 100mbps full-duplex
<snip>
[root@zrx root]# ping 210.54.242.36 -c 5 <-- external website
PING 210.54.242.36 (210.54.242.36) from 203.79.119.197 : 56(84) bytes of data.
From 203.79.119.197: Destination Host Unreachable
From 203.79.119.197: Destination Host Unreachable
From 203.79.119.197: Destination Host Unreachable
From 203.79.119.197: Destination Host Unreachable
From 203.79.119.197: Destination Host Unreachable
--- 210.54.242.36 ping statistics ---
5 packets transmitted, 0 packets received, +5 errors, 100% packet loss
[root@zrx root]# ping 203.79.119.197 -c 5 <-- my IP
PING 203.79.119.197 (203.79.119.197) from 203.79.119.197 : 56(84) bytes of data.Warning: time of day goes back, taking countermeasures.
64 bytes from 203.79.119.197: icmp_seq=0 ttl=255 time=315 usec
64 bytes from 203.79.119.197: icmp_seq=1 ttl=255 time=179 usec
64 bytes from 203.79.119.197: icmp_seq=2 ttl=255 time=172 usec
64 bytes from 203.79.119.197: icmp_seq=3 ttl=255 time=168 usec
64 bytes from 203.79.119.197: icmp_seq=4 ttl=255 time=179 usec
--- 203.79.119.197 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.168/0.202/0.315/0.058 ms
[root@zrx root]# ping 127.0.0.1 -c 5 <-- you know...
PING 127.0.0.1 (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
Warning: time of day goes back, taking countermeasures.
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=1.871 msec
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=183 usec
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=185 usec
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=188 usec
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=209 usec
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.183/0.527/1.871/0.672 ms
[root@zrx root]# route <-- saw this somewhere
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.79.116.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 U 0 0 0 eth0
[root@zrx root]# ifconfig <-- saw this somewhere too
eth0 Link encap:Ethernet HWaddr 21:00:00:00:00:02
inet addr:203.79.119.197 Bcast:203.79.116.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1684 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:103134 (100.7 Kb) TX bytes:672 (672.0 b)
Interrupt:11 Base address:0xec00
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:188 errors:0 dropped:0 overruns:0 frame:0
TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13258 (12.9 Kb) TX bytes:13258 (12.9 Kb)
phlipant
11-28-2002, 12:41 PM
you have your ip set as 203.79.119.197 but your gateway set as 203.79.116.1. while this configuration is possible it is extremely unlikely. the third number is usually the same. is it possible that you have entered or been given incorrect numbers?
if they are correct BROADCAST=203.79.255.255 and NETMASK=255.255.0.0
dont forget to try to ping 203.79.116.1
kiwizrx
11-28-2002, 02:02 PM
Thank you.
Those figures work on my Macs and PC. These are the figures the ISP supplied:
IP=203.79.119.197
SUBNETMASK=255.255.252.0
GATE=203.79.116.1
DNS=203.96.152.4
DNS=203.96.152.12
No broadcast was given, and the Macs don't request it.
I'll change them to what you sujest and post the results tonight (my time) :cool:
Thanks again.
kiwizrx
11-29-2002, 03:17 PM
I changed the BROADCAST in etc/sysconfig/network-scripts/ifcfg-eth0 to 203.79.255.255
pinging an external now just reports 100% packet loss. Nothing about Destination Host Unreachable. Is this better or worst? Here's the output:
[root@zrx root]# service network restart
Shutting down interface eth0: [ OK ]
Setting network parameters: [ OK ]
Bringing up interface lo: [ OK ]
Bringing up interface eth0: [ OK ]
[root@zrx root]# ping 210.54.242.36 -c 5
PING 210.54.242.36 (210.54.242.36) from 203.79.119.197 : 56(84) bytes of data.
--- 210.54.242.36 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
[root@zrx root]# ping 203.79.116.1 -c 5
PING 203.79.116.1 (203.79.116.1) from 203.79.119.197 : 56(84) bytes of data.
--- 203.79.116.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
[root@zrx root]# ping 203.79.119.197 -c 5
PING 203.79.119.197 (203.79.119.197) from 203.79.119.197 : 56(84) bytes of data.Warning: time of day goes back, taking countermeasures.
64 bytes from 203.79.119.197: icmp_seq=0 ttl=255 time=1.259 msec
64 bytes from 203.79.119.197: icmp_seq=1 ttl=255 time=177 usec
64 bytes from 203.79.119.197: icmp_seq=2 ttl=255 time=164 usec
64 bytes from 203.79.119.197: icmp_seq=3 ttl=255 time=183 usec
64 bytes from 203.79.119.197: icmp_seq=4 ttl=255 time=187 usec
--- 203.79.119.197 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.164/0.394/1.259/0.432 ms
[root@zrx root]# ping 127.0.0.1 -c 5
PING 127.0.0.1 (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
Warning: time of day goes back, taking countermeasures.
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=899 usec
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=178 usec
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=177 usec
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=179 usec
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=185 usec
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.177/0.323/0.899/0.288 ms
[root@zrx root]# dmesg
Linux version 2.4.7-10 (bhcompile@stripples.devel.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)) #1 Thu Sep 6 17:27:27 EDT 2001
<snip>
PCI: Found IRQ 5 for device 00:01.1
eth0: SiS 900 Internal MII PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xdc00, IRQ 5, 21:00:00:00:00:02.
eth0: Media Link On 10mbps half-duplex
Trident 4DWave/SiS 7018/ALi 5451 PCI Audio, version 0.14.9, 17:37:11 Sep 6 2001PCI: Found IRQ 11 for device 00:01.4
PCI: Sharing IRQ 11 with 00:09.0
trident: SiS 7018 PCI Audio found at IO 0xd000, IRQ 11
ac97_codec: AC97 Audio codec, id: 0x8384:0x7600 (SigmaTel STAC????)
eth0: Media Link Off
eth0: Media Link On 100mbps full-duplex
eth0: Media Link On 100mbps full-duplex
<snip>
[root@zrx root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.79.116.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 203.79.116.1 0.0.0.0 UG 0 0 0 eth0
[root@zrx root]# ifconfig
eth0 Link encap:Ethernet HWaddr 21:00:00:00:00:02
inet addr:203.79.119.197 Bcast:203.79.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:543 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:32732 (31.9 Kb) TX bytes:1613 (1.5 Kb)
Interrupt:5 Base address:0xdc00
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:170 errors:0 dropped:0 overruns:0 frame:0
TX packets:170 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11440 (11.1 Kb) TX bytes:11440 (11.1 Kb)
phlipant
11-29-2002, 06:36 PM
try to ping 203.79.119.1
i have a bad feeling about thart 116
you have route out but nobody answers
kiwizrx
11-29-2002, 07:33 PM
Ok pinging 203.79.119.1 is 100% packet loss, does NOT say Destination Host Unreachable.
These are the figures the ISP supplied:
IP=203.79.119.197
SUBNETMASK=255.255.252.0
GATE=203.79.116.1
DNS=203.96.152.4
DNS=203.96.152.12
And that's how I'm connected right now - on my Mac... but of course it doesn't have BROADCAST or a firewall or a lot of other things that Linux does.
jumpedintothefire
11-30-2002, 10:41 AM
There is a calulator for this stuff at:
www.telusplanet.net/public/sparkman/netcalc.htm
---quote ---
NETWORK=203.79.119.0
BROADCAST=203.79.116.255
--------
Those look backwards to me try:
NETWORK=203.79.116.0
BROADCAST=203.79.119.255
That makes the gateway part of the same subnet ie: 203.79.116.0 - 203.79.119.255 with a 255.255.252.0 subnetmask.
phlipant
11-30-2002, 11:10 AM
i would modify
SUBNETMASK=255.255.252.0
to
SUBNETMASK=255.255.0.0
i also noted that GATE=203.79.116.1 exists and GATE=203.79.119.1 does not.
when you try to ping 203.79.116.1 check to see if your modem`s transmit data light flashes, your ping test indicates something is being transmited
i dont think you route properly to 203.79.116.1
you route result looks like
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.79.116.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 203.79.116.1 0.0.0.0 UG 0 0 0 eth0
but something looks very wrong about it
i thought it should look more like
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.79.119.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 203.79.119.1 0.0.0.0 UG 0 0 0 eth0
but i`m not sure, let me think about it.
jumpedintothefire
11-30-2002, 11:21 AM
phlipant:
the subnetmask was stated by his isp..... Why would you change it??
Why don't you try the calulator before you give out bad advice.... This is networking 101 stuff here...
phlipant
11-30-2002, 11:42 AM
i would try to expand your transmission range with the command
route add -net 203.79.0.0 netmask 255.255.0.0 dev eth0
and try to ping again
ps i am a network administrator with 20 years experience, including 10 years at bell laboratories, and none of this with break your computer.
jumpedintothefire
11-30-2002, 12:19 PM
Using the correct network info places the machine on the correct subnet, setting up the correct routing to begin with.....
Adding a route is only going to cover up the underlaying problem. 203.79.119.197 should use 203.79.116.0 as a network address, while the broadcast address should be 203.79.119.255. That makes a subnet that covers 203.79.116.0 - 203.79.119.255. This places the gateway at 203.79.116.1 on the same subnet, there should be a route automaticly set up for this one, from the posted example:
203.79.116.0 * 255.255.252.0 U 0 0 0 eth0
Hope this clears things up for you...
phlipant
12-01-2002, 03:35 AM
sorry your mail server is down
but i am glad to see you are up
phlipant
ps fairly slow isp, is paradise lost?
kiwizrx
12-01-2002, 05:31 AM
Thanks for your input people... most of it (ok, all of it) is straight over my head. I'll try most things to get this going...
As we stand now:
ifcfg-eth0
----
DEVICE=eth0
BOOTPROTO=none
IPADDR=203.79.119.197
NETMASK=255.255.252.0
NETWORK=203.79.116.0
BROADCAST=203.79.119.255
ONBOOT=yes
GATEWAY=203.79.116.1
TYPE=Ethernet
USERCTL=no
PEERDNS=no
network
----
NETWORKING=yes
FORWARD_IPV4=no
HOSTNAME=zrx.localdomain
DOMAINNAME=localdomain
GATEWAY=203.79.116.1
GATEWAYDEV=eth0
resolvconf
----
nameserver 203.96.152.4
nameserver 203.96.152.12
domain paradise.net.nz
search paradise.net.nz
hosts
----
# Do not remove the following line, or various programs
# that require network functionality will fail.
203.79.119.197 zrx.localdomain zrx
127.0.0.1 localhost.localdomain localhost
And the result: No internet. :(
[root@zrx root]# ping 203.79.116.1 -c 5
PING 203.79.116.1 (203.79.116.1) from 203.79.119.197 : 56(84) bytes of data.
--- 203.79.116.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
[root@zrx root]# ping 203.79.119.197 -c 5
PING 203.79.119.197 (203.79.119.197) from 203.79.119.197 : 56(84) bytes of data.Warning: time of day goes back, taking countermeasures.
64 bytes from 203.79.119.197: icmp_seq=0 ttl=255 time=284 usec
64 bytes from 203.79.119.197: icmp_seq=1 ttl=255 time=203 usec
64 bytes from 203.79.119.197: icmp_seq=2 ttl=255 time=198 usec
64 bytes from 203.79.119.197: icmp_seq=3 ttl=255 time=202 usec
64 bytes from 203.79.119.197: icmp_seq=4 ttl=255 time=194 usec
--- 203.79.119.197 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.194/0.216/0.284/0.035 ms
[root@zrx root]# ping 203.96.152.4 -c 5
PING 203.96.152.4 (203.96.152.4) from 203.79.119.197 : 56(84) bytes of data.
--- 203.96.152.4 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
[root@zrx root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.79.116.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 203.79.116.1 0.0.0.0 UG 0 0 0 eth0
[root@zrx root]# dmesg
<snip>
PCI: Found IRQ 5 for device 00:01.1
eth0: SiS 900 Internal MII PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xdc00, IRQ 5, 21:00:00:00:00:02.
eth0: Media Link On 100mbps full-duplex
<snip>
So I did this:
[root@zrx root]# route add -net 203.79.0.0 netmask 255.255.0.0 dev eth0
[root@zrx root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.79.116.0 * 255.255.252.0 U 0 0 0 eth0
203.79.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 203.79.116.1 0.0.0.0 UG 0 0 0 eth0
[root@zrx root]# ping 203.79.116.1 -c 5
PING 203.79.116.1 (203.79.116.1) from 203.79.119.197 : 56(84) bytes of data.
--- 203.79.116.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
Oh yes, the activity light flashes...
Remember that the settings I was supplied work on my Mac (with the same cable and cable-modem). Is there something Linux needs to work with the cable-modem? Unfortunately my ISP doesn't support Linux or Macs. If it wasn't for the Mac I wouldn't be asking these questions!
Those ISP supplied figures again:
IP=203.79.119.197
SUBNETMASK=255.255.252.0
GATE=203.79.116.1
DNS=203.96.152.4
DNS=203.96.152.12
What say you oh wise people
:confused:
kiwizrx
12-01-2002, 05:34 AM
Originally posted by phlipant
sorry your mail server is down
but i am glad to see you are up
phlipant
ps fairly slow isp, is paradise lost?
If you were pinging my IP you got my Mac! I'm on a slow connection (128) and a slow machine and of course NZ is a bit out of the way! :D
jumpedintothefire
12-01-2002, 11:14 AM
>>eth0: Media Link On 100mbps full-duplex
What does mii-tool give you??
Is this machine plugging into the cable modem?
most cable modems don't operate at 100mbps and at full duplex.... Your moving the cable from the mac to the linux box, correct?? Try unplugging the modem for a bit when you change machines, it might be remembering the MAC address of the previous machine, and not allowing the 'new' one....
As a test unplug the modem from the power, connect the linux box to the cable modem, power up the modem, now reboot the linux box..
It should come up as 10mbps half-duplex
kiwizrx
12-01-2002, 03:07 PM
Sorry, only had time to quickly test it before going to work...
mii-tool indicates '100baseT FD' (100 full duplex I guess)
Is this machine plugging into the cable modem?
Correct - direct link from Linux to cable-modem
Your moving the cable from the mac to the linux box, correct??
Correct
Try unplugging the modem for a bit when you change machines, it might be remembering the MAC address of the previous machine, and not allowing the 'new' one....
Powering down the modem for a couple of minutes didn't work. Still can't ping anything but myself. Tried 203.79.116.1 (gateway) and 100% packet loss.:confused:
Any more ideas?
jumpedintothefire
12-01-2002, 06:50 PM
Try: service network restart
and then
tail /var/log/messages
post the result...
I have this in my /var/log/messages....
Dec 1 11:28:06 jer73 kernel: eth0: SiS 900 Internal MII PHY transceiver found at address 1.
Dec 1 11:28:06 jer73 kernel: eth0: Using transceiver found at address 1 as default
Dec 1 11:28:06 jer73 kernel: eth0: SiS 900 PCI Fast Ethernet at 0xde00, IRQ 10, 00:07:95:aa:3d:7e.
Dec 1 11:28:06 jer73 kernel: eth0: Media Link On 10mbps half-duplex
Dec 1 11:28:04 jer73 network: Bringing up interface eth0: succeeded
Looks like yours is coming up with 100 full duplex....
Two thing come to mind...
First check /etc/modules.conf for some options for sis900... might be setting it in there...
Or second the nic maybe hard coded with a dos config program to those setting...
At any rate, it looks like the nic is not playing nice with the cable modem....
kiwizrx
12-01-2002, 07:09 PM
I'll check that out (in 15 or so hours!). I've tried a DLink (530TX I think) and it didn't work either. This machine only has Linux and everything I've read says to "boot dos and disable PnP and manually setup the card". First, I have no DOS, second, I wouldn't know how anyway.
Looks like yours is coming up with 100 full duplex....
Two thing come to mind...
First check /etc/modules.conf for some options for sis900... might be setting it in there...
What would I look for? Should it be oblivious (to a newbie)
Or second the nic maybe hard coded with a dos config program to those setting...
How is that cured? The motherboard was secondhand. I just plug a lot of bits together, grabbed a WIN boot floppy and loaded Linux. :D Look what I got! Everything is fine except the internet connection. As I say, I'll check out the log when I'm home again.
phlipant
12-01-2002, 10:50 PM
since i have my own linux router and a fair number of computers about (much to the distress of my wife), i decided to reproduce your network setup. here are the results.
# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=196.1.119.197
NETMASK=255.255.252.0
USERCTL=no
PEERDNS=no
GATEWAY=196.1.116.1
TYPE=Ethernet
NETWORK=196.1.116.0
BROADCAST=196.1.119.255
# cat network
NETWORKING=yes
HOSTNAME=approuter
#cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 approuter localhost.localdomain localhost
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
196.1.116.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 196.1.116.1 0.0.0.0 UG 0 0 0 eth0
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:76:4D:12:27
inet addr:196.1.119.197 Bcast:196.1.119.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:271 errors:0 dropped:0 overruns:0 frame:0
TX packets:187 errors:0 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:100
RX bytes:29179 (28.4 Kb) TX bytes:26459 (25.8 Kb)
Interrupt:11 Base address:0xd400
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:86 errors:0 dropped:0 overruns:0 frame:0
TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5858 (5.7 Kb) TX bytes:5858 (5.7 Kb)
# ping 196.1.116.1
PING 196.1.116.1 (196.1.116.1) from 196.1.119.197 : 56(84) bytes of data.
64 bytes from 196.1.116.1: icmp_seq=1 ttl=64 time=0.471 ms
64 bytes from 196.1.116.1: icmp_seq=2 ttl=64 time=0.199 ms
64 bytes from 196.1.116.1: icmp_seq=3 ttl=64 time=0.196 ms
64 bytes from 196.1.116.1: icmp_seq=4 ttl=64 time=0.194 ms
64 bytes from 196.1.116.1: icmp_seq=5 ttl=64 time=0.200 ms
this configuration is perfect and if an adaptation of it does not work (e.i. 196.1->203.79) the only thing a can conclude is that you have a nic problem. i should point out that this was configured with neat quite easily
ps i still don`t like that mickey mouse netmask, but it does work.
kiwizrx
12-01-2002, 10:59 PM
I'm starting to guess that too. That would be four different NIC's that don't work in two different machines. What's the odds of that?!
Must be there is something I must do to configure the card rather than Linux. What and how - HELP!
phlipant
12-01-2002, 11:17 PM
i`ve never configured a nic or heard of it being done. i seems unlikely that 4 could be bad. if you run neat you can can disable alias support and try to probe the hardware address. at least you will see if the card talks to you, but every nic i`ve ever used just works.
good luck
phlipant
12-01-2002, 11:41 PM
you have a critical line in you /etc/modules.conf file to load the appropriate driver for your particular nic. my lines are
alias eth0 ne2k-pci
alias eth1 tulip
i have two lines because i have two cards, the reason one is tulip and the other is ne2k-pci is that the cards are from different manufacturers
every time you swap a card you must edit the alias for your card.
if you type lsmod your modules will list if they successfully loaded
in my case
Module Size Used by Not tainted
tulip 41344 1
ne2k-pci 6400 1
kiwizrx
12-01-2002, 11:43 PM
Thanks - I'll follow that up and post back.
jumpedintothefire
12-02-2002, 12:49 AM
---quote---
What would I look for? Should it be oblivious (to a newbie)
------------
post what you have in /etc/modules.conf
Just a quick note my RH7.3 (with kernel updated to 2.4.18) has 2 drivers for that card:
sis900
sis900_old
have a look in /lib/modules/kernel-<ver>/kernel drivers/net
How many sis drivers are there?
What kernel version are you running?
Might just need to update the driver file and recompile or just update the kernel.....
phlipant:
Most stuff just works for me to... I just don't run into these problems.... Here is an example of setting up an isa ne card with a dos program:
http://linuxnewbie.org/forum/showthread.php?s=&threadid=77459
Now you heard of one ;)
Looks to me like the module is loaded, how else would mii-tool find it??
Why it is coming up 100/full-duplex has me a bit stumped, with some nic modules, that can be set with options that can be passed from /etc/modules.conf or with insmod... Need to see what is in that file...
EDIT:
On a re-read the first time sis900's logging shows 10/half-duplex, on the second 100/full-duplex.....
WTF is up with that???
phlipant
12-02-2002, 01:04 AM
i do know isa cards are a world of their own.
i have a rel-tek card on one system which is dual boot. it often hangs in win2k and no matter how many times i reboot win2k it stays hung. if i then boot into linux the problem clears, allowing me to return to win2k.
jumpedintothefire
12-02-2002, 01:15 AM
I have a 3com card... When you drop the interface and bring it back up, no full dupex light on the switch. Won't light up without a reboot...... Don't play around with that machine.... uptime over 150 days.... ;)
kiwizrx
12-02-2002, 02:17 PM
Here you go:
etc/modudules.conf
alias parport_lowlevel parport_pc
alias eth0 sis900
alias sound-slot-0 trident
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-ohci
alias eth1 8139too
/lib/modules/2.4.7-10/kernel/drivers/net/
sis900.o <--- this is the only sis module listed (there's a few there eh?)
and the messages:
Dec 2 07:14:40 zrx kernel: kjournald starting. Commit interval 5 seconds
Dec 2 07:14:40 zrx kernel: EXT3 FS 2.4-0.9.8, 25 Aug 2001 on ide0(3,1), internal journal
Dec 2 07:14:40 zrx kernel: EXT3-fs: mounted filesystem with ordered data mode.
Dec 2 07:14:40 zrx kernel: 0x378: FIFO is 16 bytes
Dec 2 07:14:12 zrx rc.sysinit: Mounting proc filesystem: succeeded
Dec 2 07:14:40 zrx kernel: 0x378: writeIntrThreshold is 16
Dec 2 07:14:12 zrx rc.sysinit: Unmounting initrd: succeeded
Dec 2 07:14:40 zrx kernel: 0x378: readIntrThreshold is 16
Dec 2 07:14:12 zrx sysctl: net.ipv4.ip_forward = 0
Dec 2 07:14:12 zrx sysctl: net.ipv4.conf.default.rp_filter = 1
Dec 2 07:14:12 zrx sysctl: kernel.sysrq = 0
Dec 2 07:14:12 zrx rc.sysinit: Configuring kernel parameters: succeeded
Dec 2 07:14:12 zrx date: Mon Dec 2 07:14:06 NZDT 2002
Dec 2 07:14:40 zrx kernel: parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,COMPAT,EPP,ECP]
Dec 2 07:14:40 zrx apmd: apmd startup succeeded
Dec 2 07:14:40 zrx apmd[871]: Version 3.0final (APM BIOS 1.2, Linux driver 1.14)
Dec 2 07:14:40 zrx kernel: parport0: irq 7 detected
Dec 2 07:14:12 zrx rc.sysinit: Setting clock (localtime): Mon Dec 2 07:14:06 NZDT 2002 succeeded
Dec 2 07:14:12 zrx rc.sysinit: Loading default keymap succeeded
Dec 2 07:14:12 zrx rc.sysinit: Setting default font (lat0-sun16): succeeded
Dec 2 07:14:12 zrx rc.sysinit: Activating swap partitions: succeeded
Dec 2 07:14:12 zrx rc.sysinit: Setting hostname zrx.localdomain: succeeded
Dec 2 07:14:40 zrx apmd[871]: Charge: * * * (-1% unknown)
Dec 2 07:14:12 zrx rc.sysinit: Mounting USB filesystem: succeeded
Dec 2 07:14:12 zrx rc.sysinit: Initializing USB controller (usb-ohci): succeeded
Dec 2 07:14:12 zrx fsck: /: clean, 103302/7258112 files, 614802/14510711 blocks
Dec 2 07:14:12 zrx rc.sysinit: Checking root filesystem succeeded
Dec 2 07:14:12 zrx rc.sysinit: Remounting root filesystem in read-write mode: succeeded
Dec 2 07:14:13 zrx rc.sysinit: Finding module dependencies: succeeded
Dec 2 07:14:17 zrx fsck: /boot: clean, 39/12048 files, 7502/48163 blocks
Dec 2 07:14:17 zrx rc.sysinit: Checking filesystems succeeded
Dec 2 07:14:40 zrx kernel: ip_conntrack (1983 buckets, 15864 max)
Dec 2 07:14:17 zrx rc.sysinit: Mounting local filesystems: succeeded
Dec 2 07:14:17 zrx rc.sysinit: Enabling local filesystem quotas: succeeded
Dec 2 07:14:41 zrx kernel: sis900.c: v1.08.00 6/11/2001
Dec 2 07:14:18 zrx rc.sysinit: Enabling swap space: succeeded
Dec 2 07:14:41 zrx autofs: automount startup succeeded
Dec 2 07:14:41 zrx kernel: PCI: Found IRQ 5 for device 00:01.1
Dec 2 07:14:20 zrx init: Entering runlevel: 3
Dec 2 07:14:41 zrx kernel: eth0: SiS 900 Internal MII PHY transceiver found at address 1.
Dec 2 07:14:20 zrx kudzu: Updating /etc/fstab succeeded
Dec 2 07:14:41 zrx kernel: eth0: Using transceiver found at address 1 as default
Dec 2 07:14:31 zrx kudzu: succeeded
Dec 2 07:14:41 zrx kernel: eth0: SiS 900 PCI Fast Ethernet at 0xdc00, IRQ 5, 21:00:00:00:00:02.
Dec 2 07:14:31 zrx ipchains: Flushing all current rules and user defined chains: succeeded
Dec 2 07:14:41 zrx kernel: eth0: Media Link On 100mbps full-duplex
Dec 2 07:14:31 zrx ipchains: Clearing all current rules and user defined chains: succeeded
Dec 2 07:14:32 zrx ipchains: Applying ipchains firewall rules succeeded
Dec 2 07:14:32 zrx sysctl: net.ipv4.ip_forward = 0
Dec 2 07:14:32 zrx sysctl: net.ipv4.conf.default.rp_filter = 1
Dec 2 07:14:32 zrx sysctl: kernel.sysrq = 0
Dec 2 07:14:32 zrx network: Setting network parameters: succeeded
Dec 2 07:14:33 zrx logger: punching nameserver 203.96.152.4 through the firewall
Dec 2 07:14:33 zrx logger: punching nameserver 203.96.152.12 through the firewall
Dec 2 07:14:33 zrx network: Bringing up interface lo: succeeded
Dec 2 07:14:37 zrx ifup: route: netmask doesn't match route address
Dec 2 07:14:37 zrx ifup: Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
Dec 2 07:14:37 zrx ifup: route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
Dec 2 07:14:37 zrx ifup:
Dec 2 07:14:37 zrx ifup: route {-h|--help} [<AF>] Detailed usage syntax for specified AF.
Dec 2 07:14:37 zrx ifup: route {-V|--version} Display version/author and exit.
Dec 2 07:14:37 zrx ifup:
Dec 2 07:14:37 zrx ifup: -v, --verbose be verbose
Dec 2 07:14:37 zrx ifup: -n, --numeric don't resolve names
Dec 2 07:14:37 zrx ifup: -e, --extend display other/more information
Dec 2 07:14:37 zrx ifup: -F, --fib display Forwarding Information Base (default)
Dec 2 07:14:37 zrx ifup: -C, --cache display routing cache instead of FIB
Dec 2 07:14:37 zrx ifup:
Dec 2 07:14:37 zrx ifup: <AF>=Use '-A <af>' or '--<af>'; default: inet
Dec 2 07:14:37 zrx ifup: List of possible address families (which support routing):
Dec 2 07:14:37 zrx ifup: inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
Dec 2 07:14:37 zrx ifup: netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
Dec 2 07:14:37 zrx ifup: x25 (CCITT X.25)
Dec 2 07:14:37 zrx network: Bringing up interface eth0: succeeded
Dec 2 07:14:42 zrx xinetd[940]: chargen disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: chargen disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: daytime disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: daytime disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: echo disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: echo disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: rsync disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: time disabled, removing
Dec 2 07:14:42 zrx xinetd[940]: time disabled, removing
Dec 2 07:14:43 zrx xinetd[940]: xinetd Version 2.3.3 started with libwrap options compiled in.
Dec 2 07:14:43 zrx xinetd[940]: Started working: 1 available service
Dec 2 07:14:44 zrx xinetd: xinetd startup succeeded
Dec 2 07:14:46 zrx sendmail: sendmail startup succeeded
Dec 2 07:14:47 zrx gpm: gpm startup succeeded
Dec 2 07:14:47 zrx crond: crond startup succeeded
Dec 2 07:14:48 zrx xfs: listening on port 7100
Dec 2 07:14:48 zrx xfs: xfs startup succeeded
Dec 2 07:14:49 zrx anacron: anacron startup succeeded
Dec 2 07:14:49 zrx xfs: ignoring font path element /usr/X11R6/lib/X11/fonts/cyrillic (unreadable)
Dec 2 07:14:49 zrx atd: atd startup succeeded
Dec 2 07:14:49 zrx xfs: ignoring font path element /usr/X11R6/lib/X11/fonts/local (unreadable)
Dec 2 07:14:49 zrx rc: Starting wine: succeeded
Dec 2 07:18:13 zrx login(pam_unix)[1119]: session opened for user root by LOGIN(uid=0)
Dec 2 07:18:13 zrx -- root[1119]: ROOT LOGIN ON tty1
Dec 2 07:18:26 zrx xinetd[1263]: warning: can't get client address: Transport endpoint is not connected
Dec 2 07:18:33 zrx kernel: Trident 4DWave/SiS 7018/ALi 5451 PCI Audio, version 0.14.9, 17:37:11 Sep 6 2001
Dec 2 07:18:33 zrx kernel: PCI: Found IRQ 11 for device 00:01.4
Dec 2 07:18:33 zrx kernel: PCI: Sharing IRQ 11 with 00:09.0
Dec 2 07:18:33 zrx kernel: trident: SiS 7018 PCI Audio found at IO 0xd000, IRQ 11
Dec 2 07:18:33 zrx kernel: ac97_codec: AC97 Audio codec, id: 0x8384:0x7600 (SigmaTel STAC????)
Dec 2 07:18:33 zrx modprobe: modprobe: Can't locate module sound-service-0-0
Dec 2 07:18:33 zrx modprobe: modprobe: Can't locate module sound-slot-1
Dec 2 07:18:33 zrx modprobe: modprobe: Can't locate module sound-service-1-0
Dec 2 07:18:33 zrx modprobe: modprobe: Can't locate module sound-slot-1
Dec 2 07:18:33 zrx modprobe: modprobe: Can't locate module sound-service-1-0
Dec 2 07:19:02 zrx kernel: 8139too Fast Ethernet driver 0.9.18a
Dec 2 07:19:02 zrx kernel: PCI: Found IRQ 11 for device 00:09.0
Dec 2 07:19:02 zrx kernel: PCI: Sharing IRQ 11 with 00:01.4
Dec 2 07:19:02 zrx kernel: eth1: D-Link DFE-538TX (RealTek RTL8139) at 0xd009d000, 00:05:5d:ce:b4:f5, IRQ 11
Dec 2 07:19:02 zrx modprobe: modprobe: Can't locate module eth2
Dec 2 07:19:03 zrx modprobe: modprobe: Can't locate module eth3
Dec 2 07:19:03 zrx modprobe: modprobe: Can't locate module eth4
Dec 2 07:19:03 zrx modprobe: modprobe: Can't locate module eth5
Dec 2 07:19:03 zrx modprobe: modprobe: Can't locate module eth6
Dec 2 07:19:03 zrx modprobe: modprobe: Can't locate module eth7
Dec 2 07:19:52 zrx syslogd 1.4.1: restart.
Dec 2 07:20:52 zrx modprobe: modprobe: Can't locate module eth2
Dec 2 07:20:52 zrx modprobe: modprobe: Can't locate module eth3
Dec 2 07:20:52 zrx modprobe: modprobe: Can't locate module eth4
Dec 2 07:20:52 zrx modprobe: modprobe: Can't locate module eth5
Dec 2 07:20:52 zrx modprobe: modprobe: Can't locate module eth6
Dec 2 07:20:52 zrx modprobe: modprobe: Can't locate module eth7
Any clues? :confused: I think I see bad stuff in there...
As you can see there is a second nic card in the box (PCI). I have tried using it, tried the sis nic with it in, and with it out. It's staying in now. It's not setup to do anything (and I won't until I get the internet!) eth0 is the built-in (on motherboard) ethernet connection.
Thanks. I really appreicate what you guys are doing for me :cool:
jumpedintothefire
12-03-2002, 01:43 AM
Since you have a second nic in there... try swaping the cables, and use the other nic as a test...
edit /etc/modules.conf
alias eth0 8139too
alias eth1 sis900
Just want to see if we can get some good luck going...
> eth0: Media Link On 100mbps full-duplex
Just can't figure out why it is coming up full duplex....
If the other nic doesn't work....
What does lsmod and cat /proc/interrupts give you??
kiwizrx
12-03-2002, 03:36 AM
Hey guys - I'm here! It's up! Thank you :D :D
edit /etc/modules.conf
alias eth0 8139too
alias eth1 sis900
did it. But I tried that card before with no luck - so something else you two did fixed the main issue. Now to set up DHCP on the sis card...
Side issue; look at the route:
[root@zrx root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.79.116.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default fe7-4-1025-1.be 0.0.0.0 UG 0 0 0 eth0
What's with the default? shouldn't it be 203.79.116.1 ?
[section removed to separate post]
jumpedintothefire
12-03-2002, 08:54 AM
start a new tread and post the config file.
phlipant
12-03-2002, 10:30 PM
default is correct
jumpedintothefire
12-03-2002, 11:09 PM
try route -n to not resolve to the hostnames, shows ip addresses only then...
jumpedintothefire
12-04-2002, 12:28 AM
I found the dos config program for that sis900 on a driver cd. You can set the duplex with it.... if you want it...
kiwizrx
12-04-2002, 04:45 AM
route -n shows it. Ta. Another note!
Thanks guys, really happy now. On the next issue...