Changeset c1700e6 in freewrt


Ignore:
Timestamp:
Apr 5, 2007, 12:45:23 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
6fd6093
Parents:
ebb4e0e
Message:

some docs about VLAN trunking, second part of wds support, tested and working without any encryption, more to come

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@2342 afb5a338-a214-0410-bd46-81f09a774fd1

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • docs/handbook/user/handbook.tex

    rebb4e0e rc1700e6  
    625625\texttt{eth0.1} on port 3 and 4 and \texttt{eth0.2} on port 0.
    626626
     627
     628If you need to do some advanced settings, because you have for example
     629a powerful switch with a VLAN trunking port connected to one of your switch
     630ports, the configuration would look like this:
     631
     632\begin{Verbatim}[label=/etc/network/interfaces]
     633auto eth0.1
     634iface eth0.1 inet static
     635    switch-ports 2 3 4 5*
     636    address 192.168.1.1
     637    netmask 255.255.255.0
     638
     639auto eth0.2
     640iface eth0.2 inet static
     641    switch-ports 1t 5
     642    address 10.2.0.1
     643    netmask 255.255.255.0
     644    broadcast +
     645
     646auto eth0.3
     647iface eth0.3 inet static
     648    switch-ports 1t 5
     649    address 10.3.0.1
     650    netmask 255.255.255.0
     651    broadcast +
     652
     653auto eth0.4
     654iface eth0.4 inet static
     655    switch-ports 1t 5
     656    address 10.4.0.1
     657    netmask 255.255.255.0
     658    broadcast +
     659
     660\end{Verbatim}
     661
     662This configures four VLAN interfaces, \texttt{eth0.1} on physical ports 2, 3 and 4.
     663The interfaces \texttt{eth0.2}, \texttt{eth0.3} and \texttt{eth0.4} are three
     664different networks with VLAN ID 2-4. The physical port 1 needs to be connected
     665to a VLAN trunking port on a switch with knows the same VLAN IDs.
     666
     667
    627668Explanation:
    628669\begin{description}
     
    702743             & sta             & Client mode \\
    703744             & adhoc           & Ad-Hoc mode \\
    704              & wds             & WDS point-to-point link \\
     745             & wds             & WDS point-to-point link over wireless\\
    705746             & monitor         & The node acts as a passive monitor and only receives packets \\
    706747\textbf{ssid}& <String>        & Set the SSID (Network Name) \\
     
    782823\texttt{Option} & \texttt{Parameter} & \texttt{Description} \\
    783824lazywds      & {0|1}           & Accept WDS connections from anyone \\
     825wds-bridge   & {brX}           & Add WDS peers to bridge brX \\
    784826wds          & <MAC1> ... <MACn> & List of WDS peer mac addresses (xx:xx:xx:xx:xx:xx, space separated) \\
    785827\end{tabular}
     
    891933        wireless-security wep
    892934        wireless-key1 11223344556677889900112233
     935\end{Verbatim}
     936
     937WLAN with WDS nodes, the WDS nodes need to have the same
     938SSID, channel and encryption parameters.
     939
     940WDS node 1 (MAC of Wireless 06:05:04:03:02:01)
     941\begin{Verbatim}
     942iface br0 inet static
     943        bridge-ifaces eth1
     944        address 192.168.10.1
     945        netmask 255.255.255.0
     946        broadcast +
     947        wireless-type broadcom
     948        wireless-country DE
     949        wireless-mode wds
     950        wireless-ssid FreeWRT-WDS
     951        wireless-security none
     952        wireless-lazywds 0
     953        wireless-wds 01:02:03:04:05:06
     954        wireless-wds-bridge br0
     955\end{Verbatim}
     956WDS node 2 (MAC of Wireless 01:02:03:04:05:06)
     957\begin{Verbatim}
     958iface br0 inet static
     959        bridge-ifaces eth1
     960        address 192.168.10.2
     961        netmask 255.255.255.0
     962        broadcast +
     963        wireless-type broadcom
     964        wireless-country DE
     965        wireless-mode wds
     966        wireless-ssid FreeWRT-WDS
     967        wireless-security none
     968        wireless-lazywds 0
     969        wireless-wds 06:05:04:03:02:01
     970        wireless-wds-bridge br0
    893971\end{Verbatim}
    894972
  • package/broadcom-wl-util/Makefile

    rebb4e0e rc1700e6  
    99PKG_NAME:=              broadcom-wl-util
    1010PKG_VERSION:=           0.1
    11 PKG_RELEASE:=           4
     11PKG_RELEASE:=           5
    1212PKG_MD5SUM:=            444a752b895859d050b58a045df8bf00
    1313PKG_SOURCE_URL:=        http://www.freewrt.org/distfiles
     
    2828        $(INSTALL_DIR) $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-post-down.d
    2929        $(INSTALL_DIR) $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-pre-up.d
     30        $(INSTALL_DIR) $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-up.d
    3031        $(INSTALL_BIN) $(WRKBUILD)/wl $(IDIR_BROADCOM_WL_UTIL)/usr/sbin
    31         $(CP) ./files/wireless-broadcom.pre-up $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-pre-up.d/02-wireless-broadcom
    32         $(CP) ./files/wireless-broadcom.post-down $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-post-down.d/wireless-broadcom
    33         $(CP) ./files/wds.hotplug $(IDIR_BROADCOM_WL_UTIL)/etc/hotplug.d/net/01-wds
     32        $(CP) ./files/wireless-broadcom.pre-up \
     33                $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-pre-up.d/02-wireless-broadcom
     34        $(CP) ./files/wireless-broadcom.post-down \
     35                $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-post-down.d/wireless-broadcom
     36        $(CP) ./files/wireless-broadcom.up \
     37                $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-up.d/01-wireless-broadcom
     38        $(CP) ./files/wds.hotplug \
     39                $(IDIR_BROADCOM_WL_UTIL)/etc/hotplug.d/net/01-wds
    3440        $(IPKG_BUILD) $(IDIR_BROADCOM_WL_UTIL) $(PACKAGE_DIR)
  • package/broadcom-wl-util/files/wireless-broadcom.pre-up

    rebb4e0e rc1700e6  
    99# init driver
    1010#
    11 ip link set up dev $IFACE
     11[ "${IFACE%%[0-9]*}" = "eth" ] && ip link set up dev $IFACE
    1212wl radio on
    1313wl infra 1
     
    1515wl macmode 0
    1616wl mac none
     17wl lazywds 0
    1718wl up
    1819
     
    6061        ;;
    6162    wds)
    62         wl ap 0
     63        [ "$IF_WIRELESS_WDS" ] || ( logger -t wireless "no wireless-wds entry found, aborting";exit 1;)
     64        wl ap 1
    6365        ;;
    6466    monitor)
  • target/linux/brcm-2.4/files/etc/network/interfaces

    rebb4e0e rc1700e6  
    8181#       wireless-afterburner 1
    8282
    83 
    8483# Bridging WLAN<->LAN
    8584#auto @FWRT_LAN@
     
    9695#       broadcast +
    9796
     97# WLAN with WDS, add the peers to wireless-wds
     98# real wlan interfaces and wds interfaces will be added to bridge br0
     99#auto br0
     100#iface br0 inet static
     101#       bridge-ifaces @FWRT_WLAN@
     102#       address 192.168.10.1
     103#       netmask 255.255.255.0
     104#       broadcast +
     105#       wireless-type broadcom
     106#       wireless-country DE
     107#       wireless-mode ap
     108#       wireless-ssid FreeWRT-WDS
     109#       wireless-channel 11
     110#       wireless-security none
     111#       wireless-lazywds 0
     112#       wireless-wds-bridge br0
     113#       wireless-wds 00:01:02:03:04:05
     114
Note: See TracChangeset for help on using the changeset viewer.