answersLogoWhite

0

set the IP address with the ifconfig command

use the syntax: ifconfig interface address netmask up

view your network interfaces with the command ifconfig then for example

to set address to 172.12.0.1 on the interface eth0 use:

ifconfig eth0 172.12.0.1 netmask 255.255.0.0 up

make sure you have root permissions to do this, either be logged in as root

or preceed the command with "sudo".

you don't have to specify the subnet mask if you don't want to, but it is generally recommended to do so.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you set up the ip address of lan card in Linux?

ifconfig <if device> inet <ip address>


How do you set IP Address of a LAN card in Linux?

Assuming you're not using DHCP (in which case it would be set automatically), you would use:ifconfig eth0 10.10.0.1substituting the correct interface card and IP address, of course.


How do you redirect an IP address in Linux?

swagg


Explain what an IP address in Linux?

An IP address is the same thing whether you use Linux, Windows, OS X, Haiku, ReactOS, DOS, UnixWare, etc. An IP address is a "unique" identifier for a host on a network.


How do you request an IP address from a DHCP server in Linux?

1. dhclient -r This releases the current IP address lease 2. dhclient This requests a new IP address.


How do you get the IP address in Linux?

Run /sbin/ifconfig or on the terminal jst type: ifconfig -a


How do you set up an internet connection in Red Hat Enterprise Linux?

system-config-network Set the ip address to ur system as internetconnection provide. set the gefault gateway is ip of ur router. service network restart chkconfig network on Good-luck -Vivek(9579216049)


What utility would you use on a Linux Operating system to find your IP address?

type on a Linux terminal: ifconfig Note: it is ipconfig in Windows.


How do you change your IP address in Linux?

If your router assigns IP addresses via DHCP, it is better to configure the router to pre-assign IP addresses to certain hostnames.If you do not have a DHCP server running in your router, you can specify an IP address for a network interface with the ifconfig command. For example:ifconfig eth0 192.168.20.10


What is static or dynamic IP address and IP configuration?

"IP configuration" determines how your computers IP address is assigned. A "static address" is what would be set if you want to manually assign your computer an IP. A "dynamic IP address" would use DHCP or some other form of this to automatically assign your device an IP without an user intervention and usually should be set unless you need to make you IP set to something very specific.


Using command prompt how do you find your ip address?

Answer In the Windows command prompt, type "ipconfig". That will list basic information, including your IP address, of all your network interfaces. Be warned this will only return you your local IP address. That means if you're on a LAN, then you'll get the IP address of that network and not your WAN IP address. *************************** Note: It is "ifconfig" on a Linux operating system.


How you use ping in Linux?

ping [hostname] or ping [IP address]For example:ping wiki.answers.comorping 127.0.0.1