To set the promiscuous mode, use the following command. Today’s network tools use the promiscuous mode to capture and analyze the packets that flow through the network interface. If not, it drops the packet normally, but in the promiscuous mode is used to accept all the packets that flow through the network card. What happens in normal mode, when a packet is received by a network card, it verifies that it belongs to itself. Not all network interfaces support MTU settings. The MTU is able to handle a maximum number of octets to an interface in one single transaction.įor example, “ ifconfig eth” will set the maximum transmission unit to a given set (i.e. The MTU allows you to set the limit size of packets that are transmitted on an interface. The “ mtu” argument sets the maximum transmission unit to an interface.
#Linux command to find mac address how to#
How to Change MTU for a Network Interface To assign an IP address, Netmask address, and Broadcast address all at once using the “ ifconfig” command with all arguments as given below. How to Assign an IP, Netmask, and Broadcast to Network Interface For example, the “ ifconfig eth0 broadcast 172.16.25.63” command sets the broadcast address to an interface eth0. Using the “ broadcast” argument with an interface name will set the broadcast address for the given interface. How to Assign a Broadcast to Network Interface For example, “ ifconfig eth0 netmask 255.255.255.224” will set the network mask to a given interface eth0. Using the “ ifconfig” command with the “ netmask” argument and interface name as ( eth0) allows you to define a netmask to a given interface. How to Assign a Netmask to Network Interface For example, “ ifconfig eth0 172.16.25.125” will set the IP address to interface eth0. To assign an IP address to a specific interface, use the following command with an interface name ( eth0) and ip address that you want to set. How to Assign an IP Address to Network Interface For example, the “ ifconfig eth0 down” or “ ifdown eth0” command deactivates the eth0 interface if it is in an inactive state. The “ down” or “ ifdown” flag with interface name ( eth0) deactivates the specified network interface. For example, “ ifconfig eth0 up” or “ ifup eth0” will activate the eth0 interface. The “ up” or “ ifup” flag with interface name ( eth0) activates a network interface if it is not inactive state and allowing to send and receive information. TX packets:2221421 errors:0 dropped:0 overruns:0 carrier:0 RX packets:2345583 errors:0 dropped:0 overruns:0 frame:0 Using interface name ( eth0) as an argument with the “ ifconfig” command will display details of the specific network interface. View Network Settings of Specific Interface TX packets:5022927 errors:0 dropped:0 overruns:0 carrier:0 RX packets:5022927 errors:0 dropped:0 overruns:0 frame:0 TX packets:2220777 errors:0 dropped:0 overruns:0 carrier:0 RX packets:2344927 errors:0 dropped:0 overruns:0 frame:0 It displays the results for eth0, lo, sit0 and tun0. The following ifconfig command with the -a argument will display information of all active or inactive network interfaces on the server. Display Information of All Network Interfaces
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 TX packets:5019066 errors:0 dropped:0 overruns:0 carrier:0 RX packets:5019066 errors:0 dropped:0 overruns:0 frame:0 TX packets:2217673 errors:0 dropped:0 overruns:0 carrier:0 RX packets:2341604 errors:0 dropped:0 overruns:0 frame:0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ~]# ifconfigĮth0 Link encap:Ethernet HWaddr 00:0B:CD:1C:18:5A The ifconfig command is also used to check the assigned IP address of a server. The “ ifconfig” command with no arguments will display all the active interfaces details.