Obtaining IP Address and Other Information
This document is to assist you to quickly find your IP address as you may require this information from time to time to check you are connected to the LAN and have been issued a DHCP address.
The IP Address is the unique address given to each computer and must be configured correctly in order to function on the network over TCP/IP. It is good to learn what appropriate configurations are needed for your locations and reference it when problems arise. For example, you may have the correct IP but the gateway or DNS setting could be the problem.
Active Connection Information
The following is a summary of the connection information from the graphical tool. The key details are IP Address, which is the unique set of numbers assigned to your system, the default route which is the path your system takes to get to the Internet, and DNS information which takes hostnames like www.google.com and translates it for your computer which only undertands the IP number of that address.
Active Connection Chart
Ethernet Item | Details | Examples |
---|---|---|
Interface |
| 802.11 WiFi (wlan0), Wired Ethernet |
Hardware Address |
| 00:05:4E:4C:XX:XX |
Driver |
| ath5k_pci, iwl4965 |
Speed |
| 11Mb/s, 54Mb/s, 100Mb/s |
Security |
| WEP, WPA, LEAP |
IP Address |
| 192.168.0.81, 9.62.10.10 |
Broadcast Address |
| 192.168.0.255, 9.62.10.255 |
Default Route |
| 192.168.0.1, 9.62.10.1 |
Primary DNS |
| 9.0.3.1, 9.0.5.1 |
Secondary DNS |
| 9.0.3.1, 9.0.5.1 |
Terminal Session Tools
Command prompt - This is a tad more complex and best left to experienced users.
- Open a shell prompt: Right Click on Desktop --> Click 'Open Terminal'. (or locate the terminal icon from the menu)
- Then switch to root with the su - command
$ su -
Password ******* - The ifconfig command is similar to Windows ipconfig, at the command prompt issue /sbin/ifconfig. (press the enter key after each command)
/sbin/ifconfig
- this will return information on installed interfaces, look for inet addr: text as that is where the ip address is printed (see example below).
- If you know the device such as eth0 (Wired ethernet) or wlan0 (Wireless), you can show only that one device using ifconfig
: #/sbin/ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:05:4E:4C:75:45
inet addr:192.168.0.81 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::205:4eff:fe4c:7545/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3652 errors:0 dropped:0 overruns:0 frame:0
TX packets:4128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2075441 (1.9 MiB) TX bytes:890207 (869.3 KiB) - The route command prints the routing information:
/sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
default 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0 - The mii-tool will show if you have a hardware link from your system to a router/switch:
/sbin/mii-tool
eth0: negotiated 100baseTx-FD, link okFor example, in this example the Ethernet connection is 100 speed with FD meaning full duplex (the fastest type). If there was a problem with the wall drop or the router, the message "eth0: no link" would return to the screen.
- The service network restart command can be used to clean up a system much like rebooting:
/sbin/service network restart
This will restart devices set to start upon boot up (i.e. eth0), for Wireless, use the Network Applet to connect to a network.
- The ifup and dhclient commands will try to get an IP address:
/sbin/dhclient eth0
or
/sbin/ifdown eth0
/sbin/ifup eth0 - The ping command checks if you can talk to the world:
ping www.google.com
0 comments
Post a Comment