ubuntuusers.de

interface

Datum:
12. April 2012 10:00
Code:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 eth0:1 eth1
iface eth0 inet dhcp

iface eth0:1 inet static
	address 192.168.110.24
	netmask 255.255.255.0

iface eth1 inet static
address 192.168.108.6
netmask 255.255.255.0
gateway 192.168.108.1
#broadcast 192.168.108.255
#network 192.168.108.0
up route del -net 0.0.0.0 netmask 0.0.0.0 dev eth1
up route add -net 192.168.110.0 netmask 255.255.255.0 gw 192.168.108.1 metric 100 dev eth1