Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:handbook:networkconf [2012/03/22 20:26] – [Enable Dial-up Modem - PPPoE with rp-pppoe] domcoxen:handbook:networkconf [2019/10/16 17:11] (current) – [Wifi-box - Graphical configuration of the wireless network (SliTaz 4.0 and 5.0 Weekly)] mojo
Line 1: Line 1:
 ====== Network Configuration ====== ====== Network Configuration ======
 +<note important>SliTaz Panel/Network replaces netbox for SliTaz-4.0 and newer</note>
  
 ===== About the Network ===== ===== About the Network =====
  
-By default SliTaz starts a DHCP client (udhcpc) on eth0 at boot time. If your network card has been identified as an eth0 interface and you use a router, your connection should already be working. DHCP is dynamically configured, on each boot the client asks for a new IP address from the DHCP server which is integrated into the router, or on another computer. If you need a static IP, you can directly edit config files or use the GUI //netbox// available from the //System menu --> System// tools. In a terminal or a Linux console, you can list all available network interfaces with the command //ifconfig// followed by the //-a// option:+By default SliTaz starts a DHCP client (udhcpc) on eth0 at boot time. If your network card has been identified as an eth0 interface and you use a router, your connection should already be working. DHCP is dynamically configured, on each boot the client asks for a new IP address from the DHCP server which is integrated into the router, or on another computer. If you need a static IP, you can directly edit config files or use the //Network// tab at //System Tools// -> //Slitaz Panel//. In a terminal or a Linux console, you can list all available network interfaces with the command //ifconfig// followed by the //-a// option:
  
 <code> $ ifconfig -a </code> <code> $ ifconfig -a </code>
Line 11: Line 12:
 <code> $ route </code> <code> $ route </code>
  
-The system wide network configuration file is ///etc/network.conf//. It can be graphically configured with netbox or directly edited by the root administrator. +The system wide network configuration file is ///etc/network.conf//. It can be graphically configured at the //Network// tab on SliTaz Panel or directly edited by the root administrator. 
- +  
-===== Netbox - Configure the network =====+===== Netbox - Configure the network (SliTaz 3.0 and older) =====
  
 Netbox is a small GTK+ application to configure a network interface using DCHP or a fixed (static) IP address. The tabs can be used to start/stop the connections and automatically change the values in the system files. Netbox provides a system wide tab from which you can directly edit network configuration files, and tabs to configure PPP/PPPoE username/passwords. Servers such as SSH, DHCP, PXE, DNS, etc can also be configured and it's possible to create your own virtual private network (VPN) using the tools provided.  Netbox is a small GTK+ application to configure a network interface using DCHP or a fixed (static) IP address. The tabs can be used to start/stop the connections and automatically change the values in the system files. Netbox provides a system wide tab from which you can directly edit network configuration files, and tabs to configure PPP/PPPoE username/passwords. Servers such as SSH, DHCP, PXE, DNS, etc can also be configured and it's possible to create your own virtual private network (VPN) using the tools provided. 
Line 23: Line 24:
 <code> $ subox netbox </code> <code> $ subox netbox </code>
  
-===== Wifibox - Graphical configuration of the wireless network =====+<note important>SliTaz-4.0 and newer: \\ 
 +wifi-box was renamed to wifibox \\ 
 +SliTaz Panel/Network/Wireless offers same configuration \\ 
 +SliTaz-5.0 offers slitaz-configs wifi configuration using ncurses interface. 
 +</note> 
 +===== Wifi-box - Graphical configuration of the wireless network (SliTaz 4.0 and 5.0 Weekly) =====
  
-Wifibox is small interface to configure a network connection (Wifi, WLAN, or Wireless). The 'Networks' tab displays a list of available networks, just double click on a network name to connect. If the network is secure, the key will then be sought. +Wifi-box is small interface to configure a network connection (Wifi, WLAN, or Wireless). The 'Networks' tab displays a list of available networks, just double click on a network name to connect. If the network is secure, the key will then be sought. 
  
 {{:en:handbook:image:wifibox.png}} {{:en:handbook:image:wifibox.png}}
Line 35: Line 41:
   -   The card is not supported by Linux and a Windows driver must be installed via the Windows driver manager (tazndis).   -   The card is not supported by Linux and a Windows driver must be installed via the Windows driver manager (tazndis).
  
 +You can start wifi-box via a terminal:
 +
 +<code> # wifi-box</code>
 ===== /etc/hostname - The hostname ===== ===== /etc/hostname - The hostname =====
  
 The file ///etc/hostname// sets the machine name. This is loaded at system startup with the command 'hostname', without an argument this command returns the current machine name: The file ///etc/hostname// sets the machine name. This is loaded at system startup with the command 'hostname', without an argument this command returns the current machine name:
  
-<code>hostame </code>+<code>hostname </code>
  
 To change the hostname, you can use the echo command or a text editor available on SliTaz (you must be root). Example using echo and the machine name kayam: To change the hostname, you can use the echo command or a text editor available on SliTaz (you must be root). Example using echo and the machine name kayam:
Line 88: Line 97:
  
 </file> </file>
 +
 +===== Static routes =====
 +Static routes can be added at any time via the route add command:
 +
 +<file>
 +route add -net 192.168.20.0 netmask 255.255.255.0 gw 192.168.21.2
 +</file>
 +
 +The static route will remain active until the next reboot. 
 +In order to make these routes persistent, add them to /etc/init.d/local.sh
 +
 +
  
 ===== PPPoE connection kernel-mode ===== ===== PPPoE connection kernel-mode =====
Line 95: Line 116:
 <file> <file>
 plugin rp-pppoe.so plugin rp-pppoe.so
-name <your provider connection ID>+name <your_login>
 noipdefault noipdefault
 defaultroute defaultroute
Line 154: Line 175:
 <code> # pppoe-stop  <code> # pppoe-stop 
 </code> </code>
 +
 +To check the connection status:
 +
 +<code># pppoe-status</code>
  
 ===== Install network card driver ===== ===== Install network card driver =====
Line 168: Line 193:
 On an installed system you just need to add the module_name to the variable LOAD_MODULES in ///etc/rcS.conf// to load your module on each boot. On an installed system you just need to add the module_name to the variable LOAD_MODULES in ///etc/rcS.conf// to load your module on each boot.
  
 +<note important>
 +SliTaz-4.0 and newer: /etc/firewall.conf is moved to /etc/slitaz/firewall.conf \\
 +iptables rules are moved from /etc/init.d/firewall.sh to /etc/slitaz/firewall.sh \\
 +Reference: http://hg.slitaz.org/slitaz-tools/rev/769
 +</note>
 ===== Manage the Firewall (firewall) using Iptables ===== ===== Manage the Firewall (firewall) using Iptables =====
  
 
en/handbook/networkconf.1332447965.txt.gz · Last modified: by domcox