Find the answer to your Linux question:
Results 1 to 5 of 5
Just a quick question I have a linux box with an ip 192.168.158.128 and my two xp computers with ips 192.168.0.100 and 192.168.0.101 , My question is are all ip's ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2003
    Posts
    9

    Subnets


    Just a quick question I have a linux box with an ip 192.168.158.128 and my two xp computers with ips 192.168.0.100 and 192.168.0.101 , My question is are all ip's in one subnet?

    The reason I ask is because the 192.168.0.101 is not able to ping the linux box and when I run tcpdump its not picking it up, but when I use 192.168.0.100 it is able to ping the linux box.

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    With my lack of knowledge in networking, I don' t know how much help I can be but I'll do my best. I'm assuming that all your pc's have subnet 255.255.255.0. This means that the network address (which can be compared to like an area code) is all the same. For example, I believe your two XP pc's network address is 192.168.0.x. The 'x' is like the phone number and hence you have 100 and 101 as the address. The Linux box you have is on a different network since it's network address is 192.168.158.x. Subnet really just states how many octets define your network adress.
    As for pinging either way, it should work as long as you have a bridge connecting these two networks.
    The best things in life are free.

  3. #3
    Linux Newbie
    Join Date
    Aug 2003
    Posts
    113

    Re: Subnets

    Quote Originally Posted by wuzzzup6
    Just a quick question I have a linux box with an ip 192.168.158.128 and my two xp computers with ips 192.168.0.100 and 192.168.0.101 , My question is are all ip's in one subnet?

    The reason I ask is because the 192.168.0.101 is not able to ping the linux box and when I run tcpdump its not picking it up, but when I use 192.168.0.100 it is able to ping the linux box.
    If you still needed help on this can you give us a better idea of your network setup.

    I.E..

    What are the broadcast addresses and default gateways of the the Xp machines.

    From a command prompt what does a "route print" show?

    On the linux box what does a "ifconfig" command show from the command line as well as a "route" command?

    Does the linux box have more than one network card? Is the linux box acting as a gateway to the internet for the xp machines?

    How are all of these machines connected. Via a switch, hub, router...? Just trying to get a better idea to help you out.

    The Xp machines would appear to be on a different subnetwork but I can't say without the routing info on all machines.
    JB

  4. #4
    Just Joined!
    Join Date
    Sep 2003
    Posts
    5

    Subnets

    I would try giving the linux box an IP of say 192.168.0.128.

  5. #5
    Linux Engineer
    Join Date
    Dec 2002
    Location
    New Zealand
    Posts
    766
    u coudl always chaneg ur netmask from 255.255.255.0 to 255.255.0.0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •