- Mitglied seit
- 11. Okt 2010
- Beiträge
- 33
- Punkte für Reaktionen
- 0
- Punkte
- 6
Hallo,
ich versuche auf der DS410 mit DSM 3.0-1372 virtuelle IP-Adressen auf der eth0 Schnittstelle zu konfigurieren.
Wenn ich manuell die Konfig via ipconfig vornehme, funktioniert zwar die IP-Konfiguration, aber nach einem Reboot ist alles wieder weg.
Das habe ich getan:
Das funktioniert so leider nicht. Nach dem Reboot finde ich die Interfaces nicht in der Ausgabe von ifconfig -a.
Also habe ich weiter gesucht und in /etc/rc.networking das meiner Meinung nach relevante Skript gefunden, um die Interfaces beim Boot zu konfigurieren.
Wenn ich dieses Skript ausführe kommen folgende Meldungen:
Wenn ich nun wieder ifconfig -a bzw. netstat -r ausführe, bekomme ich leider keine Änderung.
Was ich zu erkennen glaube: Die IP-Adressen können nicht zugewiesen werden. Ich bin mir allerdings nicht sicher, ob das Skript ggf. Probleme mit den Doppelpunkten ) hat.
Kann hier vielleicht jemand weiter helfen?
Viele Grüße,
Matthias.
ich versuche auf der DS410 mit DSM 3.0-1372 virtuelle IP-Adressen auf der eth0 Schnittstelle zu konfigurieren.
Wenn ich manuell die Konfig via ipconfig vornehme, funktioniert zwar die IP-Konfiguration, aber nach einem Reboot ist alles wieder weg.
Das habe ich getan:
Rich (BBCode):
echo 'DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.1.1.10
NETMASK=255.255.255.0' > /etc/sysconfig/network-scripts/ifcfg-eth0:1
echo 'DEVICE=eth0:2
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.9.1.10
NETMASK=255.255.255.0' > /etc/sysconfig/network-scripts/ifcfg-eth0:2
echo 'DEVICE=eth0:3
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.1.1.20
NETMASK=255.255.255.0' > /etc/sysconfig/network-scripts/ifcfg-eth0:3
echo 'DEVICE=eth0:4
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.9.2.20
NETMASK=255.255.255.0' > /etc/sysconfig/network-scripts/ifcfg-eth0:4
Das funktioniert so leider nicht. Nach dem Reboot finde ich die Interfaces nicht in der Ausgabe von ifconfig -a.
Also habe ich weiter gesucht und in /etc/rc.networking das meiner Meinung nach relevante Skript gefunden, um die Interfaces beim Boot zu konfigurieren.
Wenn ich dieses Skript ausführe kommen folgende Meldungen:
Rich (BBCode):
DS410> ./etc/rc.network restart
./rc.network: eval: line 1: ifconfig_eth0:1=inet: not found
./rc.network: eval: line 1: ifconfig_v6init_eth0:1=: not found
./rc.network: eval: line 1: ifconfig_eth0:2=inet: not found
./rc.network: eval: line 1: ifconfig_v6init_eth0:2=: not found
./rc.network: eval: line 1: ifconfig_eth0:3=inet: not found
./rc.network: eval: line 1: ifconfig_v6init_eth0:3=: not found
./rc.network: eval: line 1: ifconfig_eth0:4=inet: not found
./rc.network: eval: line 1: ifconfig_v6init_eth0:4=: not found
ifconfig: SIOCSIFFLAGS: Cannot assign requested address
ifconfig: SIOCSIFFLAGS: Cannot assign requested address
ifconfig: SIOCSIFFLAGS: Cannot assign requested address
cat: can't open '/sys/class/net/eth0:4/bonding/slaves': No such file or directory
ifconfig: SIOCSIFFLAGS: Cannot assign requested address
ifconfig: SIOCSIFADDR: No such device
eth0 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:56035791 errors:0 dropped:0 overruns:0 frame:0
TX packets:38217475 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3608949018 (3.3 GiB) TX bytes:4143637496 (3.8 GiB)
Memory:b0000000-b0020000
eth0:1 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
eth0:2 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
eth0:3 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
eth0:4 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
lo Link encap:Local Loopback
LOOPBACK MTU:1500 Metric:1
RX packets:153240 errors:0 dropped:0 overruns:0 frame:0
TX packets:153240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11953330 (11.3 MiB) TX bytes:11953330 (11.3 MiB)
ifconfig: tun: error fetching interface information: Device not found
Del default router 192.168.1.1
ip: RTNETLINK answers: No such process
ip: SIOCSIFFLAGS: Cannot assign requested address
./rc.network: line 1: can't create /sys/class/net/eth0:1/bonding/:1: nonexistent directory
ifconfig: SIOCSIFADDR: File exists
./rc.network: eval: line 1: showstat_eth0:1=1: not found
ip: SIOCSIFFLAGS: Cannot assign requested address
./rc.network: line 1: can't create /sys/class/net/eth0:2/bonding/:2: nonexistent directory
ifconfig: SIOCSIFADDR: File exists
./rc.network: eval: line 1: showstat_eth0:2=1: not found
ip: SIOCSIFFLAGS: Cannot assign requested address
./rc.network: line 1: can't create /sys/class/net/eth0:3/bonding/:3: nonexistent directory
ifconfig: SIOCSIFADDR: File exists
./rc.network: eval: line 1: showstat_eth0:3=1: not found
ip: SIOCSIFFLAGS: Cannot assign requested address
./rc.network: line 1: can't create /sys/class/net/eth0:4/bonding/:4: nonexistent directory
ifconfig: SIOCSIFADDR: File exists
./rc.network: eval: line 1: showstat_eth0:4=1: not found
eth0 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:56035791 errors:0 dropped:0 overruns:0 frame:0
TX packets:38217475 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3608949018 (3.3 GiB) TX bytes:4143637496 (3.8 GiB)
Memory:b0000000-b0020000
eth0:1 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
eth0:2 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
eth0:3 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
eth0:4 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
Memory:b0000000-b0020000
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:1500 Metric:1
RX packets:153240 errors:0 dropped:0 overruns:0 frame:0
TX packets:153240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11953330 (11.3 MiB) TX bytes:11953330 (11.3 MiB)
DS410> Add default router 192.168.1.1
ip: RTNETLINK answers: File exists
Wenn ich nun wieder ifconfig -a bzw. netstat -r ausführe, bekomme ich leider keine Änderung.
Rich (BBCode):
DS410> ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MASTER 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:11:32:02:D4:D4
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:32ff:fe02:d4d4/64 Scope:Link
UP BROADCAST RUNNING ALLMULTI 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:4 (4.0 B) TX bytes:0 (0.0 B)
Memory:b0000000-b0020000
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:1500 Metric:1
RX packets:153423 errors:0 dropped:0 overruns:0 frame:0
TX packets:153423 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11967238 (11.4 MiB) TX bytes:11967238 (11.4 MiB)
DS410> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Was ich zu erkennen glaube: Die IP-Adressen können nicht zugewiesen werden. Ich bin mir allerdings nicht sicher, ob das Skript ggf. Probleme mit den Doppelpunkten ) hat.
Kann hier vielleicht jemand weiter helfen?
Viele Grüße,
Matthias.
Zuletzt bearbeitet von einem Moderator: