Portál AbcLinuxu, 12. května 2025 02:47
# Bring up ath0 with the correct wifi settings # "manual" causes it to bring up the interface without TCP/IP (which will be setup on the bridge interface br0) auto ath0 iface ath0 inet manual # set up the ath0 device in AP mode before bringing up the interface (unless you're using AutoCreate) # I had to add the following line for this config to work because udev creates the interface earlier # in the init process. pre-up wlanconfig ath0 destroy pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap # remove the ath0 device when bringing the interface down post-down wlanconfig ath0 destroy # set master mode, channel, and the essid wireless-mode master wireless-channel 11 wireless-essid YourESSID # IF you use WEP, put the key here: #wireless-key 1234-1234-1234-1234 # Bring up the bridge device, br0 # Using DHCP to assign an IP, etc. may work as well, # but this illustrates setting up a static IP for the interface. # The IP will be accessible from both the wired and wireless sides of the network. auto br0 iface br0 inet static # Assign your IP address, subnet and mask, broadcast address, and default gateway address 192.168.0.[x] network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 # Bridge eth0 and ath0 with br0. bridge_ports eth0 ath0 # You do *not* need a separate entry for eth0 in this file, because you are not configuring it # or bringing it up as a separate interface at all. Mentioning it in the bridge_ports directive # is enough.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.