Hi, im a newbie and i have a question:
On the Linux, using the ip command, how do you add a static route to subnet 192.168.0.0/16 using next-hop 10.10.0.1?
best regards
/Mattias
Printable View
Hi, im a newbie and i have a question:
On the Linux, using the ip command, how do you add a static route to subnet 192.168.0.0/16 using next-hop 10.10.0.1?
best regards
/Mattias
you use the "route" command:
of course your network device may be different than "eth0" (mine is br0).Code:route add -net 192.168.0.0/16 gw 10.10.0.1 eth0
ip route add 192.168.0.0/16 dev eth0
ip route add default via 192.168.0.254
Hope above examples help