...
Private IP address | https://linuxhandbook.com/find-ip-address/ | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
| ||||||||||||||
Public IP address | https://www.tutorialspoint.com/find-my-public-ip-address-from-linux-command-line | |||||||||||||
Centos | config file | |||||||||||||
dhcp | sudo more /etc/sysconfig/network-scripts/ifcfg-ens18
| |||||||||||||
static | sudo more /etc/sysconfig/network-scripts/ifcfg-ens18
| |||||||||||||
Ubuntu | Config file | |||||||||||||
netplarenderer: networkd | ||||||||||||||
renderer: NetworkManager ( not installed by default ) | ||||||||||||||
networkd | ||||||||||||||
netplan |
ethernets: ens33:
version: 2 sudo netplan applysudo netplan get ( get the config information ) ip addr
| |||||||||||||
Network Manager |
| |||||||||||||
DHCP | /etc/network/interfaces auto eth1 iface eth1 inet dhcp sudo systemctl restart networking | |||||||||||||
Static | ||||||||||||||
...