Created
December 12, 2017 01:10
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 一例 | |
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