Вы находитесь на странице: 1из 4

Modifier l'addresse mac d;une interface ===> video7 9min 40sec

Demander l'adresse IP au Serveur DHCP ===> video7 17min 50sec

Capturer les paquets DHCP avec wireshark(Fonctionnement et Structure du protocole


DHCP) ===> video8 3min 31sec

Importance du serveur DHCP ===> video8 10min 50sec

Definir l'adresse IP de la passerelle par defaut ===> video8 16min 15sec

Afficher la table de routage IP du PC client ===> video8 16min 23sec

Capturer les paquets DNS avec wireshark(Strucure des paquets DNS) ===> video9 3min
45sec

Afficher le cache DNS d'un PC client sous linux ===> video8 8min 48sec

Forcer une requette DNS a ignorer le cache de la machine client(locale) et aller


chercher le reponse sur le reseau(Serveur DNS du reseau) ou sur un serveur DNS
public ===> video8 12min 56sec

###################################################################################
####################
Gestion de service sous Manjaro
systemctl status|start|stop|restart service_name.service

ex: systemctl status|start|stop|restart vmware-networks.service

agnide@omar-pc ~ % sudo vmnet-netifup -d /var/run/vmnet-netifup-vmnet0.pid


/dev/vmnet0 vmnet0
/dev/vmnet0: Already bridged with vmnet0

###################################################################################
####################
BRIDGING ON LINUX
/etc/NetworkManager/system-connections/ ==> connection setting files
create a bridge interface
nmcli con add ifname interface_name type {bridge} con-name connection_name
ex: nmcli con add ifname br0 type bridge con-name br0
with static ip address setting
nmcli con add ifname br0 type bridge con-name br0 ip4 10.1.1.100/24 gw4 10.1.1.1

sudo tunctl -t tap0


sudo ip link set tap0 up
sudo brctl addif br1 tap0
sudo ip link set br1 up
sudo brctl addif br1 eno1
sudo ip addr add 192.168.1.69/24 broadcast 192.168.1.255 dev br1 ===> changer
l'addresse IP au besoin
sudo ip addr add 10.1.1.2/24 broadcast 10.1.1.255 dev br1

sudo ip route add 192.168.1.0/24 dev br1 ou


sudo route add -net 192.168.1.0/24 dev br1

show the bridges interfaces


bridge link
brctl show | brctl show interface_name for the bridging, set up the virtual
interface associated to the bridge but not the bridge itself
ip link set interface_name up
###################################################################################
####################

Add a bridge
brctl addbr br_name

delete the bridge


ip link delete bridge_name type bridge

remove interface from bridge


ip link set interface_name nomaster

create a tap interface


ip tuntap add dev tap0 mode tap
or
sudo tunctl -t tap0

Bring up the tap interface


ip link set interface_name up

Add an interface to a bridge


brctl addif br_name intf_name
or
ip link set interface_name master bridge_name

Assign an ip address to the bridge interface and bring it up


ip addr add 192.168.1.69/24 broadcast 192.168.1.255 dev intf_name
ip link set interface_name up

Add a route for the bridge interface


route add -net 192.168.1.0/24 dev int_name
Show the routing table
route

show the bridges interfaces


bridge link
brctl show | brctl show interface_name for the bridging, set up the virtual
interface associated to the bridge but not the bridge itself
ip link set interface_name up

Assign an ip address to a given interface for the bridging, set an ip address for
the interface not directly atached to the bridge but the opposit one
ip addr add 192.168.1.69/24 broadcast 192.168.1.255 dev intf_name
ip addr show intf_name

Create a new virtual interface and attached it to another virtual interface


ip link add dev dev_name type veth peer name peer_name

Add a route
route add -net 192.168.1.0/24 dev int_name
Show the routing table
route

netctl start profile_name

Network Manager
nmcli
create a bridge interface
nmcli con add ifname interface_name type {bridge} con-name connection_name
ex: nmcli con add ifname br0 type bridge con-name br0
with statip ip address setting
nmcli con add ifname br0 type bridge con-name br0 ip4 10.1.1.100/24 gw4 10.1.1.1

Add a slave interfaces to the bridge


nmcli con add type bridge-slave ifname interface_name master bridge_name

To modify the bridge connection spanning-tree setting


nmcli con modify br0 bridge.stp no

show the active connection and disable the connection on which the interface we
want to give to the dridge is binding to before enabling the bridge connection. If
the bridge connection doesn't come up, restart networManager, set down the active
connection and set up back again the bridge connection

show only the active connection


nmcli con show --active

set down a given connection


nmcli con down connection_name

set up a given connection


nmcli con up connection_name

sudo systemctl restart NetworkManager.service

nmcli con mod em1-1 ipv4.method manual ipv4.addr "192.168.1.23/24 192.168.1.1,


10.10.1.5/8, 10.0.0.11"
sets manual addressing and the addresses in em1-1 profile.

nmcli con modify ABC -ipv4.addresses "192.168.100.25/24 192.168.1.1"


removes the specified IP address from (static) profile ABC.

nmcli con modify ABC +ipv4.addresses "192.168.100.25/24 192.168.1.1"


add the specified IP address from (static) profile ABC.

hwaddress ether 02:01:02:03:04:08

sudo brctl addbr br2


sudo brctl addif br2 vmw1
sudo ip link set vmw1 up
sudo ip link set vmw2 up

Manjaro Linux
window + direction Switch between workstation
window + s Manage the the applications opened in each workplace

Configuration
Backup
Troubleshooting
Monitoring

############################# LUBUNTU ################


sudo nano /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg
Now, make sure the configuration file contains the following line ===> network:
{config: disabled}
sudo nano /etc/netplan/00-installer-config.yaml
ethernets:
ens33:
addresses: [192.168.20.160/24]
gateway4: 192.168.20.2
nameservers:
addresses: [192.168.20.2, 8.8.8.8]

sudo netplan try


Now, to make the changes permanent, run the following command:
$ sudo netplan apply

Вам также может понравиться