LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-08-2005, 03:48 PM   #1
pengy666
Member
 
Registered: Apr 2004
Location: somerset,england
Distribution: KATONIX !!!
Posts: 48

Rep: Reputation: 15
redhat network working but no internet thru router


Ok so i been here for a bit asking questions about suse network problems but i couldnt fix it so i migrated to redhat (im imoressed with it), ive even followed simple tutorials thru this forum to get my network setup! i have had a bit of experience with networks before but i just cant seem to get connected to anything!

ok so i got this setup

adsl
|
modem/router
|
~~~
| |
pc1 pc2



ok so pc1 is my dual boot linux redhat win2k box with wireless ethernet card and ethernet card connected to router! no probs under win2k

pc2 is just a native win2k box (no booing and hissing please...lol)

so all the windows stuff is fine but i just cant get nothing under redhat

i have tried automatic setup with dhcp like the router prefers but this just gives linux greif eth0 just will not start up

so i set it static even included gateway address of router and primary and secondary dns address but nothing but eth0 is active, yet i still cant ping anything! i just get host unreachable yet when i check pc2's firewall log it says it had a tcp/ip ping from my linux box's address yet if i turn off firewall on pc2 i still get host unreachable, would that be becuase its going thru router??

so what is going on you think redhat network config is saying eth0 is active and in mozilla the icon at bottom right says online?? plus i cant even access the built in remote access of router! i've even added my ip for pc1 remotley from pc2 into the allowed ip address and set it so you can ping router and access it thru http??

it must be something simple but i just cant see what it is!!!

thanks in advance!

robin

Last edited by pengy666; 05-08-2005 at 04:11 PM.
 
Old 05-08-2005, 04:49 PM   #2
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
Outputs

well some outputs maybe helpful here, like
`ifconfig eth0 `
`cat /etc/sysconfig/network-scripts/ifcfg-eth0`
`lsmod`
`route -n`
`iptables -L`

that will be a nice start
 
Old 05-09-2005, 08:35 AM   #3
pengy666
Member
 
Registered: Apr 2004
Location: somerset,england
Distribution: KATONIX !!!
Posts: 48

Original Poster
Rep: Reputation: 15
ok thanks for your response .sorry i didnt post before i just got a bit sick of rebooting into windows and i cant find windows dir. in redhat ?? oh well least of my problems at minute (like no 3d enabled) all comes in time tho lol


well here are the things that give a bit more info

[root@localhost root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr FF:FF:FF:FF:FF:FF
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:420 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:17640 (17.2 Kb)
Interrupt:10 Base address:0xd800

[root@localhost root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
IPADDR=192.168.1.2
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
NETWORK=192.168.1.255
BROADCAST=192.168.1.255
HWADDR=ff:ff:ff:ff:ff:ff

[root@localhost root]# lsmod
Module Size Used by Not tainted
emu10k1 68136 1 (autoclean)
ac97_codec 13544 0 (autoclean) [emu10k1]
sound 73108 0 (autoclean) [emu10k1]
soundcore 6276 7 (autoclean) [emu10k1 sound]
parport_pc 18756 1 (autoclean)
lp 8868 0 (autoclean)
parport 36480 1 (autoclean) [parport_pc lp]
autofs 12948 0 (autoclean) (unused)
sis900 16524 1
ipt_REJECT 3896 6 (autoclean)
iptable_filter 2380 1 (autoclean)
ip_tables 14648 2 [ipt_REJECT iptable_filter]
sg 35980 0 (autoclean)
sr_mod 17912 0 (autoclean)
ide-scsi 11984 0
scsi_mod 106200 3 [sg sr_mod ide-scsi]
ide-cd 35196 0
cdrom 33472 0 [sr_mod ide-cd]
keybdev 2880 0 (unused)
mousedev 5428 2
hid 21700 0 (unused)
input 5792 0 [keybdev mousedev hid]
ehci-hcd 19592 0 (unused)
usb-ohci 21160 0 (unused)
usbcore 77696 1 [hid ehci-hcd usb-ohci]
ext3 69984 2
jbd 51220 2 [ext3]

[root@localhost root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT udp -- 194.72.9.34 anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- 194.74.65.68 anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
[root@localhost root]#


its odd that the ethernet module doesnt seem loaded is this my main problem?
and is it odd that my tcp stuff is under target "reject" or is that because my sis900 ethernet module isnt loaded???
well like i said i aint no expert im just on the very bottom rung of the ladder of linux knowledge thats why i asking for you guys to help!!
thanks in advance
robin
 
Old 05-09-2005, 09:45 AM   #4
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
run this command to clear the iptables rules
`iptables -F`
then provide us with the output when you are trying to ping
 
Old 05-09-2005, 12:32 PM   #5
pengy666
Member
 
Registered: Apr 2004
Location: somerset,england
Distribution: KATONIX !!!
Posts: 48

Original Poster
Rep: Reputation: 15
ok so thanks again ! well i cleared ip tables but i changed ip of eth0 too it just seemed a good idea as router was .1 , so i went to .4 as my two windows machine are .2 and .3

well still no joy i tried pinging other win2k box but no joy i even ensured firewall was switched off briefly while i did it still 'host unreachable'

here is an update on system stuff again see if i buggered it

well lsmod is showing module for sis 900 is up now???

iptable_filter 2380 0 (autoclean) (unused)
ip_tables 14648 1 [iptable_filter]
sis900 16524 1 (autoclean)
emu10k1 68136 0 (autoclean)
ac97_codec 13544 0 (autoclean) [emu10k1]
sound 73108 0 (autoclean) [emu10k1]
soundcore 6276 7 (autoclean) [emu10k1 sound]
parport_pc 18756 1 (autoclean)
lp 8868 0 (autoclean)
parport 36480 1 (autoclean) [parport_pc lp]
nfsd 79024 8 (autoclean)
lockd 57680 1 (autoclean) [nfsd]
sunrpc 80412 1 (autoclean) [nfsd lockd]
autofs 12948 0 (autoclean) (unused)
sg 35980 0 (autoclean)
sr_mod 17912 0 (autoclean)
ide-scsi 11984 0
scsi_mod 106200 3 [sg sr_mod ide-scsi]
ide-cd 35196 0
cdrom 33472 0 [sr_mod ide-cd]
keybdev 2880 0 (unused)
mousedev 5428 2
hid 21700 0 (unused)
input 5792 0 [keybdev mousedev hid]
ehci-hcd 19592 0 (unused)
usb-ohci 21160 0 (unused)
usbcore 77696 1 [hid ehci-hcd usb-ohci]
ext3 69984 2
jbd 51220 2 [ext3]

[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

USERCTL=no
PEERDNS=yes
GATEWAY=192.168.1.1
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
ONBOOT=yes
IPADDR=192.168.1.4
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
DHCP_HOSTNAME=home

but now i got i_filter and ip_tables in lsmod?

still no internet i even plugged into slot 2 on router/modem?
 
Old 05-09-2005, 09:12 PM   #6
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
is normal for the iptables module to be running and it looks like your card is fine,
just changed the settings in the /etc/sysconfig/network-scripts/ifcfg-eth0 to
something a bit more simple like this

GATEWAY=192.168.1.1
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
onBOOT=yes
IPADDR=192.168.1.4
NETWORK=192.168.1.0
BROADCAST=192.168.1.255

and then just restart the network with `/etc/init.d/network restart`

and then just show us what you get when you try to ping
 
Old 05-10-2005, 08:16 AM   #7
pengy666
Member
 
Registered: Apr 2004
Location: somerset,england
Distribution: KATONIX !!!
Posts: 48

Original Poster
Rep: Reputation: 15
thank you for your input i really aprreciate your help ! will do that to config file and get back to you ! thanks again
 
  


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
Network connection to win xp and netgear router working but slowly yalpuk Linux - Networking 3 12-26-2004 06:06 PM
Internet access trough D-Link router 504T not working (kernel 2.6?) darkangel12613 Linux - Networking 0 07-20-2004 08:32 AM
no internet connection on redhat 8.0 router rioguia Linux - Networking 7 01-03-2003 01:56 AM
RedHat 6.0 - no network/internet connectivity with Linksys 4-Port Cable/DSL Router AnthraxAssassin Linux - Networking 1 11-19-2002 04:57 AM
I can not browse the internet using linksys router and redhat 7.3 hugosoto Linux - Networking 1 05-24-2002 07:17 PM


All times are GMT -5. The time now is 02:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration