PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Router 14.04



well100
06.12.14, 18:13
Hallo,

ich habe ein kleines Problem.

und zwar will ich eine Art fritzbox bauen.


Meine Netzwerk konfiguration


cat /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

# The primary network interface
auto eth1
iface eth1 inet dhcp
# This is an autoconfigured IPv6 interface
iface eth1 inet6 auto

#eth0 is manually configured, and slave to the “bond0″ bonded NIC
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0

#eth2 ditto, thus creating a 2-link bond.
auto eth2
iface eth2 inet manual
bond-master bond0

#eth3 ditto, thus creating a 2-link bond.
auto eth3
iface eth3 inet manual
bond-master bond0

# bond0 is the bonding NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
address 192.168.1.1
netmask 255.255.255.0
dns-nameservers 192.168.1.1

bond-mode balance-rr
bond-miimon 100
bond-slaves none

auto bond0:1
iface bond0:1 inet static
address 192.168.1.6
netmask 255.255.255.0

auto bond0:2
iface bond0:2 inet static
address 192.168.1.7
netmask 255.255.255.0

auto bond0:3
iface bond0:3 inet static
address 192.168.1.8
netmask 255.255.255.0

auto bond0:4
iface bond0:4 inet static
address 192.168.1.9
netmask 255.255.255.0

auto bond0:5
iface bond0:5 inet static
address 192.168.1.10
netmask 255.255.255.0

auto bond0:6
iface bond0:6 inet static
address 192.168.1.11
netmask 255.255.255.0



# lokales WLAN-Netzwerk
auto wlan0
iface wlan0 inet static
address 192.168.1.2
# Bei Verbindungsproblemen alternativ ein anderes Subnetz und Broadcast wählen
# address 192.168.4.1
netmask 255.255.255.0
broadcast 192.168.1.255
# broadcast 192.168.4.255

## vorhandene Regeln und Ketten zuerst löschen
pre-up /sbin/iptables -F
pre-up /sbin/iptables -X
pre-up /sbin/iptables -t nat -F

## Maskieren der LAN-Schnittstelle, Port-Forwarding & Nat aktivieren
## Die Eingangs-Schnittstelle kann hier entfallen, da mehre Teilnetze auf das Internet zugreifen dürfen.
## In diesem Fall muss hier 192.168.1.0/24 verwendet werden.

pre-up iptables -A FORWARD -o eth1 -s 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT
pre-up /sbin/iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
pre-up /sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
pre-up /sbin/sysctl -w net.ipv4.ip_forward=1
pre-up /etc/init.d/hostapd restart


Über das Bonding komme ich problemlos ins Internet.

Über wlan komme ich nicht ins internet und kann auch mein internes netz nicht ping vom client aus, selbst die 192.168.1.2 geht nicht zu ping.

IP zuweissung über dhcp funktionert.

DHCP Konfig:



cat /etc/dhcp/dhcpd.conf
#
# Sample configuration file for ISC dhcpd for Debian
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 6000;
max-lease-time 72000;
#Generelle Einstellungen

# Rogue-DHCP-Server nicht erlauben (siehe oben)
authoritative;

# Definition des ersten (einzigen) Subnetzes
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
# Lease-Time (in Sekunden)
default-lease-time 600;
max-lease-time 7200;
option domain-search "ls";
option domain-name-servers 192.168.1.1;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
}



Ich weiss leider nicht mehr weiter vielleicht habt ihr noch eine idee woran es liegen könnte