Linux Network Configuration And Troubleshooting Commands

 || Linux Network Configuration and Troubleshooting Commands ||


        Computers are Connected In a Network to exchange Information or Resources with Each Other.

Two Or More Computers connected through network media is Called as "Computer Network."

Computers loaded with Linux Operating System can also be part of network whether it is Small or Large Network By it's Multitasking and Multiuser Natures.

Maintenance of System an Network is task Of System Administrator.

In this Article, we are going to study about Frequently Used Network configuration and Troubleshoot Commands In Linux.

1]  ifconfig (Interface Configurator )

                Command is used to Initialize an interface, assign IP Address to interface and enable or disable interface on Demand.

With this Command you can View IP Address and Hardware/MAC Address assign to Interface and also 

MTU (Maximum Transmission Unit) size.

To Enable or Disable Specific Interface:

#ifup eth0- To Enable

#ifdown eth0- To Disable

#ifconfig -a = Displays all the interface available even if they are down 

#ifconfig -s = Displays Short List 

#ifconfig interface add addr/prefixlen = Used to add IPV6 Interface

#ifconfig interface del addr/prefixlen = To delete IPV6 interface

#ifconfig --help = To display help related to ifconfig Command.

2] PING Command (Packet Internet Groper)

            Command is Best Used to Test Connectivity Between Two Nodes. Wheteher it is Local Area Network [LAN] or Wide Area Network [WAN] .

Ping Uses ICMP [ Internet Control Message Protocol ] to communicate to Other Device.

For Example if you are trying to Connect through VPN to specific server with IP Address 8.8.8.8  you can check if Connectivity has been Established or Not.

#ping 8.8.8.8 

OR

#ping www.google.com

3] TraceRoute Command

            Traceroute is a network Troubleshooting Utility which shows number of hops taken to each destination also determine packets traveling paths

#traceroute 8.8.8.8


4] Netstat Command (Network Statistics)

            Netstat Command displays the connection Info, routing table information etc. 

#netstat -v = Displays Version

#netsta -i = Displays Interface

#netstat -s = Displays Statistics

#netstat -g = Displays multicast group Information for IPV4 and IPV6

#netstat -r  = Displays Information to Routing Table


Note: Here we are Only Discussing Basic's Required to be used In Linux Operating System As a Data Analyst. There Is more In deep In commands, If you want me to cover most of it with example please Comment Down.

Thank You!!!


Comments

Popular posts from this blog

Linux and Lone

Linux Boot And Startup Process