public:technik:howto:multihoming

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
public:technik:howto:multihoming [2013/10/30 18:05] – Debian-Konfiguration vereinfacht - mehdorn mehdornpublic:technik:howto:multihoming [2013/10/30 18:08] (aktuell) – code -> file (wo es passt) mehdorn
Zeile 22: Zeile 22:
  
 ==== neue Routingtabellen ==== ==== neue Routingtabellen ====
-  * /etc/iproute2/rt_tables + 
-      <code>+  Tabellennamen eintragen 
 +<file|/etc/iproute2/rt_tables>
 # #
 # reserved values # reserved values
Zeile 33: Zeile 34:
 1       tbl_eth0 1       tbl_eth0
 2       tbl_eth1 2       tbl_eth1
-</code>+</file>
   * Tabelle tbl_eth0 füllen   * Tabelle tbl_eth0 füllen
 <code> <code>
Zeile 46: Zeile 47:
  
 ==== Policies konfigurieren mittels ip rule ==== ==== Policies konfigurieren mittels ip rule ====
 +
 <code> <code>
 ip rule add from 192.168.1.1 table tbl_eth0 ip rule add from 192.168.1.1 table tbl_eth0
Zeile 66: Zeile 68:
 ==== Gentoo ==== ==== Gentoo ====
  
-  * /etc/conf.d/net +<file|/etc/conf.d/net>
-<code>+
 config_eth0="192.168.1.1/24" config_eth0="192.168.1.1/24"
 routes_eth0="192.168.1.0/24 table tbl_eth0 src 192.168.1.1 routes_eth0="192.168.1.0/24 table tbl_eth0 src 192.168.1.1
Zeile 78: Zeile 79:
 default via 192.168.2.254 table tbl_eth1 src 192.168.2.1" default via 192.168.2.254 table tbl_eth1 src 192.168.2.1"
 rules_eth1="from 192.168.2.1 table tbl_eth1" rules_eth1="from 192.168.2.1 table tbl_eth1"
-</code>+</file>
  
 ==== Debian ==== ==== Debian ====
  
-  * /etc/network/interfaces +<file|/etc/network/interfaces>
-<code>+
 iface eth0 inet static iface eth0 inet static
     address 192.168.1.1     address 192.168.1.1
Zeile 98: Zeile 98:
     up ip route add default via 192.168.2.254  dev "$IFACE"                 table "tbl_$IFACE"     up ip route add default via 192.168.2.254  dev "$IFACE"                 table "tbl_$IFACE"
     up ip rule  add from        192.168.2.254                               table "tbl_$IFACE"     up ip rule  add from        192.168.2.254                               table "tbl_$IFACE"
-</code>+</file>
  
 Hinweis: Unter Debian wheezy (Kernel 3.2.0) wird dafür auch folgende Einstellung benötigt: FIXME Verifizieren! Hinweis: Unter Debian wheezy (Kernel 3.2.0) wird dafür auch folgende Einstellung benötigt: FIXME Verifizieren!
  • public/technik/howto/multihoming.1383152725.txt.gz
  • Zuletzt geändert: 2013/10/30 18:05
  • von mehdorn