hostname R2
int e0/0
ip addr 172.16.1.2 255.255.255.0
no shutdown
CISCO ROUTING INTRODUCTION
Network routing is a mechanism for choosing a route through one or more networks. The routing rules may extend to any form of network, from telecommunications networks to public transport. Routing chooses routes for Internet Protocol (IP) packet packet transfers in packet-switching networks like the internet, to travel from its source. This Internet routing choices are taken by specific network hardware devices called routers. Basically, i assumed that you can understand about the basic command at cisco installation page. Now i will guide you to learn Administrative Distance (AD) which Router can reachthe destination through more than one Routing Protocol. Now set the Routers seems like the picture below,

After you set the router, now we will do the experiment with the following picture above, but first open the iTerm and Configure Router2 and Router1 with the same settings
Try to ping each others,
-
hostname R2
ping 172.16.1.1
ctrl + Z
# ctrl + Z means you can directly exit from Global Configuration mode
See the picture result that R1 and R2 can ping each others below,

Here is the command if you want to display the IP Address of each router and you want to cancel the IP Address,
-
show ip int brief
no ip addr IP Address 255.255.255.0
Now, you can set the auxliary password (aux) that allow telnet login using console line for your router, follow the command below,
-
line aux 0
login
password abcd
transport input telnet
And run the command show run
, and you will see the result below,

hostname R1
int e0/0
ip addr 172.16.1.1 255.255.255.0
no shutdown