Subject: Cannot connect or ping to my router
To: None <netbsd-help@netbsd.org>
From: Carsten Laux <carstenlaux@online.de>
List: netbsd-help
Date: 02/01/2005 18:19:18
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.

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. 

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

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

Regards

Carsten