Solved

What is wrong with my ifcfg-eth0 file.

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cisco 5508 controller parsing error 4 55
Linux server had an unexpected freeze. How to find out cause (sys logs)? 13 35
cannot rename datastore 3 44
Nimble Storage 3 63
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.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

816 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

10 Experts available now in Live!

Get 1:1 Help Now