NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/47699: dhpcd incompatibility problems.



The following reply was made to PR bin/47699; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/47699: dhpcd incompatibility problems.
Date: Wed, 27 Mar 2013 15:36:47 -0400

 On Mar 27,  3:05pm, gnats-admin%netbsd.org@localhost 
(gnats-admin%netbsd.org@localhost) wrote:
 -- Subject: Re: bin/47699: dhpcd incompatibility problems.
 
 
 Bring the interface up with wpa_supplicant(8):
 ------------------------------------------------------------------------
 0 root:wheel/~# ifconfig iwn0
 iwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
         ssid localnet-2.4G
         powersave off
         address: xx:yy:zz:yy:xx:yy
         media: IEEE802.11 autoselect (autoselect mode 11g)
         status: no network
         inet6 fe80::xxxx:xxxx:xxxx:xxxx%iwn0 prefixlen 64 scopeid 0x2
 0 root:wheel/~# route show
 Routing tables
 
 Internet:
 Destination        Gateway            Flags 
 localhost          127.0.0.1          UH     
 
 Internet6:
 Destination        Gateway            Flags 
 localhost          localhost          UH     
 fe80::%iwn0        link#2             U      
 fe80::%lo0         fe80::1%lo0        U      
 ff01:2::           link#2             U      
 ff01:3::           localhost          U      
 ff02::%iwn0        link#2             U      
 ff02::%lo0         localhost          U      
 0 root:wheel/~# wpa_supplicant -B -c 
