Im having troubles with my routing table, im getting RTNETLINK answers: file exist
How do i set my default gateway (internet) to 192.168.100.1? and a static route going to 10.169.5.0 /26?
i have 2 GW as shown in flags, how do i remove the G
on my route line # 2?
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.100.1 0.0.0.0 UG 100 0 0 eth0
10.169.5.0 10.169.5.1 255.255.255.192 UG 0 0 0 eth1
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
G
? TheG
means gateway, it doesn't mean that it's a default route. TheG
has to be there if you are adding a route for the network10.169.5.0/26
, because the packets will go through a "gateway". TheDestination 0.0.0.0
is what denotes that it's a default route, which is your first line. So your routing table is currently configured correctly according to your question:How do I set my default gateway (internet) to 192.168.100.1? and a static route going to 10.169.5.0 /26?
When and where do you get the errorRTNETLINK answers: file exist
?10.169.5.1
is a gateway to other network as well, it conflicts with my192.168.100.1
how can i tell the system to route everything to192.169.5.1
when dealing with10.169.5.0
destinations?route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.169.5.1