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.
0 Comments
Leave a Reply. |