Routing Problem
Michael Ring
mring at ringnet.de
Mon Nov 25 15:32:02 CET 2002
Hallo zusammen!
> Ausgabe von "route -n" und "ifconfig"
> "cat /proc/sys/net/ipv4/ip_forward"
Hier kommen die Angaben die noch fehlten:
Matrix:/home/mring# cat /proc/sys/net/ipv4/ip_forward
1
----------
Matrix:/home/mring# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 eth0
------------
Matrix:/home/mring# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:4B:69:76:C4
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3296 errors:0 dropped:0 overruns:0 frame:0
TX packets:2488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2621215 (2.4 MiB) TX bytes:196791 (192.1 KiB)
Interrupt:10 Base address:0xa800
eth1 Link encap:Ethernet HWaddr 00:50:04:A7:F5:D0
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1279 errors:0 dropped:0 overruns:0 frame:0
TX packets:668 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:133241 (130.1 KiB) TX bytes:80429 (78.5 KiB)
Interrupt:11 Base address:0xa400
eth1:1 Link encap:Ethernet HWaddr 00:50:04:A7:F5:D0
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xa400
eth1:2 Link encap:Ethernet HWaddr 00:50:04:A7:F5:D0
inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xa400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:574 errors:0 dropped:0 overruns:0 frame:0
TX packets:574 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2439559 (2.3 MiB) TX bytes:2439559 (2.3 MiB)
-------
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.2
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
auto eth1:1
iface eth1:1 inet static
address 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
auto eth1:2
iface eth1:2 inet static
address 192.168.4.1
netmask 255.255.255.0
network 192.168.4.0
broadcast 192.168.4.255
> Welche Distri? Version?
Als Distri verwende ich Debian Woody/Testing (Stand von heute 25.11.2002)
> > Folgende Situation:
> > Ich habe einen Server mit 2 Netzwerkkarten (eth0, eth1).
> > An jeder Netzwerkkarte hängt mind. 1 Rechner.
> > eth0 ist mit subnet 192.168.1.0 und eth1 mit subnet 192.168.2.0
> > konfiguriert.
> > Advanced Router im Kernel einkompiliert und in
> > /etc/network/options mit ip_forward = yes eingeschaltet.
> > IP wird per dhcp zugewiesen und gleichzeitig auch immer der server
> > als router bzw. def gw übergeben.
> > Nun das eigentliche Problem:
> > 192.168.1.1 kann 192.168.2.1 nicht pingen bzw. anders herum.
> >
> > Was habe ich vergessen?
More information about the Linux
mailing list