In meinem Server sind 2 NICs, eine Onboard und eine PCI-Steckkarte. Ich wollte jeder eine eigene IP zuweisen, aber das hat anscheinend nicht richtig geklappt. Wenn ich das Netzwerk-Kabel nämlich in die Steckkarte stecke (in der Onboard steckt kein Kabel) antwortet der Rechner auf Pings an beide Adressen. Wenn ich das Kabel in die Onboard-Karte stecke gibt es auf keinen Ping eine Antwort.
Die Onboard-Karte funktioniert aber offensichtlich. Ich habe nämlich einen VMGuest installiert und die Onboard-Karte gebridged. Der VMGuest antwortet nur wenn das Kabel in der Onboard-Karte steckt (so wie ich es auch erwarten würde).
Meine /etc/network/interfaces sieht wie folgt aus:
Code: Alles auswählen
# 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 eth0
iface eth0 inet static
address 192.168.10.200
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.9
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.10.9
dns-search XXXXX.XXXXX
auto eth1
iface eth1 inet static
address 192.168.10.201
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.9
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.10.9
dns-search XXXXX.XXXXX
Die Ausgabe von ifconfig -a zeigt folgendes:
Code: Alles auswählen
eth0 Link encap:Ethernet HWaddr 00:22:15:9f:5a:71
inet addr:192.168.10.200 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:13:f7:ef:32:4f
inet addr:192.168.10.201 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::213:f7ff:feef:324f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3058914 errors:0 dropped:0 overruns:0 frame:0
TX packets:2676012 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3519891199 (3.2 GB) TX bytes:2386719220 (2.2 GB)
Interrupt:18 Base address:0x2c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13933 errors:0 dropped:0 overruns:0 frame:0
TX packets:13933 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12420343 (11.8 MB) TX bytes:12420343 (11.8 MB)
Ich nehme mal an dass RX und TX empfangene und gesendete Bytes sind. Komischerweise steht hier was bei eth1 obwohl ich mich für meine Tests ausschließlich mit der IP 192.168.10.200 verbunden habe. Hier steht aber 0.0B
Meine Frage ist also: wie bekomme ich es hin, dass jeweils die entsprechende Karte auf ihre IP antwortet?
Vielen Dank vorab
a.j.: Ich habe Ubuntu-Server 8.04 installiert