Link to home
Start Free TrialLog in
Avatar of zanner
zanner

asked on

redhat 7.2 cannot get internet connectivity

i don't know where to begin to solve this problem.

just installed rh 7.2, cannot get any internet connectivity

ethernet card is recognized

connect to router, dsl line

think has something to do with config files found in etc/sysconfig/networking/, but unsure

maybe something to do with firewall?  how do I configure firewall?

no services work - ping, http, etc

thanks

Avatar of jlevie
jlevie

Are you using a DSL router or a DSL modem?

In the case of a DSL router are you using a static IP on the Linux system or  DHCP? And if DHCP does the ethernet interface get an IP (check with 'ifconfig eth0') and the correct default route (check with 'netstat -nr') and the correct DNS server(s) (check with 'cat /etc/resolv.conf'). The same checks would apply if you are using a static IP assignment.

In the case of a DSL modem the choices would be a static IP config, DHCP, or PPPoE. Without knowing which your provider requires it's hard to be of much help.

If you can provide more details about the configuration we should be able to help.
Avatar of zanner

ASKER

dsl modem with a router

the router assigns a static ip address, how do I check if RH is configured to use dhcp or static?
The router could only assign IP's via DHCP. The IP's it hands out could be dynamic or fixed (based on the MAC of the client). True static IP's are purely configured on the client and the router wouldn't have anything to do with them. You can tell what the RedHat box is set up for by running redhat-config-network.
Hi,

   Do you have any other Windows PC? If yes, then can your Windows PC connect to internet?
If your Windows can connect to internet (assume your Windows PC connect to the router), then problem is on your RH 7.2 box.

   Do "ifconfig -a" to see if the "eth0" interface is up or not.
If you don't see "eth0", then your NIC card driver didn't setup right. Go to the NIC card website to download the Linux driver and follow the instruction to set up the driver.
If you see eth0, then check the whether "UP" shows up after "eth0". If not, please do "ifconfig eht0 up" or "ifup eth0".

  Do "cat /etc/resolv.conf" will tell you your RH use DHCP or not. However, for the further network setting, /usr/bin/redhat-config-network can
give you a GUI for easily setup. If your Xwindows is not up, "netconfig" is the text mode network setting utility.

Good luck

Wesly
Avatar of zanner

ASKER

machine also running win2000 that has connectivity through the router

eth0 is recognized but is not up.  running ifup eth0 fails to determine ip information

using dhcp
The problem is on the eth0
Please use /usr/bin/redhat-config-network to configure your NIC again (save and apply the change)
then restart the network ( # service network restart).
Then run "ipconfig eth0" to see the eht0 is up or not.

If not, it may be the NIC driver issue. It might need to installed the driver.

Wesly

What NIC is in the machine (make/model)?

With some machines it helps to set the system BIOS to disable PnP mode, if you have that option.
NIC is Network Interface C? which is your network card.
Specially for gigabit network card, Linux doesn't have the driver built-in, in other word, not PnP.
As for RH7.2, which is quite old version of RedHat Linux, may not has the driver in the kernel.
In this case, you need to install the driver which download from the vendor's website.

The PnP application of RH 7.2 is called kudzu. You can run it as root manually and it is running at boot-up by default.

Wesly
Avatar of zanner

ASKER

i rpm'ed the kernel-source-2.4.7-10.i386.rpm off the redhat cd.

it has drivers for my card (sis900).

i loaded the module, still nothing.  

really need this up and running, please help

i increased point value for motivation :)
Could you provide the information of the following:
output of "ifconfig -a"
output of "/sbin/lsmod"

Wesly
Avatar of zanner

ASKER

lsmod

binfit_misc          1
autofs                0  autoclean [unused]
ipchains              0
printer               0  [unused]
usb_ohci            0 [unused]
usbcore              1
sis900                0
ext3                   2
jbd                     2

ifconfig

eth0

link encap: ethernet hwaddr 00:07:95:45:9A:49
broadcast   mtu:1500  metric:1
rx packets:1 errors:0 dropped: 0 overruns: 0 frame
tx packets:1 errors:0 dropped: 0 overruns: 0 carrier
collisions :0 txqueuelen:100
rx bytes: 86 (86.0 b) tx bytes: 0 (0.0 b)
interrupt 11  base addr 0xd00

lo

link encap: local loopback
inter addr 127.0.0.1 mask 255.0.0.0
up loopback running  mtu:16436 metric:1
rx packets:72 errors:0 dropped: 0 overruns: 0 frame
tx packets:72 errors:0 dropped: 0 overruns: 0 carrier
collisions :0 txqueuelen:100
rx bytes: 5060  (4.9  kb) tx bytes: 5060  (4.9  kb)interrupt 11  base addr 0xd00


Can you issue the following command as root:
# ifconfig eth0 <IP address you want> up

And tell me the output of result. If no result, run "ifconfig -a" again and the result.

Wesly
Avatar of zanner

ASKER

eth0

link encap: ethernet hwaddr 00:07:95:45:9A:49
inet addr 192.168.0.4 bcast 192.168.0.255 mask 255.255.255.0
rx packets:1 errors:0 dropped: 0 overruns: 0 frame
tx packets:0 errors:0 dropped: 0 overruns: 0 carrier
collisions :0 txqueuelen:100
rx bytes: 86 (86.0 b) tx bytes: 0 (0.0 b)
interrupt 11  base addr 0xd00

lo

link encap: local loopback
inter addr 127.0.0.1 mask 255.0.0.0
up loopback running  mtu:16436 metric:1
rx packets:72 errors:0 dropped: 0 overruns: 0 frame
tx packets:72 errors:0 dropped: 0 overruns: 0 carrier
collisions :0 txqueuelen:100
rx bytes: 5060  (4.9  kb) tx bytes: 5060  (4.9  kb)
Mmm, the eth0 is still not up. Any related error messages in /var/log/messages?
By the way, you can edit /etc/sysconfig/network-scripts/ifcfg-eth0 to assign the IP to eth0 so the IP address will assign to eth0 when system boot-up.
Did you try to use /usr/bin/redhat-config-network to config your network setting?

Wesly
ASKER CERTIFIED SOLUTION
Avatar of OzzMod
OzzMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial