wiki

zandra's wiki
git clone git://zandra.org/wiki
Log | Files | Refs | README

networking.md (1951B)


      1 # Zandra Networking Guide
      2 
      3 ## A Note on Drivers
      4 
      5 The minimal kernel configuration used in Zandra means that your
      6 network drivers are likely not included if you aren't using Qemu.
      7 These can be added by compiling your own kernel, either locally or
      8 from another machine.
      9 
     10 ## Wired
     11 
     12 Wired internet connection can be activated using 2 shell commands.
     13 These can also be made a `svc` service (although this hasn't been
     14 implemented yet). First, however, you must use `ip link` to find out
     15 what your wired network interface is called:
     16 
     17 ```
     18 [user@zandra ~]$ ip link
     19 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
     20     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     21 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
     22     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
     23 [user@zandra ~]$
     24 ```
     25 
     26 Now, you must turn the interface on and start a DHCP daemon.
     27 
     28 ```
     29 [user@zandra ~]$ ip link set eth0 up
     30 [user@zandra ~]$ sdhcp
     31 ```
     32 
     33 ## Wireless
     34 
     35 Wireless internet connection can be activated using `wpa_supplicant` as well as `sdhcp`.
     36 
     37 ```
     38 [user@zandra ~]$ ip link # find wireless interface name
     39 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
     40     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     41 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
     42     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
     43 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
     44     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
     45 [user@zandra ~]$ wpa_passphrase "Wireless SSID" "password" >> /etc/wpa_supplicant.conf # add network
     46 [user@zandra ~]$ wpa_supplicant -B -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf # start wpa_supplicant
     47 [user@zandra ~]$ sdhcp # start DHCP
     48 ```
     49 
     50 Again, this can be automated.