hab ein Debianserver aufgesetzt komme aber irgendwie nicht ins Internet. Der Gateway ist in diesem Falle eine FritzFonBox. Wohlgemerkt komme ich nur mit dem Server nicht ins Internet, die Windows-Workstations funktionieren tadellos via DHCP der FritzFonBox oder einer statischen Zuordnung. Hier mal die nützlichen Dinge:
/etc/network/interfaces:
Code: Alles auswählen
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.2.2
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-nameservers 192.168.2.1
/etc/resolv.conf:
Code: Alles auswählen
nameserver 192.168.2.1
route -n:
Code: Alles auswählen
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth1
ifconfig:
Code: Alles auswählen
eth1 Link encap:Ethernet HWaddr 00:E0:7D:75:D1:EE
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:7dff:fe75:d1ee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:996 errors:0 dropped:0 overruns:0 frame:0
TX packets:964 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:109383 (106.8 KiB) TX bytes:335355 (327.4 KiB)
Interrupt:169 Base address:0x400
Innerhalb des LANs geht alles:
Code: Alles auswählen
# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=4.44 ms
# ping 192.168.2.23
PING 192.168.2.23 (192.168.2.23) 56(84) bytes of data.
64 bytes from 192.168.2.23: icmp_seq=1 ttl=64 time=0.013 ms
Code: Alles auswählen
# ping heise.de
ping: unknown host heise.de
# ping 193.99.144.80
PING 193.99.144.80 (193.99.144.80) 56(84) bytes of data.
(kehrt selbst nach 10 min. warten nicht zurück)
cYa
Sebastian