Solved

What is wrong with my ifcfg-eth0 file.

Posted on 2009-04-08
3
1,160 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 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