Vous êtes sur la page 1sur 4

Router esim Solution Lab_A

Here are the commands you enter to program Router A in the Esimdont
type lines starting with *those are just explanations I have put in for you.
Below the explanation set is another copy without all the commentsmuch
easier to use after you have done the reading part.
Once you have programmed lab A go on and program the others in the
SIM. You should be able to program the entire E-Sim in under 20 minutes
once
you get used to it!!
Ena
*Enable the router for programming
Config t
*Configure in terminal modelike a one line DOS mode
Hostname Lab_A
*The name your are giving the router
Enable secret class
*To get into the router next time you need to know the secret
password.class
*Using the word secret means the password will be encrypted so people
cant see it on future output
Line con 0
*You want to program the Console portthis is a physical port on the
routerused normally to plug in a computer to program the router for initial
setup
Password cisco
*to get in through the Console port you will be asked next time for the
password which is cisco
Login
*tells the router the person must Login to get in through the Console.
Line vty 0 4
*there are 5 telnet lines (vty lines) 0,1,2,3 and 4these are for connecting to
the router over the internet using Telnet.
*each of these lines could be individually password protected instead of them
all having the same password
Password cisco
*to get into the vty lines you now need a password
Login
*and you have to log in to get in through the vty lines
Exit
*exit out of the programming the vty lines
Int e0
*go into interface Ethernet 0. These Ethernet outlets usually connect to the
LAN

Ip add 192.5.5.1 255.255.255.0


*give it an ip address and a subnet mask (standard class C in this case)
No shut
*tell the interface to be Not shutdowninterfaces are shutdown by default
Int e1
*Lets program interface Ethernet 1
Ip add 205.7.5.1 255.255.255.0
*ip and subnet for Ethernet 1
No shut
*make sure it is active and not shutdown
Int s0
*Program interface serial 0 (serial interfaces are usually for connecting routers
together)
Ip add 201.100.11.1 255.255.255.0
*ip address and subnet for the serial interface
Clock rate 56000
*when you connect routers togetherone router sends a clock timing signal
to the other
*the sending one is said to be the DCE end and the receiving end is the DTE
end
*this one is the DCE end so it is setting the clock rate to 56000
No shut
*make sure it is not shutdown
Exit
*leave the serial 0 interface mode
Router rip
*we are going to use RIP as our method to get the routers to talk to each other
Network 192.5.5.0
*We want our router to advertise to other routers that we have the 192.5.5.0
network attached
*notice that these are network addressthe host portion is 0 so it is NOT the
interface address
Network 205.7.5.0
*We want our router to advertise to other routers that we have the 205.7.5.0
network attached
Network 201.100.11.0
*We want our router to advertise to other routers that we have the
201.100.11.0 network attached
Exit
*leave the router rip mode
*the following 5 lines tell our router what the ip addresses of the other routers.
*this is not necessary but it means that we can do things like
*ping Lab_E instead of having to remember Lab_Es ip addresses
*soit is just for convenience
Ip host Lab_A 192.5.5.1 205.7.5.1 201.100.11.1

Ip host Lab_B 219.17.100.1 199.6.13.1 201.100.11.2


Ip host Lab_C 223.8.151.1 204.204.7.1 199.6.13.2
Ip host Lab_D 210.93.105.1 204.204.7.2
Ip host Lab_E 210.93.105.2
Exit
*exit this mode
Exit
*exit this mode
Copy run start
*save the program we just wrote into the NVRAM so if the power goes out
*when the router reboots it still has the program to load up
Router esim Solution Lab_A
Ena
Config t
Hostname Lab_A
Enable secret class
Line con 0
Password cisco
Login
Line vty 0 4
Password cisco
Login
Exit
Int e0
Ip add 192.5.5.1 255.255.255.0
No shut
Int e1
Ip add 205.7.5.1 255.255.255.0
No shut
Int s0
Ip add 201.100.11.1 255.255.255.0
Clock rate 56000
No shut
Exit
Router rip
Network 192.5.5.0
Network 205.7.5.0
Network 201.100.11.0
Exit
Ip host Lab_A 192.5.5.1 205.7.5.1 201.100.11.1
Ip host Lab_B 219.17.100.1 199.6.13.1 201.100.11.2
Ip host Lab_C 223.8.151.1 204.204.7.1 199.6.13.2
Ip host Lab_D 210.93.105.1 204.204.7.2

Ip host Lab_E 210.93.105.2


Exit
Exit
Copy run start

Vous aimerez peut-être aussi