On 09/19/2015 05:27 PM, Bruce Dubbs wrote:
Wayne Sallee wrote:
On 09/17/2015 11:47 AM, Wayne Sallee wrote:
In terminal simply enter:
ifconfig wlan0 inet 192.168.x.xxx
inet is the default, so that is not needed, but check that the netmask and
broadcast addresses are correct.
LOL I can ssh to it just fine, but the lfs computer has no internet when
I do that.
You also need to set the default gateway:
ip route add default via ${GATEWAY} dev ${IFACE}
-- Bruce
Thanks!
That works.
So for those of you in the future that are reading this; the final command set
is:
ifconfig wlan0 192.168.x.xxx &&
ip route add default via 192.168.x.xxx dev wlan0
with x being whatever numbers your ip is.
But before running any of this, enter the command:
ip rout show
which will give you something like:
default via 192.168.x.x dev wlan0
Copy this address, as it is the current default gateway that you will need to
use when you run the ip route add command.
**
Or a real simple answer; just enter this one line command or put in a bash file:
thisIP=$(/sbin/ip route | awk '/default/ { print $3 }') && ifconfig wlan0 192.168.x.xxx && ip route add default via
$thisIP dev wlan0 && ip addr show
change the x to the number you want.
Wayne Sallee
[email protected]
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page