Route: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Linux) |
(→Linux) |
||
Zeile 14: | Zeile 14: | ||
<pre> | <pre> | ||
ip route add 192.168.1.0/24 dev eth0 | ip route add 192.168.1.0/24 dev eth0 | ||
ip route add 192.0.2.0/24 via 10.0.0.1 dev eth0 | |||
ip route add default via 10.0.0.1 dev eth0 | |||
</pre> | |||
in /etc/network/interfaces | |||
<pre> | |||
up route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254 | |||
down route del -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254 | |||
</pre> | </pre> | ||
Version vom 7. November 2019, 20:48 Uhr
Links
Linux
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0 route add -host 178.254.55.44 gw 10.0.47.9 dev wlan0 route del -net 172.17.0.0/16 gw 0.0.0.0
ip route add 192.168.1.0/24 dev eth0 ip route add 192.0.2.0/24 via 10.0.0.1 dev eth0 ip route add default via 10.0.0.1 dev eth0
in /etc/network/interfaces
up route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254 down route del -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254
Default-Route löschen
ip route del 0/0