\ F.Q.D.N = Hostname + Domain name |
Let’s start by looking at the information about hostname & networking
NETWORKING =YES HOSTNAME = SERVER254 NETWORKING_IPV6=YES
#vi /etc/hosts 192.168.0.254 Server254. Example.com server254 :wq!
Syn: if config [options] [interface] Options: netmask Up Down Ex: # if config ethʘ
#ifconfig
Syn: #if config ethʘ <ip-address> net mask <sub net mask> <up/down> #if config ethʘ 192.168.0.254 net mask 255.255.255.0 up #ifconfig ethʘ To verify
(a) #setup (b) System-config-network-tui --> you could also check the output of the interface config file #vim /etc/sysconfig/network-scripts/ifcfg- ethʘ Device = ethʘ BOOTPROTO =None ONBOOT =Yes IPADDR =192.168.0.254 NETMASK = 255.255.255.0 :wq
Syn: # eth tool <interface> # eth tool eth ʘ
#ifdown eth ʘ
#ifup eth ʘ *Note:
WARNING: Restarting the network service interrupts all network connections and any client that is currently connected.
Syn: # service <service name> <stop/start/restart/status> # service network restart
# service – status – all
Syn: #chkconfig --level <run levels> <service name> <on/off> #chkconfig network on
# chkconfig –list network
#chkconfig network off Routing: When you have a system that has two or more network interfaces, they are called dual-bomed (or) multi bomed systems. You need to make sure that each interface has a gateway that it can route through. Syn: route [options, Add Add a net route Del Deletes an Existing route Flush Flushes any temporary routes
# route
#route add default gw 192.168.0.1 ethʘ
# route
Learn more about Linux Interview Questions in this blog post. Interested in mastering Linux ? Check out this blog post to learn more Linux Training Videos
Networking utilities: Ping: Tests the connectivity between two hosts #ping 192.168.0.254
#ping –c 3 192.168.0.254 Net stat: Shows information about connections (open, closed and listening).
Syn: net stat [options] Options: -r Displays the routing table. -I Displays interface statistics -t shows tcp connections -U shows UDP connections -a Displays all sockets (tcp, udp, or local) -p Displays process Id’s -e Displays Extended information. --> To check that the connection is available for your clients: # netstat - tuape / grep ssh Client DNS Troubleshooting: /etc/sysconfig/network : contains the hostname of the system /etc/hosts : contains the local IP to hostname mappings /etc/resolu.cong : contains the IP address of the DNS servers Nslookup : queries (or) looks up a domain name or system Ping : Test connectivity between two hosts. Ethernet Bonding: Ethernet bonding is used to combine multiple interfaces into one, creating an increase in available bandwidth and redundancy. This is done by creating a special network interface file called as a channel bonding interface.
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.