Sapiens Search

How discover your local IP address on Linux?

1-Open terminal
2-Type
ifconfig <interface>
where interface is your name of your network interface
3-Look for
inet end.:

Example

ifconfig eth0
ifconfig eth1
ifconfig wlan0

Output

eth1 Link encap:Ethernet Endereço de HW 78:e4:00:22:f8:86
inet end.: 192.168.10.100 Bcast:192.168.10.255 Masc:255.255.255.0
endereço inet6: fe80::7ae4:ff:fe22:f886/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:371047 erros:0 descartados:0 excesso:0 quadro:221100
Pacotes TX:245369 erros:59 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:1000
RX bytes:475482323 (475.4 MB) TX bytes:57852121 (57.8 MB)
IRQ:17

Arcam Sapientia

Some other usefull commands are, ifconfig, ifconfig -a to list all networks.

If you don't know the name of your network interface just type ifconfig and search in each result what you are looking for.

No comments:

Post a Comment