Configure a default route on a Cisco router
The default route is the IP address of the next hop when no other routes are known.
To configure the default route to be 192.168.1.1:
config t
ip route 0.0.0.0 0.0.0.0 192.168.1.1
An interface can be used as an alternative to and IP address. To use serial0/0 for destinations not in the routing table, use:
ip route 0.0.0.0 0.0.0.0 serial 0/0









Sridhar V said on April 10, 2009
Sir I have two serial ports with 2 MB internet connectivity with static IP given by the ISP.
At the local LAN the router has one ethernet port which i am using for local lan. How can i configure default route on both the serial ports
Anonymous said on April 30, 2010
Dear Sridhar V
Router#config t
Router(config)#interface FastEthernet0/0
Router(config-if)# ip address local ip 255.255.255.0
Router(config-if)# ip nat inside
Router(config-if)# exit
Router(config)#interface FastEthernet0/1
Router(config-if)# ip address public ip 255.255.255.0
Router(config-if)# ip nat outside
Router(config-if)# exit
Router(config)#ip route 0.0.0.0 0.0.0.0 public IP
Router(config)#access-list 101 permit ip local ip 0.0.0.255 any
Router(config)#ip nat inside source list 101 interface FastEthernet0/1 overload
Will said on August 7, 2010
If you were running OSPF would you add the fa outside interface IP network to your routing networks, or program that IP for the default route?
Do you have to configure the default route back to this IP on every router with the ip route command?
Tushar said on January 12, 2011
A router gateway is a node on a TCP/IP network that serves as an access point to another network. which provides the actual path for the packet in and out of the gateway.The default gateway commonly connects the internal networks and the outside network (Internet).
Configure Ethernet Port Command -
Router(config)# inte f0/0
Router(config-if)# ip add 192.168.0.1 255.255.255.0
Router(config-if)# no shut
Configure Serial Port Command -
Router(config-if)# inte s 0/0/0
Router(config-if)# ip add 192.168.20.1 255.255.255.0
Router(config-if)# no shut
Thanks,
Tushar
GebRiel said on March 27, 2011
How to configure default route using the outbound interface to the internet???
can some one help me????
Will said on March 27, 2011
To use the INTERFACE, Instead of placing the next hop ip on your ip route 0.0.0.0 0.0.0.0 x.x.x.x
Do ip route 0.0.0.0 0.0.0.0 s0/1
So all traffic will be default routed out local serial int 0/1
Seanchief2008 said on April 13, 2011
i have one public ip 41.76.89… 255.255.255….. 41.76.89….. my router has 2 ports 1 for link from the isp and the other 1 for lan how can configure that please..
Love_ciggar said on June 5, 2011
Hi,
Love_ciggar said on June 5, 2011
Hi,
NMS-VS said on June 5, 2011
I also Need a Help Dears, I am connected from the Via Sat Satellite Internet with the iDirect 3000 Series Modem, the provider provided me Public IP addresss block of /29, xx.xx.151.121 is the Modem Gateway and 5 more IPs I have free to use Locally. The xx.xx.151.122 is configured in Wireless router and work as DHCP, Now I want do a practice in Cisco Router 2801 Series. I want to configure the F0/0 port as WAN and assign Public IP xx.xx.151.123 ( if i am wrong then please suggest) and configure the f0/1 port as LAN to provide internet for the LAN IPs. I need Your help to provide me step by step help, I believe You u have the Public Address Rnage with u.
waiting for response.
the reason I am doing this, Bcz I dont have WIC card in my Cisco router.
tony said on September 8, 2011
i have an uplink and im connected to an IXP, but all my traffic wants to go through the uplink only, how do i let traffic from my customers ( i am an ISP) to access resources from the IXP and the Uplink as well? thanks