Pages

Basic Configuration of Network Device
Administrative configurations are not critical to making a router or switch work on a network, they are still really important.

We can configure the following administrative functions on a router and switch.
  • Hostnames
  • Banners
  • Passwords
  • Interface descriptions

Hostname
When configuring a networking device, one of the first steps is configuring a unique device name or hostname. Hostnames that appear in CLI prompts can be used in various authentication processes between devices, and should be used on topology diagrams.

If the device name is not explicitly configured, a factory assigned default name is used by the Cisco IOS. The default name for a Cisco IOS switch is "Switch" and router is "Router". If all network devices were left with their default names, it would be difficult to identify a specific device. For instance, when accessing a remote device using SSH, it is important to have confirmation that you are connected to the proper device.

Hostname Configuration

Router>enable
Router#configure terminal
Router(config)#hostname Floor1_CCNALab
Floor1_CCNALab(config)#


As shown above, from the privileged EXEC mode, access the global configuration mode by entering the configure terminal command. Notice the change in the command prompt.

From global configuration mode, enter the command hostname followed by the name of the switch and press Enter. Notice the change in the command prompt name.

Note: To remove the configured hostname and return the switch to the default prompt, use the no hostname global config command.


Banners
It is vital to provide a method for declaring that only authorized personnel should attempt to gain entry into the device. To do this, add a banner to the device output. Banners can be an important part of the legal process in the event that someone is prosecuted for breaking into a device. Some legal systems do not allow prosecution, or even the monitoring of users, unless a notification is visible.

Banner Configuration

Router>enable
Router#configure terminal
Router(config)#banner motd # unauthorized access is strictly prohibited #
Router(config)#


To create a banner message of the day on a network device, use the banner motd # the message of the day # global config command. The “#” in the command syntax is called the delimiting character. It is entered before and after the message. The delimiting character can be any character as long as it does not occur in the message. For this reason, symbols such as the "#" are often used. After the command is executed, the banner will be displayed on all subsequent attempts to access the device until the banner is removed.

IPv6
Internet Protocol version 6 (IPv6) is the latest revision of the Internet Protocol (IP) and the first version of the protocol to be widely deployed. IPv6 was developed by the Internet Engineering Task Force (IETF) to deal with the long-anticipated problem of IPv4 address exhaustion.

IPv6 is designed to be the successor to IPv4. IPv6 has a larger 128-bit address space, providing for 340 undecillion addresses. (That is the number 340, followed by 36 zeroes.) However, IPv6 is more than just larger addresses. When the IETF began its development of a successor to IPv4, it used this opportunity to fix the limitations of IPv4 and include additional enhancements. Click here for more

Static Routing
Routing is at the core of every data network, moving information across an internetwork from source to destination. Routers are the devices responsible for the transfer of packets from one network to the next.

Routers learn about remote networks either dynamically, using routing protocols, or manually, or using static routes. In many cases, routers use a combination of both dynamic routing protocols and static routes.  

Topology


Address Table


PC Configuration

R1 Configuration
R1>enable
R1#configure terminal
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#interface fastEthernet Serial 2/0
R1(config-if)#ip address 192.168.1.1 255.255.255.192
R1(config-if)#no shutdown
R1(config-if)#interface fastEthernet Serial 3/0
R1(config-if)#ip address 192.168.1.130 255.255.255.192
R1(config-if)#no shutdown
R1(config)#ip route 172.16.2.0 255.255.255.0 Serial2/0
R1(config)#ip route 172.16.3.0 255.255.255.0 Serial2/0
R1(config)#ip route 192.168.1.64 255.255.255.192 Serial2/0

R2 Configuration
R2>enable
R2#configure terminal
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 172.16.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#interface fastEthernet Serial 2/0
R2(config-if)#ip address 192.168.1.2 255.255.255.192
R2(config-if)#no shutdown
R2(config-if)#interface fastEthernet Serial 3/0
R2(config-if)#ip address 192.168.1.65 255.255.255.192
R2(config-if)#no shutdown
R2(config)#ip route 172.16.1.0 255.255.255.0 Serial2/0
R2(config)#ip route 172.16.3.0 255.255.255.0 Serial3/0
R2(config)#ip route 192.168.1.128 255.255.255.192 Serial3/0

R3 Configuration
R3>enable
R3#configure terminal
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 172.16.3.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#interface fastEthernet Serial 2/0
R3(config-if)#ip address 192.168.1.130 255.255.255.192
R3(config-if)#no shutdown
R3(config-if)#interface fastEthernet Serial 3/0
R3(config-if)#ip address 192.168.1.66 255.255.255.192
R3(config-if)#no shutdown
R3(config)#ip route 172.16.1.0 255.255.255.0 Serial2/0
R3(config)#ip route 172.16.2.0 255.255.255.0 Serial3/0
R3(config)#ip route 192.168.1.0 255.255.255.192 Serial3/0