[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Interface für VDSL-Modem in /e/network/interfaces



Am Mittwoch, den 26.08.2015, 21:55 +0200 schrieb Paul Muster:
> Hallo,
> 
> wie trägt man das Interface für ein VDSL-Modem richtig in
> /etc/network/interfaces einer Debian-Installation ein?
> 
> * Die Debian-Maschine soll PPPoE terminieren, d.h. pppd läuft dort (und
> nicht auf dem Modem, was sonst ja auch ein Router wäre).
> * Es geht um VDSL-Bitstream von der Telekom, d.h. das PPPoE muss in VLAN
> 7 ablaufen.
> * Es sollte nachher möglich sein, auf das Webinterface des Modems
> zuzugreifen.
> * Das IP-Netz zwischen der Debian-Maschine und dem Modem (für den
> Zugriff auf das Webinterface) soll 192.168.100.0/24 sein, das Modem hat
> 192.168.100.2.
> 
> Vorschlag:
> -----
> auto eth1
> iface eth1 inet static
> 	address 192.168.100.1
>         netmask 255.255.255.0
> 	post-up modprobe 8021q
> 	post-up vconfig add eth1 7
> 	post-down vconfig rem eth1.7
> -----
> Sieht das eurer Meinung nach gut aus?
> Oder lieber
> -----
> auto eth1
> iface eth1 inet static
> 	address 192.168.100.1
>         netmask 255.255.255.0
> 
> auto eth1.7
> iface eth1.7 inet manual
> -----
> , weil das viel mehr Debian-Stil ist?

Hier hab ich das so gelöst:
-----
auto eth1
iface eth1 inet static
        address <IP-Adresse-1>
        netmask 255.255.255.248

auto eth1:1
iface eth1:1 inet static
        address <IP-Adresse-2>
        netmask 255.255.255.248

auto eth1:2
iface eth1:2 inet static
        address <IP-Adresse-3>
        netmask 255.255.255.248

auto eth1:3
iface eth1:3 inet static
        address <IP-Adresse-4>
        netmask 255.255.255.248

auto eth1:4
iface eth1:4 inet static
        address <IP-Adresse-5>
        netmask 255.255.255.248

auto eth1:5
iface eth1:5 inet static
        address <IP-Adresse-6>
        netmask 255.255.255.248

auto eth1.2
iface eth1.2 inet ppp
        provider <ppp-config-name>
        vlan-raw-device eth1

-----
Allerdings gibt es bei uns kein Modem/Router.
eth1 bekommt direkt die fixen öffendlichen IP's die uns vom Provider
zugeteilt wurden.
Sobald eth1.2 aktiviert wird, startet automatisch ppp und stellt die
Verbindung her.

> Die Konfigurationsdatei für pppd hat dann diese Zeile:
> 
> pty "/usr/sbin/pppoe -I eth1.7 ..."
>                             ^^
> Müsste passen, oder?

Ja, sieht bei mir ganz ähnlich aus.

-----
# Use the pppoe program to send the ppp packets over the Ethernet link
# This line should work fine if this computer is the only one accessing
# the Internet through this DSL connection. This is the right line to use
# for most people.
pty "/usr/sbin/pppoe -I eth1.2 -T 80"
lcp-echo-interval 20
lcp-echo-failure 3
-----

Die Einstellungen für pppoe liegen bei mir unter:
/etc/ppp/peers/<ppp-config-name>
Auf diese Datei bezieht sich die Einstellung in
/etc/network/interfaces

-- 
mfG Sascha

~~~
Daß Verstand erst mit den Jahren kommt, sieht man nicht eher ein, als
bis der Verstand und die Jahre da sind.
		-- Jean Paul

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: