network troubles

Discussion in 'Installation/Configuration' started by commentator, Aug 23, 2012.

  1. commentator

    commentator Member

    Hi,

    Setting up a new network.
    dhcp
    Code:
    subnet 10.0.0.0 netmask 255.255.240.0 {
    interface eth1;
    option broadcast-address 10.0.15.255;
    option subnet-mask 255.255.240.0;
    option routers 10.0.0.1;
    option domain-name-servers 10.0.0.1;
    default-lease-time 900;
    max-lease-time 7200;
    range 10.0.0.51 10.0.0.59;
    range 10.0.0.61 10.0.0.189;
    range 10.0.0.191 10.0.0.199;
    range 10.0.0.201 10.0.1.59;
    range 10.0.15.191 10.0.15.254;
    }
    
    clients getting an ip.
    It works ok when they receive an 10.0.0.x address. When they receive for example an 10.0.1.x address the pc can't go to internet.

    Can you tell me how to solve this problem?

    ....
     
  2. Mark_NL

    Mark_NL Member

    When the device has a 10.0.1.x address, can you ICMP ping 10.0.0.1 with it?
    (check with tcpdump if ICMP ping reaches the router)

    Does your router have the correct netmask settings? The settings of the dhcp server seem correct, maybe you mistyped something on the router?

    If you can ICMP ping the router, maybe you've firewalled some stuff?
     
  3. commentator

    commentator Member

    hi,

    thanks for your reply.
    I cannot ping from 10.0.1.x address. No firewall active yet ...
     
  4. Mark_NL

    Mark_NL Member

    Ok, but do you see any incoming packets at all with tcpdump ?
     
  5. commentator

    commentator Member

    gateway/router is same machine as dhcpserver (for test @the moment)
     
  6. commentator

    commentator Member

    problem found:
    no route on router for the network.
    solved it for now wit:
    Code:
    route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.0.1
    how to add this automatically?
     
  7. Mark_NL

    Mark_NL Member

    That should actually be:
    Code:
    route add -net 10.0.0.0 netmask 255.255.240.0 gw 10.0.0.1
    that should tell the router "ok, everything in the range 10.0.0.0/20 (10.0.0.1 up to 10.0.15.254) should be send to 10.0.0.1"

    If you have your network settings correctly setup on your router, this route should already be there.

    see: route -n
     
  8. commentator

    commentator Member

    problem was typo in networkconfig
     

Share This Page