Click to See Complete Forum and Search --> : Networking problems


tanzania
12-29-2002, 10:09 PM
I'm totally new to Linux and just installed RedHat 7.3 on my computer. I'm unable to get any Internet connectivity and after much painful investigation, I've uncovered that I don't have a default gateway created. When I use ifconfig to add the gateway, I get the following error message:

SIOCSIFADDR: Permission Denied
add: unknown interface: No such device
gw: Host name lookup failure

Can anyone help? BTW, my NIC card is a Linksys wireless card. I know that the actual network is functional since I have connectivity on my computer running Win2k.

I also tried editing /etc/sysconfig/network-scripts/ifcfg-eth0 and included the following information:

DEVICE='eth0'
BOOTPROTO='none'
BROADCAST='192.168.0.255'
IPADDR='192.168.0.255'
NETMASK='255.255.255.0'
NETWORK=DIDN'T INCLUDE THIS LINE SINCE DIDN'T KNOW ADDRESS
ONBOOT='yes'
GATEWAY='192.168.1.1'
TYPE='Ethernet'
USERCTL='no'


I can ping the broadcast address, but can't ping any internet address. Maybe I have the wrong addresses for some of the entries in this file? Is there a way to check addresses for things like the default gateway? I was just copying settings on my Win2k machine.


Thanks in advance for your help.

rid3r
12-29-2002, 10:16 PM
what your
# dmesg | grep eth0 says?
"permission denied" sounds like you weren't root
also
IPADDR is the same as BROADCAST

tanzania
12-30-2002, 12:08 AM
the dmesg says:

eth0: registered as PCNet/PCI II 79C970A

Changed settings to now read:

DEVICE='eth0'
BOOTPROTO='none'
BROADCAST='192.168.0.255'
IPADDR='192.168.0.128'
NETMASK='255.255.255.0'
NETWORK='192.168.0.0'
ONBOOT='yes'
GATEWAY='192.168.1.1'
TYPE='Ethernet'
USERCTL='no'

Still can't ping any Internet addresses. Thanks for your help!

jumpedintothefire
12-30-2002, 12:17 AM
----quote-----
Can anyone help? BTW, my NIC card is a Linksys wireless card. I know that the actual network is functional since I have connectivity on my computer running Win2k.
---------
That should be wlan0 and not eth0....

Edit /etc/sysconfig/network

GATEWAYDEV="wlan0"

There were a few post about wireless cards and redhat... look around this forum.....

m3rlin
12-30-2002, 04:30 AM
tanzania, if i get this post right(its very early and im sleepy :) )
you have a gateway that is connected to internet, and you have computers connected to that gateway so that the internal computers have internet.

If im correct, you must do this steps for the internal pc's:
Add an ip address
Add the gateway ip address
Add the DNS ip address

if you only put the ip and the gateway, it doen't work, well i use all of those steps, mabye im wrong, but im sure it works :)

alarm7
01-01-2003, 07:08 AM
Originally posted by tanzania
the dmesg says:

eth0: registered as PCNet/PCI II 79C970A

Changed settings to now read:

DEVICE='eth0'
BOOTPROTO='none'
BROADCAST='192.168.0.255'
IPADDR='192.168.0.128'
NETMASK='255.255.255.0'
NETWORK='192.168.0.0'
ONBOOT='yes'
GATEWAY='192.168.1.1'
TYPE='Ethernet'
USERCTL='no'

Still can't ping any Internet addresses. Thanks for your help!
192.168.1.1 can not be the gateway,the gateway must in the network 192.168.0.0,e.g.192.168.0.1