Alright, this is a beginner's topic, in this article i will teach you how to show IP address on lubuntu from the terminal.
It's very simple, open the terminal (CTRL + ALT + T), and then type the following command :
ifconfig
That's it, that command will show you all network interface on your computer and show the IP address as well.
kernelpanic@lubuntulaptop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:ec:d3:a8:36
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3523 errors:0 dropped:0 overruns:0 frame:0
TX packets:3523 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:335580 (335.5 KB) TX bytes:335580 (335.5 KB)
wlan0 Link encap:Ethernet HWaddr 00:21:5d:5f:06:2c
inet addr:192.168.43.236 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::221:5dff:fe5f:62c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:120301 errors:0 dropped:0 overruns:0 frame:0
TX packets:74820 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:136331386 (136.3 MB) TX bytes:11359891 (11.3 MB)
As you can see ifconfig command gives me the eth0 which is my cable network (LAN), lo which is local loopback (localhost), wlan0 which is my wireless network.
You can also shows network interface in individual, the format is ifconfig [interface], for example:
- ifconfig eth0
- ifconfig eth1
- ifconfig lo
- ifconfig wlan0
- ifconfig wlan3
The ifconfig is capable more than just displaying IP address and MAC address, but also it can be use to change IP address, netmask, gateway, etc.
But that would be on another article, for now all you newbie needs to know is how to display IP address using ifconfig.
You can also use iwconfig, which is dedicated command for displaying wireless network interface, go ahead try tying iwconfig on your terminal.
kernelpanic@lubuntulaptop:~$ iwconfig
wlan0 IEEE 802.11abgn ESSID:"LG-D686_4850"
Mode:Managed Frequency:2.412 GHz Access Point: BE:F5:AC:D2:88:06
Bit Rate=57.8 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-39 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:21 Missed beacon:0
lo no wireless extensions.
eth0 no wireless extensions.
~ cheers ~
No comments:
Post a Comment