[CentOS] Bring up Networking in Single User Mode

Wed Oct 7 18:35:41 UTC 2009
Eduardo Grosclaude <eduardo.grosclaude at gmail.com>

On Wed, Oct 7, 2009 at 3:28 PM, ML <mailinglists at mailnewsrss.com> wrote:
> Nate,
>
>> ifconfig ethX IP_ADDRESS netmask NETMASK
>> route add default gw IP_OF_GATEWAY
>
> OK, so I was correct,
>
> I am doing
>
> ifconfig eth0 172.16.254.80 netmask 255.255.255.240
> route add default gw 172.16.254.1
>
> I am getting Network is unreachable.

That's correct. Write down 80, 1 and 240 in binary. With a /28 mask,
your IP address and your gateway are in different subnets.


-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina