Инструменты пользователя

Инструменты сайта


linux:debian:network:alias:multiplegw
# 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
allow-hotplug eth0
iface eth0 inet static
        address 190.115.24.30
        netmask 255.255.255.252
        network 190.115.24.28
        broadcast 190.115.24.31
        gateway 190.115.24.29
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8 8.8.4.4
        dns-search net

auto eth0:0
iface eth0:0 inet static
        address 190.115.24.98
        netmask 255.255.255.255

auto eth0:1
iface eth0:1 inet static
        address 190.115.24.134
        netmask 255.255.255.255

auto eth0:2
iface eth0:2 inet static
        address 190.115.24.170
        netmask 255.255.255.252
        post-up ip route add 190.115.24.169/32 dev eth0:2 src 190.115.24.170 table cs
        post-up ip route add default via 190.115.24.169 table cs
        post-up ip rule add from 190.115.24.170 table cs
        post-down ip rule del from 190.115.24.170 table cs

auto eth0:3
iface eth0:3 inet static
        address 190.115.24.194
        netmask 255.255.255.255
linux/debian/network/alias/multiplegw.txt · Последнее изменение: 2014/07/22 17:52 — linko22@gmail.com