Changes between Version 29 and Version 30 of Internal/OpenFlow/miscUnix


Ignore:
Timestamp:
Dec 20, 2012, 11:44:36 PM (12 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/miscUnix

    v29 v30  
    33Anything based on a link is reiterated just for completeness, and just in case a link dies.
    44
    5 This page is a compilation of things done with Ubuntu and FreeBSD, the OSes that the author of this page use/break on a regular basis^1^. Although syntax will inevitably be different amongst various systems, the general practices and ideas should apply to any UNIX-like OS. Additions/corrections to the page are very much welcome.
     5This page is a compilation of things done with Ubuntu and FreeBSD, the OSes that the author of this page use/break on a regular basis^1^. Although syntax will inevitably be different amongst various systems, the general ideas of what a UNIX-like OS can do /should/ be there. Additions/corrections to the page are very much welcome.
    66
    77[#shell Shell-based] Command-line tools. So far, this section includes:
     
    1212[#dev Development-related] Tools and workarounds
    1313 * git server setup
     14 * importing non-Eclipse projects to Eclipse
    1415[#net Network] Various networking-related things.
    1516 * Disabling SSH timeout
     
    1718  * with `ufw` (Linux)
    1819  * with `pf` (*BSD)
    19  * Wireless with wpa_supplicant
     20 * Wireless with wpa_supplicant 
     21 * FreeBSD `Ifconfig` shinanigaries. 
    2022[#print Quick Printing] Printing under *nix, relatively quickly
    2123 * CUPS
     
    304306If it throws errors, make sure that the kernel module (pf.ko or something similar) is loaded.
    305307
     308== FreeBSD `Ifconfig` shinanigans. ==
     309FreeBSD's `ifconfig` combines the features of `ifconfig` and `iwconfig` in Linux. For example, you can get a list of AP's, you can do:
     310{{{
     311$ ifconfig wlan0 list scan
     312SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
     313kitchen         08:86:3b:a0:20:f2    6   54M   8:0    100 EP   HTCAP WPA RSN WME WPS
     314WINMAIN         c4:7d:4f:37:2d:f0    6   54M  15:0    102 ES   HTCAP WME
     315front.door      08:86:3b:d7:f4:6c    6   54M   5:0    100 EP   RSN HTCAP WME WPS
     316}}}
     317And so on.
     318
     319Another thing that you can do (unintentionally or otherwise) is to assign multiple network addresses to a single interface. The `add` keyword lets you do this intentionally:
     320{{{
     321$ sudo ifconfig wlan0 inet 192.168.206.1 add
     322$ ifconfig wlan0
     323wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
     324        ether 00:1c:bf:9a:61:c7
     325        inet 192.168.206.120 netmask 0xffffff00 broadcast 192.168.206.255
     326        inet 192.168.206.1 netmask 0xffffff00 broadcast 192.168.206.255
     327        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
     328        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
     329        status: associated
     330        ssid WINMAIN channel 6 (2437 MHz 11g) bssid c4:7d:4f:37:2d:f0
     331        country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
     332        protmode CTS bintval 102
     333}}}
     334On wired interfaces, assigning addresses with `ifconfig [iface] inet [address]` will have the same effect, which may not be what you want, especially when you expect the old address to just be replaced by your new one^2^. In this case, you can remove the unwanted address with `-alias`:
     335{{{
     336$ sudo ifconfig wlan0 inet 192.168.206.1 -alias
     337$ ifconfig wlan0
     338wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
     339        ether 00:1c:bf:9a:61:c7
     340        inet 192.168.206.120 netmask 0xffffff00 broadcast 192.168.206.255
     341        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
     342        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
     343        status: associated
     344        ssid WINMAIN channel 6 (2437 MHz 11g) bssid c4:7d:4f:37:2d:f0
     345        country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
     346        protmode CTS bintval 102
     347}}}
     348
    306349----
    307350== Quick Printing Setup. == #print
     
    389432----
    390433[[BR]]
    391 ^1."Use" here is more close to "break" in this situation.^
     434^1."Use" here is more close to "break" in this situation.^ [[BR]]
     435^2.Apparently Mac OSX carries this behavior over as well.^