Linux Commands for Networking Configuration And Troubleshooting Part 2 👾

Welcome Again 😍😍😍



    How to Change MTU for an Network Interface

        In Networking, MTU(Maximum Transmission Unit) is the representation   of Packets that a network-connected-device can accept. The mtu allow you to set the limit the packet transmission on interface.MTU size is based on the specifications of the network administration.

In Order To check the mtu Value on Linux, Open Terminal and type the following Command  


   ip addr | grep mtu

It Will Show you the mtu Value of all Interfaces. By Default All Interfaces        Have Value of 1500 bytes. In Order To Change The Value of MTU through ifconfig. Open The Terminal And type the following command
 
 
    
    sudo ifconfig eth0 mtu 1000
 Note: [MTU isn't used for all interfaces]
 
    

    How to Enable Promiscuous Mode 

What is Promiscuous mode? Actually our Network card has two types of modes One is Managed Mode And second one is Monitor Mode . In Manged Mode, when a packet is received by card, it verifies that the packets belongs to it or not, If Not , It Drop The Packets, But In Monitor Mode, The Network Card receive all the packets.One important difference is Promiscuous mode does, indeed, tell the card to process all frames, (i.e. remove 802.11 frame headers ) including those not destined for it.
But, monitor mode tells the card to pass along the frames intact (with 802.11 headers) and not present plain 'ol Ethernet frames to the host.

 
So In order To Enable The Promiscuous mode First U Have Superuser Permission, Then Open The Terminal and type the following 
 
        sudo ifconfig wlan0 promisc
 

How To Disable Promiscuous Mode
 
 
In Order To Disable , Use the " -promisc " Option , In Order To Do That Open The Terminal and type the Following Command It Will Disable The Promiscuous Mode (Promiscuous Mode Is Also Know As Monitor Mode We Will Discuss It Later )
 
    sudo ifconfig wlan0 -promisc 

    

 

How To Add Aliases To Network Card 

 

Ifconfig Provide the Option In Order To Add Aliases to the Network Card. 

So In Order To Do That Type The Following Command,

 

sudo ifconfig eth0:0 172.11.26.122   

The new Aliases has been added in your Network Card. In order To Check It .
 
 
sudo ifconfig
 
sudo ifconfig (name that u assigned)
 
 

How To Remove The Aliases To Network Card

 

If You Don't Need For Aliases That You Have Assigned You Can Actually Remove It  So In Order To Do That Open The Terminal And The Following Command .
 
sudo ifconfig eth0:0 down
 
 
To Verify It : 
 
                                sudo ifconfig



Be Strong !!!💪

Comments

Popular posts from this blog

Linux Commands for Networking Configuration And Troubleshooting