•Computers
are connected in a network to
exchange information or resources each other.
•Two or
more computer connected through network media
called computer network.
• Computer
loaded with Linux Operating
System can also be a part of network whether
it is small or large network by
its multitasking and multi user natures.
How to check IP of Linux System
#ifconfig
#ip addr
#ip addr show
#hostname –I
#/sbin/ifconfig
Network Layers
Network Manager
•NetworkManager can be used with the following types of connections: Ethernet, VLANs, Bridges, Bonds, Teams, Wi-Fi, mobile broadband .
•NetworkManager
can
configure network aliases, IP addresses,
static routes, DNS information, and
VPN connections, as well as many connection-specific parameters.
•Installing
NetworkManager: is installed by default on Red Hat
Enterprise Linux. If necessary, to ensure that it is, run
the following command as the root user:
•The
NetworkManager Daemon:
#yum install NetworkManager
#systemctl status NetworkManager
# systemctl
start NetworkManager
# systemctl
enable NetworkManager
NetworkManager nmtui:
#yum install NetworkManager-tui
#nmtui
NetworkManager nmcli:
•The NetworkManager command line tool, nmcli, provides a command line way to configure networking by controlling NetworkManager.
•It is installed, along with NetworkManager, by
default.
•nmcli is a
command-line tool which is used for controlling NetworkManager.
• nmcli command
can
also be used to display network device status, create, edit,
activate/deactivate, and delete network connections.
nmcli Examples:
#nmcli dev status
#nmcli connection
#nmcli device list
#nmcli –v
#nmcli general hostname
Running Network Script and Services:
•Systemctl start |stop|restart|status network
•Systemctl l enable |disable network
•Do not run directly any service using below command:
•/etc/init.d/servicename start|stop|restart|status
Network Configuration Path:
How to check & set Linux Hostname :
How to check Linux System Hostname:
How to set Linux System Hostname:
# hostnamectl set-hostname newhostname
No comments:
Post a Comment