So we've been told in this network that the operating system of the router has been lost.
Clicking on the router, I can see that the router has booted into ROM monitor mode, help shows us various
commands that we can use in ROM MON mode.
One of them is DIR
and we can look at the flash of the router.
At the moment, no files are available in flash.
So if I use the command reset, the boot process fails
and we're back in ROM monitor mode.
Help again, shows us various commands that are available.
One of those is TFTP download, which allows us to download an image from a TFTP server. In this network
we have at TFTP Server, which has the operating system.
The TFTP server has an IP address of 10.1.1.100.
So again, IP config shows us the IP address of the TFTP server.
So we should be able to connect to the TFTP server via the switch.
That assumes that the ports on the switch are in the same VLAN.
So on this switch show IP interface brief.
This port is up.
This is the port connected to the TFTP server, this port is down.
This is the port connected to the router.
You can view that by going to options preferences, show port labels, and that will show you the port
labels in the diagram.
I'm going to turn that off, but if you prefer, you can display the port labels.
So again
this is the portal interface connected to the router.
This is the interface connected to the server.
Show run allows us to view the running configuration, we can see that Portfast is enabled on
this port.
That's important because when the router boots up, it's going to try and connect to the TFTP server
and we don't want the routers connection to timeout.
So we want the port on the switch to start forwarding immediately.
So I'll run the TFTP download command, notice the help that it's going to give us this quite a bit
of help.
We're told that we need to enter some information to use the command.
We're also told to only use this command for disaster recovery when recovering an image from a TFTP server.
That's what I want to do in this lab.
We need to configure some variables using this syntax and we can use the set command to show the current
variables, these variables are required,
these are optional.
So set at the moment shows us that only that option is currently configured.
So what I'm going to do is copy IP address
and paste that into the router and set the IP address of the router to a value such as 10.1.1.1.
I'm sending it to 10.1.1.1 because the TFTP server has its default gateway configured with that IP
address
and the switch
is configured with this IP address, you don't have to use 10.1.1.1 you just need to make
sure that you have IP connectivity.
So use an IP address in the same subnet.
Subnet mask will be set to 255.255.255.0
and that's because
that's the subnet used on the TFTP server
and
that's the subnet used on the switch.
So you're going to want to configure the router in the same subnet as the TFTP server or configure a default
gateway that has IP connectivity to the TFTP server
but in this example, because the devices are on the same subnet.
A default gateway is not required for IP connectivity, but it is required for this command.
So I'm going to specify the default gateway as the TFTP server.
I'm going to configure the TFTP server
as 10.1.1.100, that again is the IP address of the TFTP server, in our network. Important
part is which file name
are we going to retrieve from the TFTP server?
We're told to use this file, so I'm going to copy that.
You need to make sure that that is actually the correct filename on the TFTP server, so C2900 Universal K9
NZed or NZ, if you prefer SPA 151 4 M4 bin.
That looks right.
So I'm going to paste that in and then I can use the set command to verify what I've done, so those
values are now configured
and then we can use the TFTP download command to download the operating system from the TFTP server
to the flash of the router.
Now notice that the interface on the router is currently down.
So, yes, that interface goes green
and because of port fast on the switch, the interface went green as well
and the router was able to connect to the TFTP server and pull down the operating system and put
it into flash.
So DIR flash now shows us that we have that operating system in flash, reset will allow us to
reboot the router and notice the difference.
It's now loading the operating system.
Previously we went straight into ROM monitor mode or ROM MON, but now the router has successfully booted
up.
So Show Flash shows us the file stored in Flash.
Show IP Interface Brief shows us that the router has an IP address configured on Gigabit 00, that configuration
was retrieved from the start up configuration, not from the TFTP download set commands that we
used.
So at this point, notice the router can ping the switch and
the TFTP server.
If I use the command, reload to reload the router.
What it should do is, again, retrieve the operating system prompt flash
load that into memory, load the startup configuration and apply that to running configuration,
which it's done.
Notice the IP address has been applied to gigabit 0/0 and the router has been restored.
So I've now verified that the router boots correctly and I've made sure that it can ping both the TFTP
server and the switch.
So I'm happy with the lab at this point.
How did you do?
Were you able to complete the lab?
Did you get the operating system restored?
It's important that you understand the differences between startup-config, running configuration, ROM
monitor mode or ROM MON and the booting of the operating system from Flash.