![]() | Red Hat Enterprise Linux |
NetworkingNetwork InterfacesUsual CommandsStatic AddressingMethod 1 : nmstate (RHEL 9)Install nmsate package: ![]() Create YAML format of network cards profile file ![]() Edit YAML file ![]() Apply Profile ![]() Configuration Files/etc/services services and their ports /etc/sysconfig/network-scripts/ Network Cards Configuration files Directory /etc/sysconfig/network-scripts/ifcfg-interfacename [+] /etc/nsswitch DNS order file /etc/resolv.conf DNS client file [+] NB: Il est possible d'éditer le fichier /etc/resolv.conf pour indiquer les adresses des serveurs DNS. Mais la configuration sera temporaire car c'est un fichier qui est généré au démarrage du networking Pour configurer les adresses DNS de facon permanente il faur l'éditer dans le fichier de configuration de la carte réseau Ports and Servicesnetstat | ss[root@lab ~]# netstat network statistics [root@lab ~]# netstat -a all [root@lab ~]# netstat -t specify TCP connections [root@lab ~]# netstat -u specify UDP connections [root@lab ~]# netstat -r show routage table [root@lab ~]# netstat -c show in real time [root@lab ~]# ss Display Sockets Statistics Check opened port
[root@redhat ~]# nc -t -z 10.0.0.7 80 Routingadd a routeactivate routage edit /etc/sysctl.conf net.ipv4.ip_forward = 0 change 0 to 1 tape command sysctl –p to activate settings and show settings Show Routing Table[root@lab ~]# ip route [root@lab ~]# netstat -r [root@lab ~]# tracepath host |