Thursday, November 17, 2011

Configuring Network Interfaces in Ubuntu Server

Configuring Network Interfaces in Ubuntu

vi /etc/network/interfaces

the above command will allow you to edit the network configuration file , to start editing the file press insert and start to input your network settings.

# 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 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

So above we have the network setup with auto ethernet interface 0,
setup with a static ip address, you can also use dhcp by replacing
static with dynamic.

Once you have entered all your values follow the steps to write the
changes

1. Press ESC
2. Hold Shift and press ";" Key
3. Now write wq , to write then quit
4. use q! to exit without making changes

Configuring Network Interfaces in Ubuntu Server, CONFIGURING NETWORK INTERFACES IN UBUNTU SERVER, How to Configuring Network Interfaces in Ubuntu Server, Cara Setting Ip di Ubuntu Server

0 comments:

Post a Comment