How to build a network on a Linux operating system?

The reader may already be accustomed to make a network on the Windows operating system, yet another case padaLinux, still many people who feel Linux is something that is hard, including me, but all that is just a mere suggestion and because we are afraid or unwilling to try, the following I will explain about how to build a network on a Linux operating system. There are several things that must be done before building such a network include:

1.
1. note card series from the vendor and the network card (NIC) that we have, the type and brand, its bus type (ISA or PCI), if the ISA also noted IRQ and I / O addresses.
2. check whether the kernel during the boot process is to recognize the network card or by using the command dmesg.

The reader may already be accustomed to make a network on the Windows operating system, yet another case padaLinux, still many people who feel Linux is something that is hard, including me, but all that is just a mere suggestion and because we are afraid or unwilling to try, the following I will explain about how to build a network on a Linux operating system. There are several things that must be done before building such a network include:


1. note card series from the vendor and the network card (NIC) that we have, the type and brand, its bus type (ISA or PCI), if the ISA also noted IRQ and I / O addresses.
2. check whether the kernel during the boot process is to recognize the network card or by using the command dmesg.

Every Linux distro has a program in their respective utilities, including utilities for configuring Linux into a network. On RedHat distribution we can we can do pensettingan network card through linuxconf.

Ip setting aims to demonstrate or provide id on our computers will be connected to the network. So good that our computer or other computers can communicate with each other. Must be remembered that in doing pensettingan we must enter as a user with high priority or administrator is often referred to as root "#". Sharing files on linux is aimed so that we can share files with other computers.

For our file sharing using samba. Samba is an

prangkat UNIX application that uses the SMB protocol (server message block). On linux with the latest version of samba is already available devices. But if no sorce we can download.Download samba [root @ proxy / home / install] $ wget. http://us3.samba.org/samba/ftp/samba-latest.tar.gz or search for it on samba.org mirrors.

Common commands used in Linux or UNIX, using ifconfig command. Ifconfig command is very commonly found in all Linux distributions and UNIX and is used to configure or check the configuration of network devices. Ifconfig can be used to determine the IP address (IP address) of a network card, netmask, and his broadcast address. Or replace some parameters TSB. ifconfig will be always be used as a command from the script file / etc / rc.d / rc.local on each interface that has been supported by the system.

1. Setting the IP Address, Netmask, and Broadcast

Syntax for setting these opinions are: ifconfig interface IP_Address netmask mask broadcast address. The command is used to determine the basic parameters on the network card, wherein:

a. interface - is a label identifying the network card is used. For example, etherner1 known as etho.

b. IPaddress - is the value to assign the IP address of network card

c. Netmask mask - used to determine subnetmask. This parameter can be omitted if the mask is passed will be set by default (meaning the network is not included in this subnet)

d. Broadcast address-an address from the broadcast on the network. The default host ID on all bits set to one. All the hosts in the same network must have the same broadcast address.

In the following example, use ifconfig to set IP address and netmask of an NE2000 Ethernet network card.

# Ifconfig eth0 192.168.0.12 netmask 255.255.255.0

Can also use the hostname of an IP address,

# Ifconfig eth0 netmask 255.255.255.0 broadcast 11c 192 168 255 255

2. Checking the configuration with ifconfig

To verify whether the configuration was embedded, use the command

# Ifconfig eth0.

In the ifconfig command, there are several optional parameters such as up and down where the parameters are used to activate (enable) or deactivate (disable) a network card. The parameters are used: # ifconfig eth0 down (to disable the network card). # Ifconfig eth0 up (to re-activate the network card). If we intend to change the identity of a network card (an IP address, netmask, and broadcast address), then we must disable the network card, then configure it again with a new identity and then we'll switch back and do not forget to check the configuration again, then use ping command.

Use the command ifconfig is only temporary, because if the computer rebooted, the configuration we have made previously inactive again. This is because the files TCP / IP startup tidakdiperintahkan to activate these configurations.

Working steps

IP settings on linux (ubuntu)

A. Changing the configuration script memekai

1. jarkom login: jarkom

2. password: jarkom

3. jarkom @ labjar $ su (root)

4. root @ labjar #

5. # ifconfig root @ labjar

6. root @ labjar # pico / etc/rc.d/rc.inet1.conf

# Information for eth0

7. # Config information for eth0:

IPADDR [1] = "192 168 100 104"

8. netmask = "255.255.255.0"

9 The gateway = "192.168.100.1"

10 ifconfig eth0 root @ labjar

11 root @ labjr # / etc/rd/rc.inet1 restart apply konf.

Root @ 12 # ping ip own labjar

root @ labjar # ping 19,168,100,104 repply

Root @ 13 # ping ip next labjar

root @ labjar # ping repply 192 168 100 103

B. wear display

1. root @ labjar netconfig # check config

2. hostname: optional computer name

3. domain: root

Select a static ip

4. Ip address: "192.168.100.14"

5. Netmask: 255.255.255.0

6. Gate Way: 192.168.100.1

7. Mipa.uns.ac.id: 222 124 162 145

Man net config

Man if config

Analysis

1. While filling the login, maybe there are some PCs that do not successfully login if filled with a login that has been determined. For that filled the root login.

2. # Pico / etc/rc.d/rc.inet1.conf used to manually edit the IP

3. Ifconfig if the windows is the ipconfig. Useful to check the ethernet already installed or not. Also ifconfig also to see the IP address.

4. / Etc/rc.d/rc.inet1.restart used to restart. This command is used when we change the IP. After the IP we save and we check, it turns out the IP still has not changed, then we use this command to restart the IP which we have previously saved.

Conclusion

1.
1. To find the IP configuration has been replaced in Linux, use the command: cd/etc/rc/d-inet1.restart.
2. On Linux to do the setup of TCP / IP using a script (.... / Etc / ....)
3. On Linux IP configuration update / disave first and can be run.
4. To check whether the computer network we are able to function properly, use the command "ping [computer's IP configuration]" for example: ping 192 168 100 104
5. To mengetahiu indication / IP configuration details on our computer, use the command: "ifconfig".


Related Post



2 komentar:

iLham A.m said...

perlu ada google translate nie...!!!!
nie mas tak kasih crannya kunjungi
http://www.ilham-am.co.cc/2010/08/cara-membuat-google-translator.html


salam knal...!!!!

budi said...

thanxs mas infonya.. dulu udah pernah aku pasang tapi aku copot lagi.. next time bisa aku pasang lagi deh klo mang sobat2 butuh translate

Post a Comment

Please leave a comment here
Comment spam and other promotions will be deleted