diff options
Diffstat (limited to 'recipes-core/multitech/config/network/interfaces')
-rw-r--r-- | recipes-core/multitech/config/network/interfaces | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/network/interfaces b/recipes-core/multitech/config/network/interfaces index 67c934b..04a1d3d 100644 --- a/recipes-core/multitech/config/network/interfaces +++ b/recipes-core/multitech/config/network/interfaces @@ -9,6 +9,7 @@ auto eth0 iface eth0 inet static address 192.168.2.1 netmask 255.255.255.0 +post-up ip addr show eth0 # Forwarding packets on eth0 # gateway 192.168.2.2 # pre-up bash -c 'echo 1 >/proc/sys/net/ipv4/ip_forward' @@ -62,12 +63,22 @@ netmask 255.255.255.0 # # See https://busybox.net/downloads/BusyBox.html for more information. # +# Currently rsi-91x driver requires pre-down to remove the wifi0 link # auto wifi0 # iface wifi0 inet dhcp # wpa-conf /etc/wpa_supplicant.conf # wpa-driver nl80211 # pre-up bash -c '([[ -d /sys/class/net/wifi0 ]] || /opt/rs9113/onebox_util rpine0 create_vap wifi0 sta sw_bmiss)' # udhcpc_opts -t 10 -b +# pre-down ip link set dev wifi0 down + +# wifi1 example for hostapd +# Currently rsi-91x driver requires pre-down to remove the wifi1 link +# auto wifi1 +# iface wifi1 inet static +# address 10.0.0.1 +# netmask 255.0.0.0 +# pre-down ip link set dev wifi1 down # The pan0 interface purpose is to support bluetooth pand # If access to another network is required, the ip forwarding |