Linux - Network Configuration (ip, route, dhclient, systemd-resolve, netplan)
Find code and diagrams at: https://www.EliTheComputerGuy.com
Configuring Networking at the command line in Linux can be confusing. It’s important to know that you use many different application to manage networking and these applications may be different based on your distribution or version.
ifconfig – See IP address and Network Interface ID (deprecated, but works)
ip addr – See IP address and Network Interface ID
route -n – view default gateway
systemd-resolve --status – view DNS
sudo dhclient -v -r – DHCP release
sudo dhclient -v – DHCP renew
Set Static IP Address
Navigate to: /etc/netplan/
sudo vim file.yaml – edit thye file that ends in yaml
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 192.168.121.199/24
gateway4: 192.168.121.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
sudo netplan apply – apply network changes
Видео Linux - Network Configuration (ip, route, dhclient, systemd-resolve, netplan) канала Eli the Computer Guy
Configuring Networking at the command line in Linux can be confusing. It’s important to know that you use many different application to manage networking and these applications may be different based on your distribution or version.
ifconfig – See IP address and Network Interface ID (deprecated, but works)
ip addr – See IP address and Network Interface ID
route -n – view default gateway
systemd-resolve --status – view DNS
sudo dhclient -v -r – DHCP release
sudo dhclient -v – DHCP renew
Set Static IP Address
Navigate to: /etc/netplan/
sudo vim file.yaml – edit thye file that ends in yaml
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 192.168.121.199/24
gateway4: 192.168.121.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
sudo netplan apply – apply network changes
Видео Linux - Network Configuration (ip, route, dhclient, systemd-resolve, netplan) канала Eli the Computer Guy
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Linux Network Configurationroute for Viewing Routing Tables in LinuxBasic Linux Network Troubleshooting10 ways Linux is just better!Networking basics (2020) | What is a switch, router, gateway, subnet, gateway, firewall & DMZLinux Terminal 201: Networking Commands You Should Know! - HakTip 152How to Use NetPlan in Ubuntu 18.04Programming Intro - How to Self Study CodingDO NOT design your network like this!! // FREE CCNA // EP 6TCP/IP and Subnet MaskingLinux File System/Structure Explained!NEMS Linux 1.4.1 - The FREE Nagios Enterprise Monitoring ServerTop 10 Linux Job Interview QuestionsLinux - UFW Firewall Setup (ufw)Linux - Install Ubuntu Server in VirtualBox5 Basic Networking commands for everyone (2021) | How to troubleshoot network issues on Windows?Beginner's Guide To The Linux TerminalComputer Networking Tutorial - 39 - Routing Tables ExplainedDNS Enumeration Tutorial - Dig, Nslookup & Host