/etc/etc.current/wpa_conf.localnet/wpa_supplicant.conf -i iwn0
 0 root:wheel/~# ifconfig iwn0
 iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         ssid localnet-2.4G nwkey *****
         powersave off
         bssid 30:46:9a:01:ec:18 chan 11
         address: xx:yy:zz:yy:xx:yy
         media: IEEE802.11 autoselect (DS1 mode 11g)
         status: active
         inet6 fe80::xxxx:xxxx:xxxx:xxxx%iwn0 prefixlen 64 scopeid 0x2
 0 root:wheel/~# route show
 Routing tables
 
 Internet:
 Destination        Gateway            Flags 
 localhost          127.0.0.1          UH     
 
 Internet6:
 Destination        Gateway            Flags 
 localhost          localhost          UH     
 fe80::%iwn0        link#2             U      
 fe80::%lo0         fe80::1%lo0        U      
 ff01:2::           link#2             U      
 ff01:3::           localhost          U      
 ff02::%iwn0        link#2             U      
 ff02::%lo0         localhost          U      
 ------------------------------------------------------------------------
 
 Now configure it with ifconfig(8):
 ------------------------------------------------------------------------
 0 root:wheel/~# ifconfig iwn0 10.0.0.8 0xffffff80
 0 root:wheel/~# ifconfig iwn0
 iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         ssid localnet-2.4G nwkey *****
         powersave off
         bssid 30:46:9a:01:ec:18 chan 11
         address: xx:yy:zz:yy:xx:yy
         media: IEEE802.11 autoselect (DS1 mode 11g)
         status: active
         inet 10.0.0.8 netmask 0xffffff80 broadcast 10.0.0.127
         inet6 fe80::xxxx:xxxx:xxxx:xxxx%iwn0 prefixlen 64 scopeid 0x2
 0 root:wheel/~# route show
 Routing tables
 
 Internet:
 Destination        Gateway            Flags 
 10.0.0.0/25        link#2             U      
 localhost          127.0.0.1          UH     
 
 Internet6:
 Destination        Gateway            Flags 
 localhost          localhost          UH     
 fe80::%iwn0        link#2             U      
 fe80::%lo0         fe80::1%lo0        U      
 ff01:2::           link#2             U      
 ff01:3::           localhost          U      
 ff02::%iwn0        link#2             U      
 ff02::%lo0         localhost          U      
 0 root:wheel/~# ifconfig iwn0 delete
 0 root:wheel/~# ifconfig iwn0
 iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         ssid localnet-2.4G nwkey *****
         powersave off
         bssid 30:46:9a:01:ec:18 chan 11
         address: xx:yy:zz:yy:xx:yy
         media: IEEE802.11 autoselect (DS1 mode 11g)
         status: active
         inet6 fe80::xxxx:xxxx:xxxx:xxxx%iwn0 prefixlen 64 scopeid 0x2
 0 root:wheel/~# route show
 Routing tables
 
 Internet:
 Destination        Gateway            Flags 
 localhost          127.0.0.1          UH     
 
 Internet6:
 Destination        Gateway            Flags 
 localhost          localhost          UH     
 fe80::%iwn0        link#2             U      
 fe80::%lo0         fe80::1%lo0        U      
 ff01:2::           link#2             U      
 ff01:3::           localhost          U      
 ff02::%iwn0        link#2             U      
 ff02::%lo0         localhost          U      
 ------------------------------------------------------------------------
 
 Now configure with dhcpcd(8):
 ------------------------------------------------------------------------
 0 root:wheel/~# dhcpcd iwn0
 dhcpcd[3866]: version 5.6.7 starting
 dhcpcd[3866]: iwn0: sending IPv6 Router Solicitation
 dhcpcd[3866]: iwn0: rebinding lease of 10.0.0.8
 dhcpcd[3866]: iwn0: acknowledged 10.0.0.8 from 10.0.0.124
 dhcpcd[3866]: iwn0: checking for 10.0.0.8
 dhcpcd[3866]: iwn0: sending IPv6 Router Solicitation
 dhcpcd[3866]: iwn0: leased 10.0.0.8 for 43200 seconds
 dhcpcd[3866]: forked to background, child pid 3700
 0 root:wheel/~# ifconfig iwn0
 iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         ssid localnet-2.4G nwkey *****
         powersave off
         bssid 30:46:9a:01:ec:18 chan 11
         address: xx:yy:zz:yy:xx:yy
         media: IEEE802.11 autoselect (DS2 mode 11g)
         status: active
         inet 10.0.0.8 netmask 0xffffff80 broadcast 10.0.0.127
         inet6 fe80::xxxx:xxxx:xxxx:xxxx%iwn0 prefixlen 64 scopeid 0x2
 0 root:wheel/~# route show
 Routing tables
 
 Internet:
 Destination        Gateway            Flags 
 default            10.0.0.124         UG     
 10.0.0.0/25        link#2             U      
 netgear            link#2             UHL    
 localhost          127.0.0.1          UH     
 
 Internet6:
 Destination        Gateway            Flags 
 localhost          localhost          UH     
 fe80::%iwn0        link#2             U      
 fe80::%lo0         fe80::1%lo0        U      
 ff01:2::           link#2             U      
 ff01:3::           localhost          U      
 ff02::%iwn0        link#2             U      
 ff02::%lo0         localhost          U      
 0 root:wheel/~# pkill -fl dhcpcd
 3700 dhcpcd iwn0
 0 root:wheel/~# ifconfig iwn0
 iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         ssid localnet-2.4G nwkey *****
         powersave off
         bssid 30:46:9a:01:ec:18 chan 11
         address: xx:yy:zz:yy:xx:yy
         media: IEEE802.11 autoselect (DS2 mode 11g)
         status: active
         inet6 fe80::xxxx:xxxx:xxxx:xxxx%iwn0 prefixlen 64 scopeid 0x2
 0 root:wheel/~# route show
 Routing tables
 
 Internet:
 Destination        Gateway            Flags 
 10.0.0.0/25        link#2             U      
 netgear            link#2             UHL    
 localhost          127.0.0.1          UH     
 
 Internet6:
 Destination        Gateway            Flags 
 localhost          localhost          UH     
 fe80::%iwn0        link#2             U      
 fe80::%lo0         fe80::1%lo0        U      
 ff01:2::           link#2             U      
 ff01:3::           localhost          U      
 ff02::%iwn0        link#2             U      
 ff02::%lo0         localhost          U      
 ------------------------------------------------------------------------
 
 Now, perhaps one shouldn't stop dhcpcd(8) with a SIGTERM, but it still
 should DTRT if you do.
 


Home | Main Index | Thread Index | Old Index