1
1
I'm trying to configure host A to use a remote Linux server B as the router to Internet. A's eno50332208 has ip address 172.16.100.131. The interface used as gateway on B has address 172.16.100.128.
I use command ip route add default via 172.16.100.128 dev eno50332208
. But after executing it, nothing changed in routing table. There is no error output in terminal either.
Before the command, ip route
has only one-line output:
172.16.100.0/24 dev eno50332208 proto kernel scope link src 172.16.100.131
Why could ip route command fail silently? How can I view the logs/enforce debug info?
anything in
dmesg | tail
? – Frank Thomas – 2015-10-22T03:30:44.147@FrankThomas Nothing relevant. I tried the
ip route add
command several times and nothing new indmesg | tail
output. – xywang – 2015-10-22T03:55:42.670