Library - Fix Your IP Address
Check Your IP on Windows XP and Vista
To check what IP address is assigned to your windows workstation
WinXP / Vista command:ipconfig
will dispaly all configured interfaces on your workstation.
Windows IP Configuration Wireless LAN adapter Wireless Network Connection: Connection-specific DNS Suffix . : Belkin Link-local IPv6 Address . . . . . : fe80::d988:a1af:c8e6:559d%12 IPv4 Address. . . . . . . . . . . : 192.168.2.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.2.1 Ethernet adapter Local Area Connection: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Belkin
The output above shows two interfaces "Wireless LAN adapter" and "Ethernet adapter Local" attached to wireless connection and LAN connection.
Renew Your IP Address on windows XP/VISTA
if you see that neither Interfaces are assigned an IP address, you can use the "ipconfig /renew" command which will try to connect to the local DHCP server and get an IP address from this server.
Check your IP address on Linux
To check your IP address on a linux server/workstation use the command:
eth0 Link encap:Ethernet HWaddr FE:FD:40:3E:E4:CF inet addr:22.214.171.124 Bcast:126.96.36.199 Mask:255.255.255.0 inet6 addr: fe80::fcfd:40ff:fe3e:e4cf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7176228 errors:0 dropped:0 overruns:0 frame:0 TX packets:7412838 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1052695156 (1003.9 MiB) TX bytes:1687986180 (1.5 GiB) 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:65478 errors:0 dropped:0 overruns:0 frame:0 TX packets:65478 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12686839 (12.0 MiB) TX bytes:12686839 (12.0 MiB)
The above command will show all interfaces currently installed on the server/ workstation.
There are a number of options that can be used to show the state of the interface or assign, change certain aspects of the interface.
OPTIONS interface The name of the interface. This is usually a driver name followed by a unit number, for exam- ple eth0 for the first Ethernet interface. up This flag causes the interface to be activated. It is implicitly specified if an address is assigned to the interface. down This flag causes the driver for this interface to be shut down. [-]arp Enable or disable the use of the ARP protocol on this interface. [-]promisc Enable or disable the promiscuous mode of the interface. If selected, all packets on the net- work will be received by the interface. [-]allmulti Enable or disable all-multicast mode. If selected, all multicast packets on the network will be received by the interface. metric N This parameter sets the interface metric. mtu N This parameter sets the Maximum Transfer Unit (MTU) of an interface. dstaddr addr Set the remote IP address for a point-to-point link (such as PPP). This keyword is now obso- lete; use the pointopoint keyword instead. netmask addr Set the IP network mask for this interface. This value defaults to the usual class A, B or C network mask (as derived from the interface IP address), but it can be set to any value. add addr/prefixlen Add an IPv6 address to an interface. del addr/prefixlen Remove an IPv6 address from an interface. tunnel aa.bb.cc.dd Create a new SIT (IPv6-in-IPv4) device, tunnelling to the given destination. irq addr Set the interrupt line used by this device. Not all devices can dynamically change their IRQ setting.
The above options can be used both on freebsd and Linux servers.
Check your IP address on FreebsdTo check you IP address on a freebsd server/workstation use the command:
Configure Network Card (Interface)To configure your network card, requires root privileges. This can be done from the command line with ifconfig but would cause these changes to disappear after each reboot. To make these changes permananent would require editing /etc/rc.conf file.
With a editor (vi) add an entry for each network card present on the system, example:
ifconfig_xl0="inet 172.31.16.5 netmask 255.255.255.0"
repeat the above command for each interface, replacing eth0 with the name of the interface returned by issuing the ifconfig command.
servers running freebsd or unix servers interfaces can be configured with more that one network IP Address, these are known as aliases or virtual network.
The command to use:
ifconfig_xl0_alias0="inet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx"
DNS Lookup - Lookup A, MX, SOA, txt, cname