routing - dwie trasy przy różnych sieciach
: 28 października 2013, 09:14
W routerze mam karty sieciowe:
eth0: 192.168.1.1/24
eth1: 192.168.2.1/24
Jak napisać ip route add dla podsieci np 10.0.0.0/24, taki zapis jest niepoprawny
eth0: 192.168.1.1/24
eth1: 192.168.2.1/24
Jak napisać ip route add dla podsieci np 10.0.0.0/24, taki zapis jest niepoprawny
Kod: Zaznacz cały
ip route add 10.0.0.0/24 gw 192.168.1.10 dev eth0
ip route add 10.0.0.0/24 gw 192.168.2.10 dev eth1
RTNETLINK answers: File exists
ip route add 10.0.0.0/24 gw 192.168.1.10 dev eth0 src 192.168.1.1
ip route add 10.0.0.0/24 gw 192.168.2.10 dev eth1 src 192.168.2.1
RTNETLINK answers: No such process