Configuring IP for USB network device

Carmel carmel_ny at hotmail.com
Tue May 4 22:22:13 UTC 2010


I am undoubtedly doing something very wrong here. I downloaded a driver
for a Ralink2870 chip and installed it. Seems to work fine.

I placed this in my '/etc/rc.conf' file:

### Wireless ###
wlans_rt28700="wlan0"
ifconfig_wlan0="DHCP WPA"

This was all ready there:

ifconfig_nfe0="DHCP"

-----------------------------------------------------------------------

From the /etc/wpa_supplicant.conf file:

# allow frontend (e.g., wpa_cli) to be used by all users in 'wheel'
group
	ctrl_interface=/var/run/wpa_supplicant
	ctrl_interface_group=wheel

#      # home network; allow all valid ciphers
network={
	ssid="MyNET"
	#psk="SECRET"
	psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	key_mgmt=WPA-PSK
}

----------------------------------------------------------------------

Now, when I insert the USB Network adapter and run "ifconfig", this is
the output:

fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:00:0a:65:1e:1b
	ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	lladdr 0.0.a.e6.ff.65.1e.1b.a.2.ff.fe.0.0.0.0
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500 options=8<VLAN_MTU>
	ether 00:19:21:5d:34:de
	inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
	inet6 ::1 prefixlen 128 
	inet 127.0.0.1 netmask 0xff000000 
rt28700: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0
mtu 2290 ether 00:1e:e5:ea:35:65
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
	status: associated
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500 ether 00:1e:e5:ea:35:65
	inet 208.68.139.38 netmask 0xffffff00 broadcast 208.68.139.38
	inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
	media: IEEE 802.11 Wireless Ethernet<unknown subtype>
	status: associated
	ssid MyNET channel 6 (2437 Mhz 11g ht/40-) bssid
	00:1a:70:fb:fb:d2 country US authmode WPA privacy ON deftxkey
	UNDEF txpower 0 bmiss 7 scanvalid 450 bgscan bgscanintvl 300
	bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS ampdulimit
	32k ampdudensity 8 shortgi wme burst roaming MANUAL

I cannot figure out why or how it is getting the address: 208.68.139.38
It should be using 192.168.1.104 or something in that range.

-- 
Carmel
carmel_ny at hotmail.com

|::::=======
|::::=======
|===========
|===========
|

Bigamy is having one spouse too many.  Monogamy is the same.


More information about the freebsd-questions mailing list