root@ubuntu:~# route add default gw 10.21.35.161
root@ubuntu:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.44.0 * 255.255.255.0 U 0 0 0 eth0
10.21.35.0 * 255.255.255.0 U 0 0 0 eth0
default domain.stats.go 0.0.0.0 UG 0 0 0 eth0
default 192.168.44.2 0.0.0.0 UG 100 0 0 eth0
root@ubuntu:~#
You must add the new route before creating the default gateway.
No comments:
Post a Comment
Please keep comment relevant and strictly no spam will be tolerated. Thank you.