Solved

What is wrong with my ifcfg-eth0 file.

Posted on 2009-04-08
3
1,162 Views
Last Modified: 2013-12-23
Hi

Problem:

My XP machine can access the internet works fine.
My Linux machine can not.
Can anybody see why?

Network:

1 x XP Machine
1 x Linux Machine (CentOS5.2)
1 x Netgear FVS114 Firewall

XP Ethernet Settings

Address type             Assigned by DHCP
IP Address                  192.168.0.2
Subnet Mask                  255.255.255.0
Default Gateway            192.168.0.1

Linux ifcfg-eth0 file:

# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.100
HWADDR=00:20:18:8A:1F:C3
IPADDR=192.168.0.100
NETMASK=255.255.255.0
NETWORK=192.168.0.1
ONBOOT=yes

Open in new window

0
Comment
Question by:lwfuk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 21

Accepted Solution

by:
tfewster earned 500 total points
ID: 24100934
The NETWORK should be 192.168.0.0, not the router (gateway) address
The BROADCAST address is optional, but I'm pretty sure it shouldn't be the same as the IP address of the system.

The GATEWAY address goes in /etc/sysconfig/network

Make those changes in "ifcfg-eth0" and "network", and run /etc/init.d/network restart

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch03_:_Linux_Networking
0
 
LVL 19

Expert Comment

by:jools
ID: 24105944
I'd just get rid of NETWORK and BROADCAST. to back up tfewsters comment, NETWORK should not be the router address, in your case it should probably be 192.168.0.255 but you may as well just get rid of it.

0
 

Author Closing Comment

by:lwfuk
ID: 31568195
Many Thanks.

Adrian
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question