Static Default Route
GuitarWizard
Registered Users Posts: 3 ■□□□□□□□□□
in CCNA & CCENT
Hi,
I'm praticing static default route, I'm using the ip route command
R2(config)# ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx Lo1
Just can't work out what IP and subnet mask do I use though? R2 or Lo1?
Thanks.
I'm praticing static default route, I'm using the ip route command
R2(config)# ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx Lo1
Just can't work out what IP and subnet mask do I use though? R2 or Lo1?
Thanks.
Comments
-
[Deleted User] Senior Member Posts: 0 ■■□□□□□□□□Are you using a network address for the first part of your static route?
-
GuitarWizard Registered Users Posts: 3 ■□□□□□□□□□kMastaFlash wrote: »Are you using a network address for the first part of your static route?
Yeah but I'm not too sure what network address the command needs like is it the address of R2 -
DCD Member Posts: 475 ■■■■□□□□□□R2(config)# ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx Lo1
{Destination addr}{Destnation mask}{Forwarding router's address or interface} -
JeanM Member Posts: 1,117GuitarWizard wrote: »Yeah but I'm not too sure what network address the command needs like is it the address of R2
You haven't given enough information / details for us to answer that2015 goals - ccna voice / vmware vcp. -
OfWolfAndMan Member Posts: 923 ■■■■□□□□□□If you're asking how to configure a static DEFAULT route, the command is always #ip route 0.0.0.0 0.0.0.0 [outgoing interface] (At least for IOS).
If you're talking about a static route (Which seems to be everyone's responses), then it's like this:
#ip route 192.168.1.0 (Destination address) 255.255.255.0 [10.1.1.2 (This is the ip address of the next hop router and is your first option) | F0/0 (This is the interface of your LOCAL router and is your second option)].
Now, let's say you have two links like the one here: topology-basic-bgp.png
In this case, you would configure a "Static floating route" in the case you have two links to a destination (Or in this case, two links to the internet). Let's make this a default route as it is going to your ISP.
HQ_Office#ip route 0.0.0.0 0.0.0.0 [S1/1 OR 10.0.0.1] (This is your preferred path)
HQ_Office#ip route 0.0.0.0 0.0.0.0 [S1/2 OR 172.16.0.1] 3(The number at the end of the command is a manual adjust to the static route's AD):study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation []