Posts

Showing posts from January 30, 2019

What does “scope” do in ip route and why it is necessary to setup static route in Linux?

Image
0 If I want to replace default dhcp route rules with static ones, I have to add a rule ip route add scope link dev eth0 . Or I will get an error: “Nexthop has a invalid gateway”. Here are my questions: Q1 : What does “scope link” mean in ip route? Q2 : Why it is necessary to change from dhcp rules to static rules? linux networking iproute2 routing-table share | improve this question edited Jan 1 at 3:39 user762750 asked Dec 31 '18 at 15:35 user762750 user762750 ...