PDA

View Full Version : windows ipconfig equivalent



Brohan
04-17-2004, 08:37 PM
I'm pretty sure that this question got answered before, but anyways; I might just give it a shot.

I want to find out what the equivalent for ipconfig i.e. listing IP Address, Subnet mask and default gateway. And where this command should go. I'm a real n00b and I did read the FAQ on networking, this is a real tiny answer.

mcaycedo
04-17-2004, 08:59 PM
ifconfig

Stephen
04-17-2004, 10:27 PM
I'm pretty sure that this question got answered before, but anyways; I might just give it a shot.

I want to find out what the equivalent for ipconfig i.e. listing IP Address, Subnet mask and default gateway. And where this command should go. I'm a real n00b and I did read the FAQ on networking, this is a real tiny answer.

In addition to the command above route -n will show you your default gateway. You use the commands in a console window in KDE it is the monitor with a shell on it in the taskbar the output would look similar to this.



HappyTux:/home/stephen# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:A7:17:E0:59
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8032 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:7772 dropped:0 overruns:0 carrier:15518
collisions:0 txqueuelen:1000
RX bytes:3586501 (3.4 MiB) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0xd000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2849 errors:0 dropped:0 overruns:0 frame:0
TX packets:2849 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1471394 (1.4 MiB) TX bytes:1471394 (1.4 MiB)

HappyTux:/home/stephen# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth0