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

Changing the default gateway

mikef0000
Level 1
Level 1

I need to change the default gateway on a router that already has it set. How can you change the default gateway. Any help will be appreciated.

2 Replies 2

rajinikanth
Level 3
Level 3

hi,

Use the command in global configuration

to remove ur existing defualt gateway

When ip routing is enabled on the Cisco router

router(config)#no ip default-network x.x.x.x

and add this command

router(config)#ip default-network x.x.x.x

and

when ip routing is disabled on the Cisco router.

use this commands

router(config)#no ip default-gateway x.x.x.x

to remove existing default router.

add using

router(config)#ip default-gateway x.x.x.x

HTH

Thanks,

Raj

Edison Ortiz
Hall of Fame
Hall of Fame

The default gateway is usually represented with the command

ip route 0.0.0.0 0.0.0.0 [default gateway ip]

However, the default gateway can also be injected from remote routers by using dynamic routing protocols.

If you post the output from typing

#show ip route 0.0.0.0

we can help you better.

Review Cisco Networking products for a $25 gift card