Senin, 10 November 2014

Debian 7.2 Desktop as Server (IP Address Cofiguration)

Yesterday we've been doing the installation Debian 7.2 Desktop as Server, now we are going to configure the IP address that is etherne 0 for an ethernet connection to the router and ethernet 1 for the local connection.

Open a terminal as root.


nano /etc/network/interfaces

edit the following files.


# 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

 


then add the following command line (blue line) :

 # 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

auto eth0
iface eth0 inet static
        address 192.168.60.254
        netmask 255.255.255.0
        network 192.168.60.0
        broadcast 19.168.60.255
        gateway 192.168.60.1


auto eth1
iface eth1 inet static
        address 192.168.100.1
        netmask 255.255.255.0
        network 192.168.100.0
        broadcast 192.168.100.255


Then save and exit by pressing Ctrl + X on the keyboard

Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?
answer yes bay pressing y on keyboard.



then restart the networking service, in order to apply the new configuration, use this command :

/etc/init.d/networking restart or service networking restart

to see the new configuration the following command: 

ifconfig




that's how the configuration of the IP Address.

--------------------------------------------------------------------------------------------------------------------------------------

some of the problems that sometimes occur when configuring the IP Address:
the system does not recognize ethernet well, usually occurs in ethernet 1 (not onboard), use the following command:

ifup [interface_number]

ifup eth1






done.



 

Tidak ada komentar:

Posting Komentar

Related Posts Plugin for WordPress, Blogger...