Archive of News about Google, Technology News,Technical News, Business News, Medical News, and Software Testing News
Thursday, August 19, 2010
Configure IP Address in Linux
Technology News Tutorial Today : How to Configure IP address on linux
For configure IP Address can be done with two IP address setting mode in linux, the first way with the methods on the fly, this configuration will be lost when the computer reboots.
# Ifconfig eth0 [ip_address] netmask [netmask]
Suppose we want to change the ip address of our computer with the ip address of 192.168.0.1 with subnetmask 255.0 255 255 .. then the command is as follows:
# Ifconfig eth0 netmask 255.255.255.0 10.252.100.1
The second way is by editing the file / etc / network / interfaces, whose contents are
as follows:
# This file describes the network interfaces available on your system
# And how to activate Them. For more information, see interfaces (5).
# The loopback network interface auto lo iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.252.100.1
netmask 255.255.255.0
Auto word preceding the name of an interface indicates that the interface is switched on automatically at boot time. Lo Interface does not have an IP configuration for use as the loopback lo so have the exact IP 127.0.0.1.
This IP address used by computers to communicate with itself.
Configuration for eth0 should be granted because this interface is configured using a static IP. Parameters that should be mentioned for this type of interface is static:
1. address: specify IP address used by a computer.
2. netmask: determine subnet mask of a computer network.
When finished making changes to this file you can enable these settings
by running the command:
debian: ~ # / etc / init.d / networking start
To check whether these settings are correct, type ifconfig
Thats To configure IP address in linux
hopefully useful configure IP address in linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment