Teología 101

Porque no es tan difícil...

Herramientas de usuario

Herramientas del sitio


configs

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
configs [2020/04/17 16:14] gregkedroconfigs [2020/04/17 16:49] (actual) gregkedro
Línea 368: Línea 368:
 **Debian Method** (as root): **Debian Method** (as root):
 <code> <code>
-/etc/init.d/networking restart Restart network interface, or stop/start...  +/etc/init.d/networking restart Restarts network interfaces, or stop/start...  
-/etc/init.d/networking stop     # Stops network interface +/etc/init.d/networking stop     # Stops network interfaces 
-/etc/init.d/networking start    # Starts network interface+/etc/init.d/networking start    # Starts network interfaces
  
 systemctl restart networking    # For those with lovely systemd systemctl restart networking    # For those with lovely systemd
Línea 384: Línea 384:
 **The** ''ifupdown'' **package:** high-level network configuration **The** ''ifupdown'' **package:** high-level network configuration
   * The ''ifup'' and ''ifdown'' commands may be used to configure or deconfigure network interfaces based on interface definitions in the file ''/etc/network/interfaces''.   * The ''ifup'' and ''ifdown'' commands may be used to configure or deconfigure network interfaces based on interface definitions in the file ''/etc/network/interfaces''.
-  * Example: bring up network with ''ifup eth0'' based on eth0 configuration in ''/etc/network/interfaces''+  * Example: bring up the network with ''ifup eth0'' based on eth0 configuration in ''/etc/network/interfaces''
-  * ''ifupdown'' will wrap ''ifconfig'' with the network configuration files (that means ''ifdown'' or ''ifup'' will execute ''ifconfig down'' or ''ifconfig up'' inside it). That means: +  * ''ifupdown'' will wrap ''ifconfig'' with the network configuration files (i.e., ''ifdown'' or ''ifup'' will execute ''ifconfig down'' or ''ifconfig up'' inside it). That means: 
     * ''ifup eth0'' will fetch the interface config file and bring up the interface with the correct IP address, mask, routes etc.      * ''ifup eth0'' will fetch the interface config file and bring up the interface with the correct IP address, mask, routes etc. 
     * ''ifconfig eth0'' up would just start the interface **//with no IP//**, etc. (important for sniffing in monitor mode because you don't want an IP address, etc.; you want an open broadcase).     * ''ifconfig eth0'' up would just start the interface **//with no IP//**, etc. (important for sniffing in monitor mode because you don't want an IP address, etc.; you want an open broadcase).
Línea 397: Línea 397:
 **Usage of the** ''ip'' **command:** **Usage of the** ''ip'' **command:**
   * If your distro did not install ifconfig, you can install it in Debian with ''apt install net-tools''.   * If your distro did not install ifconfig, you can install it in Debian with ''apt install net-tools''.
-  * Or you can use the horridly ugly syntax for ''ip'' (complex and hard-to-understand help can be found [[https://www.howtogeek.com/657911/how-to-use-the-ip-command-on-linux/|here]]).+  * Or you can use the horridly ugly syntax for ''ip'' (complex and hard-to-understand help can be found [[https://www.howtogeek.com/657911/how-to-use-the-ip-command-on-linux/|here]] or an easier-to-understand explanation [[https://www.tecmint.com/ip-command-examples/|here]]).
   * From the following example you will need to replace the IP and the interface with your own.   * From the following example you will need to replace the IP and the interface with your own.
  
Línea 416: Línea 416:
 </code> </code>
  
-Note: This will only set up your network for your current work session. You'll lose it on reboot.+**Note on Persistence:** This will only set up your network for your current work session. You'll lose it on reboot. 
 +  * ''ip'' (like the old net-tools ''ifconfig'' stuff) interacts with ''/etc/network/interfaces'', so put all your network configuration information there and just up/down your network with these commands:  
 + 
 +<code> 
 +/etc/init.d/networking restart  # Restarts network interfaces, or stop/start...  
 +/etc/init.d/networking stop     # Stops network interfaces 
 +/etc/init.d/networking start    # Starts network interfaces 
 +</code>
  
 ---- ----
configs.1587140055.txt.gz · Última modificación: 2020/04/17 16:14 por gregkedro