I had the following static route added to the route table :
(config)#ip route 198.10.1.0 255.255.255.0 161.44.192.2
2513#show ip route
Gateway of last resort is not set
161.44.0.0/24 is subnetted, 1 subnets
C 161.44.192.0 is directly connected, Ethernet0
131.108.0.0/24 is subnetted, 1 subnets
C 131.108.99.0 is directly connected, Serial0
S 198.10.1.0/24 [1/0] via 161.44.192.2
I can now reach the 198.10.1.0 through 161.44.192.2
After that if i use "ip default-network 198.10.1.0",the output of route table is:
Gateway of last resort is 161.44.192.2 to network 198.10.1.0
161.44.0.0/24 is subnetted, 1 subnets
C 161.44.192.0 is directly connected, Ethernet0
131.108.0.0/24 is subnetted, 1 subnets
C 131.108.99.0 is directly connected, Serial0
S* 198.10.1.0/24 [1/0] via 161.44.192.2
Note that the gateway of last resort is set and the original static route becomes the candidate route.
But i don't understand what's the benefit after using "ip default-network 198.10.1.0" ?
If i dont't use the "ip default-network 198.10.1.0" ,what will be the result ?
Thanks in advance.