Académique Documents
Professionnel Documents
Culture Documents
Profil personnel
.bash_profile ou .bash_login ou .profile
.bashrc
.bash_logout
.bash_history
Références
http://www.fr.linuxfromscratch.org/view/blfs-1.0-fr/postlfs/profile.html
http://blog.onkeyboardst.net/post/Quels-scripts-d-initialisation-utiliser-sous-Debian%3A-.profile-ou-.bashrc
https://www.it-connect.fr/bashrc-et-bash_profile-quelle-difference/
Château Massart 2017 - X41/CE - Linux/Unix -
christian.lardinois@gmail.com
4
Debian eth1
Mode d’accès réseau : RESEAU INTERNE
Contenu du fichier :
# The loopback network interface
auto lo
iface lo inet loopback
# WAN interface
allow-hotplug eth0
auto eth0
iface eth0 inet dhcp
# LAN interface
allow-hotplug eth1
auto eth1
iface eth1 inet static
address 10.8.10.1
network 10.8.10.0
netmask 255.255.255.0
broadcast 10.8.10.255
Château Massart 2017 - X41/CE - Linux/Unix -
christian.lardinois@gmail.com
6
DHCP (1)
Dynamic Host Configuration Protocol
Adressage dynamique adressage statique
Adresse IP + masque
Default gateway
Serveur DNS
Domain-name
Options ...
DHCP (2)
Mécanisme en 4 phases :
# IP/68 IP/67
1 CLIENT ------------------------------> SERVER
DHCP DISCOVER
(broadcast + mac-address client)
DHCP (3)
Serveur DHCP adresse fixe
DHCP (4)
Paramètres et options :
ddns-update-style none;
option domain-name "cm2017b.grp";
option ntp-servers 0.be.pool.ntp.org, 1.be.pool.ntp.org, 2.be.pool.ntp.org,
3.be.pool.ntp.org;
option domain-name-servers 10.8.10.1, 8.8.8.8, 8.8.4.4;
subnet 10.8.10.0 netmask 255.255.255.0
{
range 10.8.10.20 10.8.10.30;
# option routers debian871b.cm2017b.grp;
option routers 10.8.10.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.8.10.255;
}
default-lease-time 86400;
max-lease-time 604800;
DHCP (5)
Attribuer une adresse fixe à un client (réservation) :
host linuxmint181a
{
hardware ethernet 00:0D:87:B3:AE:A6;
fixed-address 10.8.10.27;
}
De l’aide :
man dhcpd.conf
Putty (1)
Application et protocole de communication
Emulateur de terminal
Client SSH (Secure SHell - tcp/22)
Client Telnet (tcp/23)
Client Rlogin (Remote Login - tcp/513)
Connexion liaison série RS-232
Référence :
http://www.putty.org/
Putty (2)
Serveur (Debian)
Installation et mise œuvre de SSH
Client (LinuxMint)
Menu
Zone de recherche = Putty
Démarrer Putty
Client (LinuxMint)
Menu
Zone de recherche = Gestionnaire de paquets Synaptic
Rechercher Putty
Sélectionner
Appliquer
Debian - IpForwarding
But : router le trafic entre eth0 et eth1
Vérifications
root# ipatbles –L
root# iptables -t nat -n -L