[PLUG] Network snag

Derek Loree derek at infotects.com
Fri Aug 23 17:54:53 UTC 2002


On Fri, 2002-08-23 at 11:29, stuart mathews wrote:
> I apparantly forgot how to get a Linux box to connect to the Internet, am seeking
> counsel to get my box back online.
> 
> I reinstalled Red Hat 7.2, and now can't reach the Internet (not a HUGE shock!).
> 
> 
> I can successfully ping 127.0.0.0.1 but attempts to ping my default gw or even
> "localhost" generates a "Network is unreachable" message.
> 
> I am pretty sure I have /etc/hosts and resolv.conf set correctly.
> 
> This file currently looks like  /etc/sysconfig/network:
> 
> NETWORKING=yes
> HOSTNAME=(my hostname...)
> GATEWAY=(my ISP's default gw here...)
> 
> 
> And /etc/sysconfig/network-scripts
> 
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=(my IP address here...)
> NETMASK=255.255.255.0
> GATEWAY=(my ISP's default gw here...)
> BROADCAST=(not 100% certain what this should look like)
> NETWORK=(should this be my default gw with a .255 at the end?)

No, the network is the very start of the address block, not the end. 
With a netmask of 255.255.255.0 the last part of your network should be
a .0 (But, where should I put the period to end the sentence?).  

The Broadcast is the very end of the address block, in this case, it
will be your ip address with .255 on the end.  (Your gateway address
must have the first three parts the same as your ip address.)

HTH

Derek





More information about the PLUG mailing list