You need to add a default gateway. What does `route` show? If you don't have a default gateway, use linuxconf/webmin, or add an entry in /etc/sysconfig/network:
GATEWAY=1.2.3.4 (your gateway address) GATEWAYDEV=eth0 (your gateway device) Forrest > hi, > I have a question for network. I have Dell dimention comes > with 3c905C netcard. I can ping the gateway. but not able to > ping outside world. > is there anyone know how to do it? > Thanks. > > xing > > -----Original Message----- > From: "Gene Kartavtsev" <[EMAIL PROTECTED]> > Date: Thu, 8 Nov 2001 23:10:46 -0500 > To: <[EMAIL PROTECTED]> > Subject: RE: Network connection problems > > > > I believe it's your firewall setting... You will need to do > masquerading > > not really complicated though all you need, just get to > your ipchains > > file in /etc/sysconfig/ directory then edit the file as > following just > > use your ports that you want to enable or disable > > > > > > # Firewall configuration written by lokkit > > # Manual customization of this file is not recommended. > > # Note: ifup-post will punch the current nameservers through the > > # firewall; such entries will *not* be listed here. > > :input ACCEPT > > :forward ACCEPT > > :output ACCEPT > > -A input -s 0/0 -d 0/0 22 -p tcp -y -j ACCEPT > > -A input -s 0/0 -d 0/0 23 -p tcp -y -j ACCEPT > > -A input -s 0/0 -d 0/0 25 -p tcp -y -j ACCEPT > > -A input -s 0/0 -d 0/0 80 -p tcp -y -j ACCEPT > > -A input -s 0/0 -d 0/0 21 -p tcp -y -j ACCEPT > > -A input -s 0/0 -d 0/0 554 -p tcp -y -j ACCEPT > > -A input -s 0/0 -d 0/0 8080 -p tcp -y -j ACCEPT > > -A input -s 0/0 -d 0/0 -i lo -j ACCEPT > > -A input -s 0/0 -d 0/0 -i eth0 -j ACCEPT > > -A input -s 0/0 -d 0/0 -i eth1 -j ACCEPT > > -A input -s 160.79.54.10 53 -d 0/0 -p udp -j ACCEPT > > -A input -s 160.79.2.2 53 -d 0/0 -p udp -j ACCEPT > > -A input -s 0/0 -d 0/0 -p tcp -y -j REJECT > > -A input -s 0/0 -d 0/0 -p udp -j REJECT > > > > Masquarading is here: > > > > -P forward DENY > > -A forward -i eth1 -j MASQ > > > > > > For port list see attach > > > > > > Regards, gene > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]] On Behalf Of Willy T > > Sent: Thursday, November 08, 2001 2:54 PM > > To: [EMAIL PROTECTED] > > Subject: Network connection problems > > > > > > Okay, I've searched the logs for a case like this but have > been unable > > to > > come > > up with a solution, so here goes: > > > > I have a network of three machines and a switch. The server > machine is a > > Dell P4 running a full install of RH 7.1, and the two > workers are Dell > > P3s, > > also running full installs of RH 7.1. The switch is a 3COM 24-port > > SuperStack 3, > > model number 3C1698OA. The server has to ethernet cards, > one attached to > > the outside world and given a static, real IP address, and the other > > given > > a static but internal-use-only IP address of 198.162.100.1, and that > > card > > connects to the switch. The switch has IP 198.162.100.2, and the two > > workers > > are 198.162.100.3 and .4, respectively. > > > > Worker > > Worker > > 192.168.100.3 > > 192.168.100.4 > > * > > * > > * > > * > > ********** Switch *********************** > > 192.168.100.2 > > * > > * > > * > > Server > > 192.168.100.1 (Card #1) > > XXX.XXX.XXX.X (Card #2, Real IP address) > > * > > * > > * > > Rest of the world > > > > I have enabled telnet and ftp on all three machines, and all three > > machines > > can telnet or ftp to themselves. In addition, netstat -at > says that all > > three > > machines have telnet, ftp, and ssh on LISTEN, and all three > machines are > > running xinetd. Finally, The workers can telnet to the server, the > > server > > can > > telnet to the outside world, and any machine on the network > can ping any > > other > > machine successfully. So, why do the worker machines *not* > accept any > > incoming > > connections (ssh, ftp, telnet, http) from any machine? To summarize: > > > > worker telnet server : OK > > server telnet world : OK > > any ping any : OK > > any telnet worker : "Connection Refused" error. > > NOte that it is not a no route to host or destination > unreachable, but > > a connection refused. The switch shows traffic on both > machines ports > > when > > a connection is tried, and ping gets a response, so the physical > > connections > > are there. What have I done wrong that nobody can reach the workers? > > (The tcp_wrappers, hosts.deny and hosts.allow, are empty on > the workers, > > and it did not work when I specifically named the server in > those files > > either) > > THe workers are setup to use the 198.162.100.1 card on the > server as a > > router > > and nameserver, and it does not matter whether telnet/ftp/ssh is > > attempted > > by name or number, it still yields connection refused. What > have I done > > wrong??? Oh, and BTW, all of the machines have allow all > firewall rules. > > > > Just a wee bit frustrated, > > > > William Hooper > > > > > > > > > > > > _______________________________________________ > > Seawolf-list mailing list > > [EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/seawolf-list > > > > -- > > _______________________________________________ > 1 cent a minute calls anywhere in the U.S.! > > http://www.net2phone.com/cgi-bin/link.cgi?170 > > > > > _______________________________________________ > Seawolf-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/seawolf-list > _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list