LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2010, 04:51 AM   #1
peridian
Member
 
Registered: Jan 2010
Posts: 60

Rep: Reputation: 17
CentOS Networking with Windows 7


Hi,

I have a box at home that I've installed CentOS 5 on to. I'm new to Linux, so before connecting it up to the router I wanted to try and understand the network settings, so I connected it directly to my other PC with an RJ45 cable.

From Windows 7 I can ping all known static IP addresses, but from Linux I can only ping the Linux addresses, not the Windows 7 one.

Below are the TCP/IP IPv4 settings, all IPv6 settings are set to auto-assign.

Windows box (uses wireless connection for the router):
Local Ethernet Adapter
IP Address: 30.10.0.1
Subnet: 255.255.0.0
No gateway, primary/secondary DNS.

Linux box:
Three adapters:
Two onboard LAN, both configured to:
IP Address: 30.10.0.2 / 30.10.0.3
Subnet: 255.255.0.0
Gateway: 30.10.0.1
No primary/secondary DNS.

One LinkSys PCI card:
IP Address: 20.10.0.1
Subnet: 255.255.255.0
Gateway: 192.168.1.1 (my router)
Primary/Secondary DNS: my ISPs details.

The idea was to connect the box directly to the router (with RJ45) and to be able to remote login from my main PC to this one. This box is to be my home server, which I was going to put virtual machines on to for things like my development work and such.

Any help is much appreciated, since this is a learning experience for me.

Regards,
Rob.
 
Old 02-10-2010, 12:20 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
If this is a home environment, and you have a router connecting to your ISP, then the first thing I see is your IP addressing does not make any sense. Sorry to put it that way, but it does not.

Please have a read through this link. --> http://tldp.org/LDP/nag2/x-087-2-iss...addresses.html

Take special note of the the Private IP addresses for Class A, B and C. Any other IP address you should not be using, unless you keep the network completely private, ie no outside connection to the internet.

Home routers do a function called NAT. ( Network Address Translation ). Your side, in your home should use a class A, B or C private address. The side of the router that connect to your ISP will have an IP address controlled by your ISP. NAT on transmit will change the private IP address to the one on the ISP side. On Receive, the process is reversed. All the systems on your side can belong to the same, or different sub-nets, that is your choice.

Look at the doc for your router. It will tell you what IP address rages it will support. A lot of home routers use 192.168.x.y addresses.

If all the systems are in the same sub-net, then you will be able to ping to each one from the other.

Beyond that, I'm not sure what any problems you have are. Post back after you have a look at the link any problems...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
networking in centos (through virtualbox) sycamorex Linux - Wireless Networking 4 09-16-2008 12:55 PM
VM CentOS 5 Networking Issues LinuxCrayon Linux - Networking 2 02-04-2008 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration