Tag Archives: network

Network configuration in Linux

networkCfg
As a rule, network configuration in Linux is placed in /etc/network/interfaces file.

Here is the example of such config:

## The primary network interface - use DHCP
# auto eth0
# iface eth0 inet dhcp

## The primary network interface - use Fixed IP
auto eth0
iface eth0 inet static
address 192.168.2.10
gateway 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255

## This dns entry will push information to resolvconf.
dns-nameservers 11.22.33.44 55.66.77.88

To restart network configuration just use next commands:

# /etc/init.d/networking restart

or this:

# ifdown eth0
# ifup eth0

Grab sites with WGET


To download whole site use the next snopet:
wget -r -l0 -k -p http://site.name

Xen error – could not open /dev/net/tun: no virtual network emulation

After brctl show doesn’t outputs xenbr0 and such error occures when xm create domu.cfg:

  warning: could not open /dev/net/tun: no virtual network emulation
  Could not initialize device 'tap' 

Enable module in kernel:

-> Device Drivers
  -> Network device support
    -> Universal TUN/TAP device driver support

And your network will well worked.