Subject: 2 networccards, DHCP and the same MAC adr. (i am a neebie) ;-)
To: None <port-sparc@netbsd.org>
From: Maurizio Caloro <mauric@active.ch>
List: port-sparc
Date: 04/28/2003 11:11:04
 Hello Together,

i have 2 networccard installed on my SUN Calssic
and i was where happy with netbsd 1.6, 
i want now Le0 =3D statik adress and Le1 Dhcp.
Now i have installed so fine i can.

/etc/ifconfig.le0 --> inet 192.168.20.222 netmask 0xffffff00
/etc/rc.conf      --> auto_ifconfig=3DYES

then i make a reboot and the le0 take this ip adress. (yehhhh)

the oder card its used for DHCP with this  settings file 
/etc/rc.conf	   --> dhclient=3DYES
/etc/dhclient.conf -->


Send host-name "netbsd";            
                                    
send dhcp-client-identifier "netbsd";         

request subnet-mask, broadcast-address, routers,
    domain-name-servers;

timeout 30;
retry 60;
select-timeout 5;

lease {
  interface "le1";
                  
  option host-name "netbsd";

  option subnet-mask 255.255.255.0;
  option domain-name "caloro.ch";  

  option domain-name-servers 127.0.0.1;
  renew 2 2000/1/12 00:00:01;
  rebind 2 2000/1/12 00:00:01;
  expire 2 2000/1/12 00:00:01;
}

now when i boot up both cards become a adress from the 
dhcp server but i dont want this (ohhh no :-()


 
		-----------
		- 	  -
	   (le1)-   Sun	  -
Internet---------         ----(le0) 192.168.20.222----
	x.x.x.x	- Classic -  			     -	   ----
		-	  -  			     -------  -
		-----------  				   ----

p.s
the standart Apache and Samba its also good for Netbsd 1.6
or i need a diffrent for netbsd compatibilite.

best regards in advance
Maurizio