Κεφάλαιο 4ο: Ρυθμίσεις δικτύου

Εικόνα: hasiotis
Submitted by hasiotis on Τρι, 11/03/2008 - 21:44

Δεδομένου ότι έχουμε δύο κάρτες δικτύου, στην πρώτη (eth0) έχουμε συνδεδεμένο το DSL modem, ενώ στη δεύτερη (eth1) θα έχουμε το switch στο οποίο θα συνδέονται τα client PC. Ετσι το αρχείο "/etc/network/interfaces" θα πρέπει να είναι κάπως έτσι:


# 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

# PPPoE connection
auto provider
iface provider inet ppp
pre-up /sbin/ifconfig eth0 up
provider provider

# Local Network
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0