Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting computer online 4

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
0
0
US
I setup /etc/sysconfig/network-scripts/ifcfg-eth0 and can ping other computers inside my subnetmask, but i cant ping anything else. I have entered my nameservers in /etc/resolv.conf

What esle do i need to change to be able to ping computers outside my subnet(computers on the internet)?
 
What's your gateway? How are you connected? Need more info on the method of connection and hardware to the outside.
 
Default gateway is 69.29.93.7 I am plugs in to the switch, i have my windows computer running off the dsl switch ok.
 
"can ping other computers inside my subnetmask, but i cant ping anything else.  I have entered my nameservers in /etc/resolv.conf

What esle do i need to change to be able to ping computers outside my subnet(computers on the internet)?"

That is the duty of your default GW.

/sbin/route add -net <your net> default gw <your default gw>

Have fun
 
Thanks this worked......
/sbin/route add -net <your net> default gw <your default gw>
 
How do i get it so I dont have to type this command each time my machine reboots?

/sbin/route add -net <your net> default gw <your default gw>

I restarted and was only able to ping the gw again
 
Add the following line to /etc/sysconfig/network
Code:
GATEWAY=69.29.93.7
 
help, its still not working, what else could it be.
 
Try this...

echo &quot;/sbin/route add default gw 192.168.1.1&quot; >> /etc/rc.d/rc.local


ChrisP
 
Double check the following files
/etc/sysconfig/network It should look something like this:

NETWORKING=yes
HOSTNAME=linux119
GATEWAY=172.16.1.254

Also check /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
BROADCAST=172.16.1.255
IPADDR=172.16.1.119
NETMASK=255.255.255.0
NETWORK=172.16.1.0
ONBOOT=yes
HOSTNAME=linux119

DOUBLE CHECK ALL YOUR SYNTAX and spelling periods, everthing.
You can also do a &quot;cat -A&quot; (filename) to view all codes,
hard returns etc... on the file.

If you know that all configuration is correct you can set the default route by doing the following (10.1.1.1. gw IP of gateway)
[Example] #10.1.1.1 gw 64.234.23.154

Good luck.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top