this post I well show config 4 Lan to be switch port and single port wan receive dhcp from wan (internet)
Exsample
root@lamobo:~# sudo apt-get install vlan
root@lamobo:~# sudo nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0.101
iface eth0.101 inet manual
pre-up swconfig dev eth0 set reset 1
pre-up swconfig dev eth0 set enable_vlan 1
pre-up swconfig dev eth0 vlan 101 set ports '3 8t'
pre-up swconfig dev eth0 set apply 1
auto eth0.102
iface eth0.102 inet manual
pre-up swconfig dev eth0 vlan 102 set ports '0 1 2 4 8t'
pre-up swconfig dev eth0 set apply 1
allow-hotplug wlan0
iface wlan0 inet manual
# WAN
auto eth0.101
iface eth0.101 inet dhcp
# LAN
auto br0
iface br0 inet static
bridge_ports eth0.102 wlan0
address 192.168.2.254
netmask 255.255.255.0
# WIFI
auto enx10a4be6c4ed7
iface enx10a4be6c4ed7 inet static
hostapd /etc/hostapd/hostapd.conf
address 192.168.2.253
netmask 255.255.255.0
ไม่มีความคิดเห็น:
แสดงความคิดเห็น