Hallo zusammen
Bei mir zu Hause wurde ein neuer Router installiert. Früher konnte ich einer fixen Mac-Adresse eine fixe IP-Adresse zuordnen. Dies war aus verschiedenen Gründen notwendig. Nun unterstützt der neuer Router diese Funktion nicht. Also habe ich mich an diesen
Online-Dokumentation gehalten. Hier ist mein Auszug:
|
Quellcode
|
1
2
3
4
5
6
7
|
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=("192.168.2.101 netmask 255.255.255.0 broadcast 192.168.1.255")
routes_eth0=("default via 192.168.1.1")
|
Beim Ausführen passiert nun folgendes:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
workstation home # /etc/init.d/net.eth0 restart
* Caching service dependencies ... [ ok ]
* Stopping sshd ... [ ok ]
* Unmounting network filesystems ... [ ok ]
* Stopping ddclient ... [ ok ]
* Stopping apache2 ... [ ok ]
* Bringing down interface eth0
* Stopping dhcpcd on eth0 ... [ ok ]
* Bringing up interface eth0
* You are using a bash array for config_eth0.
* This feature will be removed in the future.
* Please see net.example for the correct format for config_eth0.
* 192.168.2.101 ... [ ok ]
* You are using a bash array for routes_eth0.
* This feature will be removed in the future.
* Please see net.example for the correct format for routes_eth0.
* Adding routes
* default via 192.168.1.1 ...
RTNETLINK answers: No such process [ !! ]
workstation home #
|
Was mache ich genau falsch? Die Adresse des Routers stimmt sicher! Ich danke euch für die Hilfe
Hier noch die Ausgabe von ifconfig
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
workstation home # ifconfig
eth0 Link encap:Ethernet HWaddr 70:f3:95:00:44:3e
inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::72f3:95ff:fe00:443e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:303 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21965 (21.4 KiB) TX bytes:2002 (1.9 KiB)
Interrupt:16
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:2584 errors:0 dropped:0 overruns:0 frame:0
TX packets:2584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:211848 (206.8 KiB) TX bytes:211848 (206.8 KiB)
workstation home #
|
Gruss
nutshell