On Thu, Mar 24, 2016 at 11:42:12AM -0400, David Henderson wrote:
> And I just wanted to make sure that I could use something like:
> 
> ifup -i /etc/network/interfaces eth0
> 
> will process that file as is defined (like the example provided
> below).  There isn't anythink like this with just ifconfig correct?
No, ifconfig doesn't do all that.


The 'example provided' is only a list of options.

If I'm understanding correctly, you're probably thinking of something
more like this:
===
# eth0 here is manually configured ethernet, brought up by hand
iface eth0 inet static
        address 192.168.0.10
        netmask 255.255.255.0
        gateway 192.168.0.1
        dns-nameservers 1.1.1.1 1.1.1.2 1.1.1.3
        dns-search newdomain.local olddomain.local outside.com

# wlan0 is wireless auto-configured by dhcp, brought up automatically
auto wlan0
iface wlan0 inet dhcp
        wpa-conf /etc/wpa_supplicant.conf
===

Assuming you have resolvconf and wpa-supplicant installed, it should work.
But unless you use wireless in a stationary PC, you would do better to
use 'wpa-roam':
===
# 'default' should not be marked 'auto'; IT IS MAGIC!! ;)
# the wpa_supplicant plugin will bring up the logical interface specified
# by 'id_str' in wpa_supplicant.conf, or 'default' if id_str is not
# configured.
# The physical interface you run wpa_supplicant on will be used for
# any logical interfaces.

iface default inet dhcp

auto wlan0
iface wlan0 inet manual
        wpa-roam /etc/wpa_supplicant.conf
===

"-i CONFIGFILE" is optional; it defaults to /etc/network/interfaces.



> On 3/24/16, David Henderson <[email protected]> wrote:
> > Good morning all!  I am working with the /etc/network/interfaces file
> > and was curious what declarations are available to busybox.  So far
> > I'm interested in using the following:
> >
> > address 192.168.0.10
> > netmask 255.255.255.0
> > gateway 192.168.0.1
> > dns-nameservers 1.1.1.1 1.1.1.2 1.1.1.3
> > dns-search newdomain.local olddomain.local outside.com
> > wpa-conf /etc/wpa_supplicant.conf

HTH,
Isaac Dunham
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to