Ubuntu Network configuration file in/etc/network/intrfaces;
SuSE's network configuration is under/etc/sysconfig/network/, one profile per Nic.
Intrfaces The following content means assigning IP using DHCP:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Dynamic Host Configuration Protocol (DHCP) is a client/server Protocol this automatically provides an Internet Pr Otocol (IP) host with it IP address and other related configuration information such as the subnet mask and default Gatew Ay.
Modify the following to configure the static IP address:
auto lo
iface lo inet loopback
# The Primary network interface
Auto Eth0
#iface eth0 inet DHCP
iface eth0 inet static
address 192.168.80.129
netmask 255.255.255.0
gateway 192.168.80.2
Note: You only need to set address (IP address), netmask (subnet mask), Gateway (gateways) These three items ok,network and broadcast are not writable.
Setting up a DNS server
Are configured within this file/etc/resolv.conf.
Content:
NameServer 192.168.80.2
NameServer 8.8.8.8
Save exit.
Note: After restarting Ubuntu, it is not possible to surf the internet again, the problem is/etc/resolv.conf. Once restarted, the DNS for this file configuration is automatically modified to the default value. So you need to permanently modify DNS. Here's how:
# Vim/etc/resolvconf/resolv.conf.d/base
NameServer 192.168.80.2
NameServer 8.8.8.8
3. Restart the networking service to make it effective:
#/etc/init.d/networking Restart
This allows the network configuration to be permanently active.
Linux Network configuration related