- Forums
- Linux Systems
- Linux Vs Windows Commands - Ifconfig Ipconfig Show Ip Address
This Page Contains information about Linux Vs Windows Commands - Ifconfig Ipconfig Show Ip Address By wallpaperama in category Linux Systems with 0 Replies. [2912], Last Updated: Sat May 18, 2024
wallpaperama
Thu Jun 21, 2007
0 Comments
5227 Visits
if you want to display your computer assigned ip address with linux or windows, this is how you do it.
LINUX: (you must be logged in as root)
Command:
ifconfigLINUX OUTPUT EXAMPLE:
[root@root ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 01:D0:B7:06:09:BB
inet addr:192.168.1.1 Bcast:192.168.1.125 Mask:255.255.255.248
inet6 addr: fe80::2d0:b7ff:fe08:9bb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:144 errors:0 dropped:0 overruns:0 frame:0
TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15430 (15.0 KiB) TX bytes:15652 (15.2 KiB)
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:16436 Metric:1
RX packets:43 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3219 (3.1 KiB) TX bytes:3219 (3.1 KiB)
WINDOWS:
Command:
ipconfigWINDOWS OUTPUT EXAMPLE:
C:\Documents and Settings\laptop>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : linksys
IP Address. . . . . . . . . . . . : 192.168.1.114
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
NOTE: for windows, you can do
ipconfig /all to show all the interface information
here is how it looks with ipconfig /all command:
C:\Documents and Settings\laptop>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : dv2000
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : linksys
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : linksys
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connecti
on
Physical Address. . . . . . . . . : 00-16-D3-95-D8-E4
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.114
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . . : Thursday, June 21, 2007 6:39:26 AM
Lease Expires . . . . . . . . . . : Friday, June 22, 2007 6:39:26 AM
hope this helps - if you ever need web hosting or dedicated web server, visit webune.com they have excellent services.