반응형
- root@appliance:~# cat /etc/network/if-pre-up.d/swconfig
- #!/bin/sh
- #---------------------------#
- # BPI-R1 VLAN configuration #
- #---------------------------#
- #
- # This will create the following ethernet ports:
- # - eth0.101 = WAN (single port)
- # - eth0.102 = LAN (4 port switch)
- #
- # You have to adjust your /etc/network/interfaces
- #
- # Comment out the next line to enable the VLAN configuration:
- #exit 0
- ifconfig eth0 up
- # The swconfig port number are:
- # |2|1|0|4| |3|
- # (looking at front of ports)
- swconfig dev eth0 set reset 1
- swconfig dev eth0 set enable_vlan 1
- swconfig dev eth0 vlan 101 set ports '3 8t'
- swconfig dev eth0 vlan 102 set ports '0 1 2 4 8t'
- swconfig dev eth0 port 0 set pvid 102
- swconfig dev eth0 port 1 set pvid 102
- swconfig dev eth0 port 2 set pvid 102
- swconfig dev eth0 port 3 set pvid 101
- swconfig dev eth0 port 4 set pvid 102
- swconfig dev eth0 set apply 1
- root@appliance:~# cat /etc/network/interfaces
- # interfaces(5) file used by ifup(8) and ifdown(8)
- auto lo
- iface lo inet loopback
- auto eth0.101 eth0.102 br0
- iface br0 inet static
- bridge_ports eth0.101 eth0.102
- address 192.168.200.234
- netmask 255.255.255.0
- gateway 192.168.200.1
- root@appliance:~#
반응형
'서버 > 리눅스 서버' 카테고리의 다른 글
18.5 Guacamole 0.9.9 ubuntu / debian Full Installation Script (ssh,rdp,vnc,telnet based on html5) (0) | 2016.05.22 |
---|---|
18.4 Guacamole VNC / SSH / RDP / TELNET HTML5 Clientless Remote Desktop 전체 게시글 모음 (6) | 2016.04.17 |
6.1 [PC]Transmission Remote GUI (transmission-damon 원격 클라이언트) 사용법 (2) | 2016.03.29 |
[뻘글][작성중]11.1 PHP 가속기 설치하기 (eAccelerator) (0) | 2016.03.28 |
Plex Media Server HTML5 자막표시 설정 (0) | 2016.03.27 |
댓글