Changeset c1700e6 in freewrt
- Timestamp:
- Apr 5, 2007, 12:45:23 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 6fd6093
- Parents:
- ebb4e0e
- Files:
-
- 1 added
- 4 edited
-
docs/handbook/user/handbook.tex (modified) (4 diffs)
-
package/broadcom-wl-util/Makefile (modified) (2 diffs)
-
package/broadcom-wl-util/files/wireless-broadcom.pre-up (modified) (3 diffs)
-
package/broadcom-wl-util/files/wireless-broadcom.up (added)
-
target/linux/brcm-2.4/files/etc/network/interfaces (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/handbook/user/handbook.tex
rebb4e0e rc1700e6 625 625 \texttt{eth0.1} on port 3 and 4 and \texttt{eth0.2} on port 0. 626 626 627 628 If you need to do some advanced settings, because you have for example 629 a powerful switch with a VLAN trunking port connected to one of your switch 630 ports, the configuration would look like this: 631 632 \begin{Verbatim}[label=/etc/network/interfaces] 633 auto eth0.1 634 iface eth0.1 inet static 635 switch-ports 2 3 4 5* 636 address 192.168.1.1 637 netmask 255.255.255.0 638 639 auto eth0.2 640 iface eth0.2 inet static 641 switch-ports 1t 5 642 address 10.2.0.1 643 netmask 255.255.255.0 644 broadcast + 645 646 auto eth0.3 647 iface eth0.3 inet static 648 switch-ports 1t 5 649 address 10.3.0.1 650 netmask 255.255.255.0 651 broadcast + 652 653 auto eth0.4 654 iface 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 662 This configures four VLAN interfaces, \texttt{eth0.1} on physical ports 2, 3 and 4. 663 The interfaces \texttt{eth0.2}, \texttt{eth0.3} and \texttt{eth0.4} are three 664 different networks with VLAN ID 2-4. The physical port 1 needs to be connected 665 to a VLAN trunking port on a switch with knows the same VLAN IDs. 666 667 627 668 Explanation: 628 669 \begin{description} … … 702 743 & sta & Client mode \\ 703 744 & adhoc & Ad-Hoc mode \\ 704 & wds & WDS point-to-point link \\745 & wds & WDS point-to-point link over wireless\\ 705 746 & monitor & The node acts as a passive monitor and only receives packets \\ 706 747 \textbf{ssid}& <String> & Set the SSID (Network Name) \\ … … 782 823 \texttt{Option} & \texttt{Parameter} & \texttt{Description} \\ 783 824 lazywds & {0|1} & Accept WDS connections from anyone \\ 825 wds-bridge & {brX} & Add WDS peers to bridge brX \\ 784 826 wds & <MAC1> ... <MACn> & List of WDS peer mac addresses (xx:xx:xx:xx:xx:xx, space separated) \\ 785 827 \end{tabular} … … 891 933 wireless-security wep 892 934 wireless-key1 11223344556677889900112233 935 \end{Verbatim} 936 937 WLAN with WDS nodes, the WDS nodes need to have the same 938 SSID, channel and encryption parameters. 939 940 WDS node 1 (MAC of Wireless 06:05:04:03:02:01) 941 \begin{Verbatim} 942 iface 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} 956 WDS node 2 (MAC of Wireless 01:02:03:04:05:06) 957 \begin{Verbatim} 958 iface 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 893 971 \end{Verbatim} 894 972 -
package/broadcom-wl-util/Makefile
rebb4e0e rc1700e6 9 9 PKG_NAME:= broadcom-wl-util 10 10 PKG_VERSION:= 0.1 11 PKG_RELEASE:= 411 PKG_RELEASE:= 5 12 12 PKG_MD5SUM:= 444a752b895859d050b58a045df8bf00 13 13 PKG_SOURCE_URL:= http://www.freewrt.org/distfiles … … 28 28 $(INSTALL_DIR) $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-post-down.d 29 29 $(INSTALL_DIR) $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-pre-up.d 30 $(INSTALL_DIR) $(IDIR_BROADCOM_WL_UTIL)/etc/network/if-up.d 30 31 $(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 34 40 $(IPKG_BUILD) $(IDIR_BROADCOM_WL_UTIL) $(PACKAGE_DIR) -
package/broadcom-wl-util/files/wireless-broadcom.pre-up
rebb4e0e rc1700e6 9 9 # init driver 10 10 # 11 ip link set up dev $IFACE11 [ "${IFACE%%[0-9]*}" = "eth" ] && ip link set up dev $IFACE 12 12 wl radio on 13 13 wl infra 1 … … 15 15 wl macmode 0 16 16 wl mac none 17 wl lazywds 0 17 18 wl up 18 19 … … 60 61 ;; 61 62 wds) 62 wl ap 0 63 [ "$IF_WIRELESS_WDS" ] || ( logger -t wireless "no wireless-wds entry found, aborting";exit 1;) 64 wl ap 1 63 65 ;; 64 66 monitor) -
target/linux/brcm-2.4/files/etc/network/interfaces
rebb4e0e rc1700e6 81 81 # wireless-afterburner 1 82 82 83 84 83 # Bridging WLAN<->LAN 85 84 #auto @FWRT_LAN@ … … 96 95 # broadcast + 97 96 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.
