In RH7 ifconfig command is deprecated and new
command is ip addr
tracepath is new command replaced tracert
ss –a will list all the listening and established ports
ip –s link show <<Ethernet>>
tracepath is new command replaced tracert
ss –a will list all the listening and established ports
ip –s link show <<Ethernet>>

Using network manager to configure IP
list all the network devices attached
# ls /sys/class/net
OR
# nmcli dev status

Show all the connections
# nmcli con show

Check the network configuration.

Configure a DHCP address for a nic card

Configure static IP for a nic card

Enable and disable Ethernet

Modify the Ethernet to auto connect at boot.

Delete a network configuration

Hostname Configuration:
/etc/resolv.conf contains the DNS suffixes and name server details

Alternatively, The remote host names can be configured on /etc/hosts file
In /etc/nsswitch.conf the order of name resolution is defined.

Here in this case the order is files then followed by DNS.
No comments:
Post a Comment