Getting network status and other info using the nmcli command Line that starts with “inet addr:” displays actual IP address of network interface. You may see other names for your network devices, such as wlan0/ath0 etc for wireless cards. ar0 – This is my wireless communication network interface.it can not be used to communicate with rest of the computer or cannot transfer files. lo – A Lookback interface is communication channel with only one endpoint i.e.You can transfer files or use internet with eth0. eth0 – An Ethernet network interface is a communication channel with device connected to network switch or hub.RX bytes:9787416 (9.3 MiB) TX bytes:2871485 (2.7 MiB)Īccording to the ifconfig command, I have total three network interface cards (NICs) on my Ubuntu server: TX packets:11462 errors:1 dropped:1 overruns:0 carrier:0 RX packets:41108 errors:0 dropped:0 overruns:0 frame:0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 TX packets:14680 errors:0 dropped:0 overruns:0 carrier:0 RX packets:14680 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 Sample iutputs: eth0 Link encap:Ethernet HWaddr 00:0F:EA:91:04:07 Older version of Ubuntu version users needs to use the ifconfig command: Ip l show | egrep -A1 'eth0|lo' Use the ifconfig on Ubuntu to get status of network iunterfaces We can use the grep command/ egrep command to filter out information easily too: My default gateway or router IP is set to 172.26.0.1. The above outputs indicates my eth0 has 172.26.4.84/20 as IP address. But, how do you see an IP address assigned to the network interface such as eth0? Try: The UP indicates that network interface is up and running. Link/ether 0a:da:ad:83:da:95 brd ff:ff:ff:ff:ff:ffįrom the above outputs, it is clear that I have two network interfaces named lo and eth0. Sample outputs: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 Let type the following ip command on latest version of the Ubuntu Linux server or desktop: You need to use the ip command or ifconfig command command to view the status of network interfaces card and as well as to configure a network interface itself. Open your terminal and use the following commands. We can verify network connectivity or status of your network Interfaces/card using standard Linux commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |