Subject: Re: Cannot connect or ping to my router
To: None <netbsd-help@netbsd.org>
From: Roberto <roberto.trovo@redix.it>
List: netbsd-help
Date: 02/02/2005 09:50:48
Now I'm not using DHCP, but anyway...

> Hi,
>
> I installed and configured a NetBSD 2.0 Router. The Router has two Realtek
> 8129/8139 Network cards and he should assign IP-Addresses via DHCP. My
> problem is,
> that my Clients don´t get a IP-Address from him. When I try to ping the
> router, I have
> 100% packet loss.
>
> The Internet connection via Kernel PPPoE is working properly. I
> configured the second Network Card as the Internal Interface.
> I´ve created the file /etc/ifconfig.rtk1.
> Config example: inet 192.168.1.10 netmask 255.255.255.0 media autoselect
> After booting the Network card comes up and is recognized properly and
> marked as active.
>

mmhh, let me say that if you use 192.168.1.10 netmask 255.255.255.0
then your clients have a different subnet: subnet 192.168.0.0 netmask
255.255.255.0; they cannot ping directly the router.
But maybe it is only an example: you would say that your router is:
  Config example: inet 192.168.0.1 netmask 255.255.255.0
isn't it ?

> For DHCP I used the following configuration:
>
> # Setting DHCPD global parameters
> allow unknown-clients;
>
> # Set parameters for the 192.168.0.0/24 subnet.
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range 192.168.0.2 192.168.0.8;
> default-lease-time 604800;
> max-lease-time 604800;
> option subnet-mask 255.255.255.0;
> option domain-name-servers 1.2.3.4, 1.2.3.5;
> option domain-name "your.domain.name";
> option routers 192.168.0.1;
>
> }
> I used exactly the same example from the FAQ´s. (Of course I have modified
> it with my datas)
> DHCPD is enabled in the /etc/rc.config. DHCPD_flags are set with
> rtk1.(Internal Device)
>
> My first guess was that the rtk1 NIC is defect. But she´s not. I tested
> the card in a other PC and she was working properly.
>

Please try to ping the router with a statically (manually) assigned
client: if this work then the NICs (client and server) are OK;

> Probably it is important to mention that I use PF as loadable Kernel
> module. But anyway I should be able to ping the router.
>

Then please disconnect the router from Internet and disable any packet
filtering on the router;

Then try again the DHCPD, but start it manually in a shell: for example
start it in foreground (-f) and in debug/verbose mode (-d);
then look at the messages: maybe one of them can suggest where is the
problem.


> I´m grateful for any help. If necessary, I will provide configuration
> files or further details.
>
> Regards
>
> Carsten
>
>

Regards,
Roberto


e-mail roberto.trovo [at] redix.it