Solved

What is wrong with my ifcfg-eth0 file.

Posted on 2009-04-08
3
1,149 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
3 Comments
 
LVL 20

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now