docs/120566: ifconfig(8) doesn't recognize 'inet' command when setting up wireless card
Volker
volker at vwsoft.com
Wed Feb 13 21:00:05 UTC 2008
The following reply was made to PR docs/120566; it has been noted by GNATS.
From: Volker <volker at vwsoft.com>
To: bug-followup at FreeBSD.org, yuri at tsoft.com
Cc:
Subject: Re: docs/120566: ifconfig(8) doesn't recognize 'inet' command when
setting up wireless card
Date: Wed, 13 Feb 2008 21:56:11 +0100
> vwe points out that this is more likely a documentation bug.
To clarify this:
> ifconfig ral0 ssid freebsdap wepmode on weptxkey 3 \
> wepkey 3:0x3456789012 mode 11g mediaopt hostap \
> inet 192.168.0.1 netmask 255.255.255.0
> ifconfig: inet: bad value
-> this fails but:
ifconfig [ifname] [af] [a.dd.re.ss] (wlan settings here)
works well:
# ifconfig ndis0 inet 192.168.20.3/24 wepmode off mode 11g
# ifconfig ndis0
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500
ether 00:1a:73:ad:a4:67
inet 192.168.20.3 netmask 0xffffff00 broadcast 192.168.20.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g (autoselect)
status: no carrier
ssid "" channel 1 (2412 Mhz 11g)
authmode OPEN privacy OFF bmiss 7 scanvalid 60 protmode CTS bintval 0
Just give the keyword 'inet' and the IP address right after the
interface name. man ifconfig(8) and ath(4) is fine.
More information about the freebsd-doc
mailing list