Skip to content

Instantly share code, notes, and snippets.

@yas-nyan
Created December 12, 2017 01:10
Show Gist options
  • Save yas-nyan/f6bb1136eff1ea7900ea5ba8d7fcbe58 to your computer and use it in GitHub Desktop.
Save yas-nyan/f6bb1136eff1ea7900ea5ba8d7fcbe58 to your computer and use it in GitHub Desktop.
Ubuntuを複数VLAN/SSID吹けるAPにしてみる ref: https://qiita.com/yas-nyan/items/10151034ed87e27a52ec
auto lo
iface lo inet loopback
# 元のeth0はautoで立ち上がらせないようにしておく。
#auto eth0
auto eth0.200
iface eth0.200 inet static
address 10.200.200.100
netmask 255.255.0.0
gateway 10.200.0.1
vlan-raw-device eth0
nameservers 8.8.8.8
nameservers 8.8.4.4
auto eth0.100
iface eth0.100 inet static
address 10.100.200.100
netmask 255.255.0.0
gateway 10.100.0.1
vlan-raw-device eth0
nameservers 8.8.8.8
nameservers 8.8.4.4
%ls
config eth0.100 eth0.200
%sudo cat config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.200 | 200 | eth0
eth0.100 | 100 | eth0
% sudo cat eth0.200
eth0.200 VID: 200 REORDER_HDR: 1 dev->priv_flags: 1
total frames received 1497
total bytes received 171346
Broadcast/Multicast Rcvd 167
total frames transmitted 784
total bytes transmitted 101369
Device: eth0
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESS priority mappings:
# 一例
create_ap -m bridge wlan0 eth0.100 --ieee80211n --ht_capab '[HT40+]' business musenlanbenrithanyusen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment