One day I attended a seminar linux, uh I be given even know how to how to set ip yes I already wrote below to share this ...
Unlike in Microsoft Windows that gives the name of the interface with the Local Area conection, in linux network interface will be given a name with ethx, for example eth0 for the first ethernet interface and eth1 for the second ethernet interface and so on, to give the ip on the interface in linux we can use beriku ifconfig command:
$ sbin / ifconfig eth0 netmask 255.255.255.0 10.55.1.36/24
command above can mean that we will give the ip address
10.55.1.36 netmask 255.255.255.0 with the first ethernet interface, which is eth0. With the command ifconfig on setting ip and netmask will be temporary, so that when the computer restart the network settings that we run before will be lost, for that we can write the interface configuration files, interface configuration files located on ubuntu
pada file /etc/network/interfaces , configuration parameters are as follows:
auto eth0 auto eth0
iface eth0 inet static IFACE eth0 inet static
address 192.168.1.250 address 192.168.1.250
netmask 255.255.255.0 netmask 255.255.255.0
network 192.168.1.0 network 192.168.1.0
broadcast 192.168.1.255 broadcast 192.168.1.255
after the above configuration file is saved, the next step is to restart
networking configuration with the following command:
/etc/init.d/networking restart / Etc / init.d / networking restart
From Blog: http://tekertin.blogspot.com/
Unlike in Microsoft Windows that gives the name of the interface with the Local Area conection, in linux network interface will be given a name with ethx, for example eth0 for the first ethernet interface and eth1 for the second ethernet interface and so on, to give the ip on the interface in linux we can use beriku ifconfig command:
$ sbin / ifconfig eth0 netmask 255.255.255.0 10.55.1.36/24
command above can mean that we will give the ip address
10.55.1.36 netmask 255.255.255.0 with the first ethernet interface, which is eth0. With the command ifconfig on setting ip and netmask will be temporary, so that when the computer restart the network settings that we run before will be lost, for that we can write the interface configuration files, interface configuration files located on ubuntu
pada file /etc/network/interfaces , configuration parameters are as follows:
auto eth0 auto eth0
iface eth0 inet static IFACE eth0 inet static
address 192.168.1.250 address 192.168.1.250
netmask 255.255.255.0 netmask 255.255.255.0
network 192.168.1.0 network 192.168.1.0
broadcast 192.168.1.255 broadcast 192.168.1.255
after the above configuration file is saved, the next step is to restart
networking configuration with the following command:
/etc/init.d/networking restart / Etc / init.d / networking restart
From Blog: http://tekertin.blogspot.com/
0 komentar:
Post a Comment