Local IP address - Windows XP/Linux
Local IP address - Windows XP/Linux
Author
Discussion

scared but happy

Original Poster:

24,147 posts

259 months

Wednesday 11th January 2006
quotequote all
'Cos I is thick and forgot! What is the command to find my local IP address in windows XP.
And how do I set it in Linux from the command prompt thingy - (simple answer please unix people)

docevi1

10,430 posts

278 months

Wednesday 11th January 2006
quotequote all
either just click on the network connection and it's listed on the left hand side, or goto command prompt and use ipconfig /all

Plotloss

67,280 posts

300 months

Wednesday 11th January 2006
quotequote all
ipconfig maybe paired with /all depending on what you need is the XP command you need.

zaktoo

1,401 posts

270 months

Wednesday 11th January 2006
quotequote all
Depending on your particular flavour of Linux, it may be as simple as finding the menu item for networking in the GUI, or you may have to dig around in /etc/sysconfig/network-scripts/ifcfg-<device name>.

HTH

Ciao

Zak

_dobbo_

14,619 posts

278 months

Wednesday 11th January 2006
quotequote all
zaktoo said:
Depending on your particular flavour of Linux, it may be as simple as finding the menu item for networking in the GUI, or you may have to dig around in /etc/sysconfig/network-scripts/ifcfg-<device name>.

HTH

Ciao

Zak


you can actually run "ifconfig /all" from a shell in linux to retrieve this information.

zumbruk

7,848 posts

290 months

Wednesday 11th January 2006
quotequote all
scared but happy said:
'Cos I is thick and forgot! What is the command to find my local IP address in windows XP.
And how do I set it in Linux from the command prompt thingy - (simple answer please unix people)


In a DOS window; ipconfig /all

In a (usually root) shell; ifconfig -a

(Note the "p" and the "f" - I'm always typing the wrong one.)

In XP, Control Panel -> Networking -> Interface Properties -> TCP/IP (from memory ...)

In Gnome, Prewferences -> System Preferences -> Network Settings -> Configuration Agent

ifconfig is one of those things that grew like Topsy, and is likely better done with
a GUI;

/sbin/ifconfig interface [address_family] [ address
[/prefix_length] [dest_address]] [ addif address
[/prefix_length]] [ removeif address [/prefix_length]]
[arp | -arp] [auth_algs authentication algorithm]
[encr_algs encryption algorithm]
[encr_auth_algs authentication algorithm] [auto-revarp] [
broadcast address] [deprecated | -deprecated] [preferred |
-preferred] [ destination dest_address] [ether [address]]
[ [failover] | [-failover]] [ group [ [name] | ""] ] [
index {if_index}] [ metric n] [modlist] [modinsert
mod_name@pos] [modremove mod_name@pos] [ mtu n] [ netmask
mask] [plumb] [unplumb] [private | -private] [nud | -nud]
[ set [address] [/netmask]] [ [standby] | [-standby]] [
subnet subnet_address] [ tdst tunnel_dest_address] [ token
address/prefix_length] [ tsrc tunnel_src_address]
[trailers | -trailers] [up] [down] [usesrc [ name | none]]
[xmit | -xmit] [encaplimit n | -encaplimit] [thoplimit n]
[router | -router] [zone zonename | -zone]

Yuck.