cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
411
Views
0
Helpful
2
Replies

gateway of last resort

giacomo12
Level 1
Level 1

Hi,

To set the default gateway in a Cisco router I can use:   ip default-network 0.0.0.0

I don't understand 0.0.0.0. Which is the next hop? I know the command: ip route 0.0.0.0 0.0.0.0 x.x.x.x  where x.x.x.x is the next hop

Regards

2 Replies 2

Philip D'Ath
VIP Alumni
VIP Alumni

Don't use 0.0.0.0.  Use the actual next hop.

Milos Megis
Level 3
Level 3

Hi,
don´t use command "ip default-network".
"ip route 0.0.0.0 0.0.0.0 interface x.x.x.x" is better for this purpose.

Command "ip default-network" is from times when classful addresses were used.
So this command has strange behaviour in classless network.

You must know what you are doing if you want to use it.

Do you have any good reason to use exactly this command ?