namous
14.08.08, 09:45
Ich hab einen Server mit 6 Netzwerkanschlüssen.
2 OnBoard
4 auf einer D-Link 4-Port Server Card DFE-580TX
Installiert ist SuSE Linux Enterprise Server 10
Über Yast->Netzwerkkarte 3 von den 4 auf der D-Link-Card konfiguriert.
Eine davon hat aliase.
Und eine von den OnBoard-Interfaces.
Ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FC
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fecc:dafc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:321 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37104 (36.2 Kb) TX bytes:6648 (6.4 Kb)
Interrupt:50 Base address:0x4000
eth1 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.10 Bcast:10.128.92.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fecc:dafd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:18
collisions:0 txqueuelen:1000
RX bytes:1002 (1002.0 b) TX bytes:1360 (1.3 Kb)
Interrupt:58 Base address:0x4080
eth1:0 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.11 Bcast:10.128.92.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:58 Base address:0x4080
eth1:1 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.12 Bcast:10.128.92.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:58 Base address:0x4080
eth1:2 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.13 Bcast:10.128.92.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:58 Base address:0x4080
eth3 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.177 Bcast:195.245.10.191 Mask:255.255.255.240
inet6 addr: fe80::20d:88ff:fecc:daff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:18
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1300 (1.2 Kb)
Interrupt:74 Base address:0x4480
eth3:0 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.22.22.178 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:1 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.179 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:10 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.188 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:2 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.180 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:3 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.181 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:4 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.182 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:5 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.183 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:6 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.184 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:7 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.185 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:8 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.186 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:9 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.187 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth4 Link encap:Ethernet HWaddr 00:30:48:8E:C8:6C
inet addr:192.168.1.253 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fe8e:c86c/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:142 (142.0 b) TX bytes:314 (314.0 b)
Base address:0x5000 Memory:e0200000-e0220000
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:920 errors:0 dropped:0 overruns:0 frame:0
TX packets:920 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75595 (73.8 Kb) TX bytes:75595 (73.8 Kb)
Soweit so gut. Wenn ich jetzt an eth0 über einen Switch mit meinem Notebook verbinde, kann ich die IP die eth0 zugeordnet ist (192.168.1.254) pingen, aber jede andere IP von jedem anderen Interface auch, obwohl nur eth0 angeschlossen ist.
Wenn ich da Netzwerkkabel an eth1 oder ein anderes anschließe, dann kann ich absolut keine IP pingen.
Ziel ist, jedes Interface nur auf seine IP bzw. IPs hören zu lassen.
MfG
Marius
Edit: IP-Adressen anonymisiert, letztes Segment korrekt.
2 OnBoard
4 auf einer D-Link 4-Port Server Card DFE-580TX
Installiert ist SuSE Linux Enterprise Server 10
Über Yast->Netzwerkkarte 3 von den 4 auf der D-Link-Card konfiguriert.
Eine davon hat aliase.
Und eine von den OnBoard-Interfaces.
Ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FC
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fecc:dafc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:321 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37104 (36.2 Kb) TX bytes:6648 (6.4 Kb)
Interrupt:50 Base address:0x4000
eth1 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.10 Bcast:10.128.92.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fecc:dafd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:18
collisions:0 txqueuelen:1000
RX bytes:1002 (1002.0 b) TX bytes:1360 (1.3 Kb)
Interrupt:58 Base address:0x4080
eth1:0 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.11 Bcast:10.128.92.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:58 Base address:0x4080
eth1:1 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.12 Bcast:10.128.92.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:58 Base address:0x4080
eth1:2 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FD
inet addr:11.111.11.13 Bcast:10.128.92.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:58 Base address:0x4080
eth3 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.177 Bcast:195.245.10.191 Mask:255.255.255.240
inet6 addr: fe80::20d:88ff:fecc:daff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:18
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1300 (1.2 Kb)
Interrupt:74 Base address:0x4480
eth3:0 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.22.22.178 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:1 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.179 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:10 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.188 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:2 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.180 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:3 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.181 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:4 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.182 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:5 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.183 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:6 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.184 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:7 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.185 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:8 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.186 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth3:9 Link encap:Ethernet HWaddr 00:0D:88:CC:DA:FF
inet addr:122.222.22.187 Bcast:195.245.10.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0x4480
eth4 Link encap:Ethernet HWaddr 00:30:48:8E:C8:6C
inet addr:192.168.1.253 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fe8e:c86c/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:142 (142.0 b) TX bytes:314 (314.0 b)
Base address:0x5000 Memory:e0200000-e0220000
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:920 errors:0 dropped:0 overruns:0 frame:0
TX packets:920 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75595 (73.8 Kb) TX bytes:75595 (73.8 Kb)
Soweit so gut. Wenn ich jetzt an eth0 über einen Switch mit meinem Notebook verbinde, kann ich die IP die eth0 zugeordnet ist (192.168.1.254) pingen, aber jede andere IP von jedem anderen Interface auch, obwohl nur eth0 angeschlossen ist.
Wenn ich da Netzwerkkabel an eth1 oder ein anderes anschließe, dann kann ich absolut keine IP pingen.
Ziel ist, jedes Interface nur auf seine IP bzw. IPs hören zu lassen.
MfG
Marius
Edit: IP-Adressen anonymisiert, letztes Segment korrekt.