Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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 '4 0 1 2 8t'
swconfig dev eth0 set apply 1
@herwigg

This comment has been minimized.

Copy link

herwigg commented Feb 8, 2015

I am sorry but I still cannot get the BP-R1 bananix 15.01 to work as an ethernet router. The Wlan ethernet port works, the BP-R1 gets an ip-address from my ISP providor, I can connect to the internet and ssh from another computer to my BP-R1. However, when I attach a switch to another port on the BP-R1 and a computer to the switch, this computer has no internet access. All wired ofcourse. For me the use of the BP-R1 as a switch router was a selling point but it appears to be difficult to configure it. Could you help me out with this ? Kind regards/

@hydrogen18

This comment has been minimized.

Copy link

hydrogen18 commented Feb 13, 2015

What does the the port '8t' mean ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.