diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-09-23 18:03:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-09-23 18:03:25 +0000 |
commit | 95a617c4da44b0c15ee498967713f6c25f901ae4 (patch) | |
tree | 58c73c19a8f5c8fa3017ccbbe065fea65b839bfd /openwrt/docs | |
parent | 26b307274c332e06f3f2d526e0f820a11159f8c1 (diff) | |
download | mtk-20170518-95a617c4da44b0c15ee498967713f6c25f901ae4.zip mtk-20170518-95a617c4da44b0c15ee498967713f6c25f901ae4.tar.gz mtk-20170518-95a617c4da44b0c15ee498967713f6c25f901ae4.tar.bz2 |
add switch config info to network documentation
SVN-Revision: 4836
Diffstat (limited to 'openwrt/docs')
-rw-r--r-- | openwrt/docs/network.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/openwrt/docs/network.txt b/openwrt/docs/network.txt index 5610e1d..69dbaa6 100644 --- a/openwrt/docs/network.txt +++ b/openwrt/docs/network.txt @@ -45,6 +45,35 @@ PPP based protocols (pppoe, pptp, ...) accept these options: ",<interval>" to the keepalive value demand: Use Dial on Demand (value specifies the maximum idle time) + + (pptp) + server: The remote pptp server IP For all protocol types, you can also specify the MTU by using the "mtu" option. + + + + Setting up the switch (currently broadcom only) + + +The switch configuration is set by adding a 'switch' config section. +Example: + + config switch eth0 + option vlan0 "1 2 3 4 5*" + option vlan1 "0 5" + +On Broadcom hardware the section name needs to be eth0, as the switch driver +does not detect the switch on any other physical device. +Every vlan option needs to have the name vlan<n> where <n> is the VLAN number +as used in the switch driver. +As value it takes a list of ports with these optional suffixes: + + '*': Set the default VLAN (PVID) of the Port to the current VLAN + 'u': Force the port to be untagged + 't': Force the port to be tagged + +The CPU port defaults to tagged, all other ports to untagged. +On Broadcom hardware the CPU port is always 5. The other ports may vary with +different hardware. |