0% found this document useful (0 votes)
32 views31 pages

R&S-1 Lab Manual

The document provides commands to configure initial switch settings, including IP addresses, passwords, banners, and telnet/SSH access. It also includes commands for switch port security on specific ports of one switch.

Uploaded by

sivac7000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views31 pages

R&S-1 Lab Manual

The document provides commands to configure initial switch settings, including IP addresses, passwords, banners, and telnet/SSH access. It also includes commands for switch port security on specific ports of one switch.

Uploaded by

sivac7000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

BK

NHOP09 / ECE651

LAB MANUAL

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-1
INITIAL SWITCH CONFIGURATIONS

1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Objectives:

• Configure all PCs and Switches with given IPv4 addresses.


• Rename Switch0 as Sw0 and Switch1 as Sw1.
• Configure user mode and privilege passwords as cisco and class respectively. Encrypt
all the passwords.
• Display a banner “Unauthorized Access” for both the Switches.
• Display the contents of Running Configuration file and copy to Startup Configuration
file.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For assigning an IP address for PC0,

• Click on PC0 – Desktop – IP Configuration


• Enter the IP address and subnet mask as shown below. (Subnet mask depends upon
the class of the IP address it belongs to or CIDR notation. In this example, we have a
CIDR notation /24 that corresponds to a subnet mask 255.255.255.0)

• The same steps can be repeated for assigning IP addresses for PC1 and PC2.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Initial Switch Configurations:


Click on Switch 0 – Click on CLI –

When we open CLI, by default we are in User mode (can be identified by > symbol.)
We need to user different commands for accessing different modes of operations of Switch.

Use the following set of commands at CLI of Switch0.

Switch> //By default we are in User mode


Switch >enable // To enter privilege mode
Switch # configure terminal // To enter global configuration mode
Switch(config)# hostname Sw0 // To rename the switch as Sw0

Sw0(config)# line console 0 // For setting up a password at user mode as cisco


Sw0(config-line) #password cisco
Sw0(config-line) #login
Sw0(config-line) #exit

Sw0(config)# enable password class // For setting up a password at privilege mode as class
Sw0(config)# service password-encryption // For encrypting all passwords
Sw0(config) # banner motd Unauthorized Access // For setting up a banner

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For assigning an IP address for Switch 0:

Sw0(config) # interface vlan 1


Sw0 (config-if) # ip address 192.168.1.150 255.255.255.0
Sw0 (config-if) # no shutdown
Sw0 (config-if) # exit

For viewing the contents of running configuration file:


Sw0 (config) # exit // To enter privilege mode. Because running configurations can be seen only
Sw0 # show running-config in privilege mode
Sw0 # copy running-config startup-config // For copying running configurations into startup.
Sw0 # show startup-config // For viewing the contents of Startup configuration file.

Use the following set of commands at CLI of Switch1.

Switch> //By default we are in User mode


Switch >enable // To enter privilege mode
Switch # configure terminal // To enter global configuration mode
Switch(config)# hostname Sw1 // To rename the switch as Sw0

Sw1(config)# line console 0 // For setting up a password at user mode as cisco


Sw1(config-line) #password cisco
Sw1(config-line) #login
Sw1(config-line) #exit

Sw1(config)# enable password class // For setting up a password at privilege mode as class
Sw1(config)# service password-encryption // For encrypting all passwords
Sw1(config) # banner motd Unauthorized Access // For setting up a banner
For assigning an IP address for Switch 1:

Sw1(config) # interface vlan 1


Sw1 (config-if) # ip address 192.168.1.250 255.255.255.0
Sw1 (config-if) # no shutdown
Sw1 (config-if) # exit

For viewing the contents of running configuration file:


Sw1 (config) # exit // To enter privilege mode. Because running configurations can be seen only
Sw1 # show running-config in privilege mode
Sw1 # copy running-config startup-config // For copying running configurations into startup.
Sw1 # show startup-config // For viewing the contents of Startup configuration file.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-2
CONFIGURING TELNET AND SSH

1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Fa0/5 Fa0/10

Objectives:

• Configure all PCs and Switches with given IPv4 addresses.


• Rename Switch0 as Sw0 and Switch1 as Sw1.
• Configure user mode and privilege passwords as cisco and class respectively. Encrypt
all the passwords.
• Configure Telnet for Switch0 with password 1234.
• Configure SSH for Switch1 with username ABCD and password 1111.
• Configure Switch port security for Switch 0. Protect the interfaces Fa0/5 and Fa0/10
with restrict and shutdown modes respectively.
• Verify end to end connectivity.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Refer hands on session 1 for assigning IP addresses for PC’s.

Click on Switch 0 – Click on CLI –


Use the following set of commands at CLI of Switch0.

Switch> //By default we are in User mode


Switch >enable // To enter privilege mode
Switch # configure terminal // To enter global configuration mode
Switch(config)# hostname Sw0 // To rename the switch as Sw0

Sw0(config)# line console 0 // For setting up a password at user mode as cisco


Sw0(config-line) #password cisco
Sw0(config-line) #login
Sw0(config-line) #exit

Sw0(config)# enable password class // For setting up a password at privilege mode as class
Sw0(config)# service password-encryption // For encrypting all passwords

For configuring Telnet at Switch0:

For configuring any switch with telnet, it must be assigned with an IP address and the virtual
terminal should be password protected.

Type the following commands at CLI of Switch0

Sw0(config) # interface vlan 1 // For assigning an IP address for Switch 0:


Sw0 (config-if) # ip address 192.168.1.150 255.255.255.0
Sw0 (config-if) # no shutdown
Sw0 (config-if) # exit

Sw0 (config) # line vty 0 4 // Protecting virtual terminal


Sw0 (config) # password 1234 // Password for virtual terminal
Sw0 (config) # login
Sw0 (config) # exit

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For verifying Telnet configuration at Switch0;

Click on PC0 – Desktop – Command Prompt and type

telnet 192.168.1.150 and enter password as 1234 //192.168.1.150 is the IP address for Switch 0.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Configuring SSH for Switch1:


For configuring SSH at any switch, it must be assigned with an IP address and the user
database must be created.
Use the following set of commands at CLI of Switch1.

Switch> //By default we are in User mode


Switch >enable // To enter privilege mode
Switch # configure terminal // To enter global configuration mode
Switch(config)# hostname Sw1 // To rename the switch as Sw0

Sw1(config)# line console 0 // For setting up a password at user mode as cisco


Sw1(config-line) #password cisco
Sw1(config-line) #login
Sw1(config-line) #exit

Sw1(config)# enable password class // For setting up a password at privilege mode as class
Sw1(config)# service password-encryption // For encrypting all passwords

Sw1(config) # interface vlan 1 // For assigning an IP address for Switch 1:


Sw1 (config-if) # ip address 192.168.1.250 255.255.255.0
Sw1 (config-if) # no shutdown
Sw1 (config-if) # exit

//For creating user database:


Sw1 (config) # username ABCD secret 1111
Sw1 (config) # ip domain-name nhce.com
Sw1 (config) # crypto key generate rsa
Sw1 (config) # 1024

Sw1 (config) #line vty 0 4 // For configuring SSH


Sw1 (config-line) # login local
Sw1 (config-line) # transport input ssh
Sw1 (config-line) #exec-timeout 1
Sw1 (config-line) # exit.

For verifying SSH configuration at Switch 1,


Click on PC2 – Desktop – Command Prompt and type the following command;
C:\> ssh -l ABCD 192.168.1.250
Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For configuring Switch port security at Switch0:


Use the following commands at CLI of Switch0.

Sw0(config) # interface fa0/5 //Protecting fa0/5 with restrict mode


Sw0(config-if) # switchport mode access
Sw0(config-if) # switchport port-security
Sw0(config-if) # switchport port-security maximum 1
Sw0(config-if) # switchport port-security mac address sticky
Sw0(config-if) # switchport port-security violation restrict

Sw0(config) # interface fa0/10 //Protecting fa0/10 with shutdown mode


Sw0(config-if) # switchport mode access
Sw0(config-if) # switchport port-security
Sw0(config-if) # switchport port-security maximum 1
Sw0(config-if) # switchport port-security mac address sticky
Sw0(config-if) # switchport port-security violation shutdown

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-3
INITIAL ROUTER CONFIGURATION
1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

(For connecting a PC to Switch, use fast ethernet ports. For connecting a switch to a
router use gigabit ethernet ports.)

Objectives:

• Configure all PCs and Switches with given IPv4 addresses.


• Configure Router 0 with given IPv4 addresses.
• Rename Switch0 as Sw0, Switch1 as Sw1 and Router0 as R0.
• Configure user mode and privilege passwords of R0 as cisco and class respectively.
Encrypt all the passwords.
• Display a banner “Unauthorized Access” for both the Switches.
• Display the contents of Running Configuration file and copy to Startup Configuration
file.
• Verify end to end connectivity.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For assigning IPv4 addresses for PC’s and Switches, refer Hands-on session 1.
Use the following set of commands at CLI of Router0.

Router> //By default we are in User mode


Router >enable // To enter privilege mode
Router # configure terminal // To enter global configuration mode
Router (config)# hostname R0 // To rename the switch as Sw0

R0 (config)# line console 0 // For setting up a password at user mode as cisco


R0 (config-line) #password cisco
R0 (config-line) #login
R0 (config-line) #exit

R0 (config)# enable password class // For setting up a password at privilege mode as class
R0(config)# service password-encryption // For encrypting all passwords
R0 (config) # banner motd Unauthorized Access // For setting up a banner

For assigning IPv4 addresses for Router:


A router has two gigabit ethernet ports, g0/0 and g0/1 namely. We must assign IP addresses
to both interfaces as given in topology.
Use the following set of commands at CLI of Router0.

R0 (config)# interface gigabitEthernet 0/0 // For assigning IPv4 address at g0/0


R0 (config-if) # ip address 192.168.2.1 255.255.255.0
R0 (config-if) # no shutdown
R0 (config-if) # exit

R0 (config)# interface gigabitEthernet 0/1 // For assigning IPv4 address at g0/1


R0 (config-if) # ip address 172.16.1.1 255.255.255.0
R0 (config-if) # no shutdown
R0 (config-if) # exit

Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-4
CONFIGURING STATIC ROUTES
1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Objectives:

• Configure all PC’s and Switches with given IPv4 addresses.


• Configure Router0, Router1 and Router2 with given IPv4 addresses.
• Configure all the serial interfaces of Router0, Router1 and Router2 with given IPv4
addresses.
• Configure Static Routes at Router0, Router1 and Router2.
• Verify end to end connectivity.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

• Two routers must be connected through Serial High-Speed WAN Interface Cards. These
interface cards are inactive by default. Activate them using following steps.

Click on Router 0 – Physical – HWIC 2T – Power off the router – Drag and drop serial
interfaces in empty spaces – Power on the router

The above steps can be repeated for activating Serial High-Speed WAN Interface Cards on
Router 0 and Router 1.

• For connecting routers together, use Serial DCE type of connection. Connect the
routers through any of four serial ports. (s0/0/0, s0/0/1, s0/1/0 and s0/1/1)

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Note: Refer hands on Session 1 for assigning IP addresses for PCs and Switches.

For assigning IP addresses at Router interfaces;


Use the following set of commands at CLI of Router0.

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

R0 (config)# interface gigabitEthernet 0/0 // For assigning IPv4 address at g0/0


R0 (config-if) # ip address 192.168.1.10 255.255.255.0
R0 (config-if) # no shutdown
R0 (config-if) # exit

R0 (config)# interface gigabitEthernet 0/1 // For assigning IPv4 address at g0/1


R0 (config-if) # ip address 192.168.2.1 255.255.255.0
R0 (config-if) # no shutdown
R0 (config-if) # exit

R0 (config)# interface serial 0/0/0 // For assigning IPv4 address at serial0/0/0


R0 (config-if) # ip address 192.168.3.2 255.255.255.0
R0 (config-if) # no shutdown
R0 (config-if) # exit

Use the following set of commands at CLI of Router1.


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

R1 (config)# interface gigabitEthernet 0/0 // For assigning IPv4 address at g0/0


R1 (config-if) # ip address 172.16.1.1 255.255.255.0
R1 (config-if) # no shutdown
R1 (config-if) # exit

R1 (config)# interface serial 0/0/0 // For assigning IPv4 address at serial0/0/0


R1 (config-if) # ip address 192.168.3.3 255.255.255.0
R1 (config-if) # clock rate 64000
R1 (config-if) # no shutdown
R1 (config-if) # exit

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

R1 (config)# interface serial 0/0/1 // For assigning IPv4 address at serial0/0/1


R1 (config-if) # ip address 172.16.2.2 255.255.255.0
R1 (config-if) # clock rate 64000
R1 (config-if) # no shutdown
R1 (config-if) # exit

Use the following set of commands at CLI of Router2.


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

R2 (config)# interface gigabitEthernet 0/0 // For assigning IPv4 address at g0/0


R2 (config-if) # ip address 10.100.200.1 255.255.255.0
R2 (config-if) # no shutdown
R2 (config-if) # exit

R2 (config)# interface serial 0/0/0 // For assigning IPv4 address at serial0/0/1


R2 (config-if) # ip address 172.16.2.3 255.255.255.0
R2 (config-if) # no shutdown
R2 (config-if) # exit

For assigning Static route at Router 0:


For any data packets at Router0, there is a possibility that those packets can reach one of
the two networks, 172.16.1.0/24 or 10.10.200.0/24, through the exit interface s0/0/0.
Therefore, we need to assign two static routes at Router0.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Use following commands at CLI of Router0 for assigning static routes:

R0 (config) # ip route 172.16.1.0 255.255.255.0 s0/0/0 // Assigning static routes at Router0


R0 (config) # ip route 10.100.200.0 255.255.255.0 s0/0/0

For assigning Static route at Router 1:

For any data packets at Router1, there is a possibility that those packets can reach one of
the three networks, 192.168.1.0 (through exit interface s0/0/0) or 192.168.2.0 (through exit
interface s0/0/0) or 10.10.200.0/24 (through exit interface s0/0/1). Therefore, we need to
assign three static routes at Router1.

Use following commands at CLI of Router1 for assigning static routes:

R1 (config) # ip route 192.168.1.0 255.255.255.0 s0/0/0


R1 (config) # ip route 192.168.2.0 255.255.255.0 s0/0/0 // Assigning static routes at Router1
R1(config) # ip route 10.100.200.0 255.255.255.0 s0/0/1

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For assigning Static route at Router 2:

For any data packets at Router2, there is a possibility that those packets can reach one of
the three networks, 192.168.1.0 (through exit interface s0/0/1) or 192.168.2.0 (through exit
interface s0/0/1) or 172.16.1.0/24 (through exit interface s0/0/1). Therefore, we need to
assign three static routes at Router2.

Use following commands at CLI of Router2 for assigning static routes:

R2 (config) # ip route 192.168.1.0 255.255.255.0 s0/0/1


R2 (config) # ip route 192.168.2.0 255.255.255.0 s0/0/1 // Assigning static routes at Router2
R2 (config) # ip route 172.16.1.0 255.255.255.0 s0/0/1

Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-5
CONFIGURING STATIC SUMMARY and DEFAULT ROUTES
1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Objectives:

• Configure all PC’s and Switches with given IPv4 addresses.


• Configure Router0, Router1 and Router2 with given IPv4 addresses.
• Configure all the serial interfaces of Router0, Router1 and Router2 with given IPv4
addresses.
• Configure Static Routes at Router0, Static Summary Route at Router1 and Default
Route at Router2.
• Verify end to end connectivity.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Refer hands on session 4 for assigning static route at Router 0.

For assigning Static Summary Route at Router1:


For any data packets at Router1, there is a possibility that those packets can reach one of
the three networks, 192.168.1.0 (through exit interface s0/0/0) or 192.168.2.0 (through exit
interface s0/0/0) or 10.10.200.0/24 (through exit interface s0/0/1). Therefore, we need to
assign three static routes at Router1.
If we observe carefully, the Network IDs 192.168.1.0/24 and 192.168.2.0/24
can be summarized into a single Network ID as shown below.

192.168. 1.0/24 = 192.168.0000 0001. 0/24


192.168. 2.0/24 = 192.168.0000 0010. 0/24

192.168.1.0/24 = 192.168.0000 00 01.0/24


192.168.2.0/24 = 192.168.0000 00 10.0/24

The first 22 bits of both Network IDs are same. Hence, we can summarize
these two Network IDs as 192.168.0.0/22.
Use following commands at CLI of Router1 for assigning static summary routes:

R1 (config) # ip route 192.168.1.0 255.255.255.240 s0/0/0 // Assigning static summary routes at Router1
R1(config) # ip route 10.100.200.0 255.255.255.0 s0/0/1

Use following commands at CLI of Router2 for assigning default routes:

R2 (config) # ip route 0.0.0.0 0.0.0.0 s0/0/1

Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-6
CONFIGURING RIPv2
1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Objectives:

• Configure all PCs and Switches with given IPv4 addresses.


• Configure Router0, Router1 and Router2 with given IPv4 addresses.
• Configure all the serial interfaces of Router0, Router1 and Router2 with given IPv4
addresses.
• Configure RIPv2 at Routers.
• Verify end to end connectivity.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Refer hands on session 5 for assigning IPv4 addresses for all router interfaces.

For assigning RIPv2 for routers, we must identify the networks that are directly connected to
routers.

For configuring RIPv2 at Router0:


The networks 192.168.1.0, 192.168.2.0 and 192.168.3.0 are directly connected to Router0.

Use following commands at CLI of Router0 for configuring RIPv2.

R0(config) # router rip // RIPv2 at Router0


R0(config-router) # version 2
R0(config-router) # network 192.168.1.0
R0(config-router) # network 192.168.2.0
R0(config-router) # network 192.168.3.0
R0(config-router) # no auto-summary
R0(config-router) # exit

For configuring RIPv2 at Router1:


The networks 172.16.1.0, 172.16.2.0 and 192.168.3.0 are directly connected to Router0.

Use following commands at CLI of Router1 for configuring RIPv2.

R1(config) # router rip // RIPv2 at Router1


R1(config-router) # version 2
R1(config-router) # network 172.16.1.0
R1(config-router) # network 172.16.2.0
R1(config-router) # network 192.168.3.0
R1(config-router) # no auto-summary
R1(config-router) # exit

For configuring RIPv2 at Router2:


The networks 172.16.2.0 and 10.10.200.0 are directly connected to Router2.

Use following commands at CLI of Router1 for configuring RIPv2.

R2(config) # router rip // RIPv2 at Router2


R2(config-router) # version 2
R2(config-router) # network 172.16.2.0
R2(config-router) # network 10.10.200.0
R2(config-router) # no auto-summary
R2(config-router) # exit

Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-7
CONFIGURING ROUTER WITH STATIC IPv6 ADDRESSES

1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Objectives:

• Assign static IPv6 addresses to PC0, PC1 and Router0.


• Verify end to end connectivity.

Use the following steps to assign IPv6 address to PC0.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Click on PC0 – Desktop – IP Configuration – Assign the IPv6 address as shown below.

The same steps can be repeated for assigning IPv6 address for PC1.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For assigning IPv6 address to Router0:


Use the following commands at CLI of Router0.

Router>
Router > enable
Router # configure terminal
Router (config) # hostname R0
R0 (config) # ipv6 unicast-routing // For making R0 as a dual stack device.

R0 (config) # interface g0/0 // For assigning IPv6 address to g0/0


R0 (config-if) # ipv6 enable
R0 (config-if) # ipv6 address 2001:1::1/64
R0 (config-if) # ipv6 address FE80::1 link-local
R0 (config-if) # no shutdown
R0 (config-if) # exit

R0 (config) # interface g0/1 // For assigning IPv6 address to g0/1


R0 (config-if) # ipv6 enable
R0 (config-if) # ipv6 address 2001:2::1/64
R0 (config-if) # ipv6 address FE80::1 link-local
R0 (config-if) # no shutdown
R0 (config-if) # exit

Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-8
CONFIGURING ROUTER WITH IPv6 ADDRESSES
(Using Auto configuration mode)

1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Objectives:

• Assign static IPv6 addresses to PC0, PC1 and Router0.


• Verify end to end connectivity.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For assigning IPv6 addresses to Router0 using auto config mode, use following commands at
CLI of Router0.

Router>
Router > enable
Router # configure terminal
Router (config) # hostname R0
R0 (config) # ipv6 unicast-routing // For making R0 as a dual stack device.

R0 (config) # interface g0/0


R0 (config-if) # ipv6 enable
R0 (config-if) # ipv6 address 2001:1: :/64 eui-64
R0 (config-if) # no shutdown
R0 (config-if) # exit

R0 (config) # interface g0/1


R0 (config-if) # ipv6 enable
R0 (config-if) # ipv6 address 2001:2: :/64 eui-64
R0 (config-if) # no shutdown
R0 (config-if) # exit

For configuring PC0 with IPv6 address in Auto config mode:


Click on PC0 – Desktop – IP Configuration – Click on Auto config button

The same steps can be repeated for obtaining IPv6 address for PC1.

Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Hands on Session-9
CONFIGURING STATIC AND DEFAULT ROUTES WITH IPv6 ADDRESSES

1. Consider the following topology and write the commands with proper prompt to
achieve given objectives.

Objectives:

• Assign static IPv6 addresses to PC0, PC1 and Router0, Router1 and Router2.
• Configure IPv6 static routes at Router0, Router1 and default route at
Router2.
• Verify end to end connectivity.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

Refer Hands on session 7 for assigning IPv6 addresses to all PCs.


Assigning IPv6 addresses for Router 0 interfaces:
Use the following commands at CLI of Router0
Router>
Router > enable
Router # configure terminal
Router (config) # hostname R0
R0 (config) # ipv6 unicast-routing // For making R0 as a dual stack device.

R0 (config) # interface g0/0 // For assigning IPv6 address to g0/0


R0 (config-if) # ipv6 enable
R0 (config-if) # ipv6 address 2001:1::1/64
R0 (config-if) # ipv6 address FE80::1 link-local
R0 (config-if) # no shutdown
R0 (config-if) # exit

R0 (config) # interface s0/0/0 // For assigning IPv6 address to s0/0/0


R0 (config-if) # ipv6 enable
R0 (config-if) # ipv6 address 2001:4::2/64
R0 (config-if) # ipv6 address FE80::1 link-local
R0 (config-if) #clock rate 64000
R0 (config-if) # no shutdown
R0 (config-if) # exit

Use the following commands at CLI of Router1


Router>
Router > enable
Router # configure terminal
Router (config) # hostname R1
R1 (config) # ipv6 unicast-routing // For making R1 as a dual stack device.

R1 (config) # interface g0/0 // For assigning IPv6 address to g0/0


R1 (config-if) # ipv6 enable
R1 (config-if) # ipv6 address 2001:2::1/64
R1 (config-if) # ipv6 address FE80::1 link-local
R1 (config-if) # no shutdown
R1 (config-if) # exit

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

R1 (config) # interface s0/0/0 // For assigning IPv6 address to s0/0/0


R1 (config-if) # ipv6 enable
R1 (config-if) # ipv6 address 2001:4::3/64
R1 (config-if) # ipv6 address FE80::1 link-local
R1 (config-if) # no shutdown
R1 (config-if) # exit

R1 (config) # interface s0/0/1 // For assigning IPv6 address to s0/0/1


R1 (config-if) # ipv6 enable
R1 (config-if) # ipv6 address 2001:5::3/64
R1 (config-if) # ipv6 address FE80::1 link-local
R1 (config-if) #clock rate 64000
R1 (config-if) # no shutdown
R1 (config-if) # exit

Use the following commands at CLI of Router2


Router>
Router > enable
Router # configure terminal
Router (config) # hostname R2
R2 (config) # ipv6 unicast-routing // For making R2 as a dual stack device.

R2 (config) # interface g0/0 // For assigning IPv6 address to g0/0


R2 (config-if) # ipv6 enable
R2 (config-if) # ipv6 address 2001:3::1/64
R2 (config-if) # ipv6 address FE80::1 link-local
R2 (config-if) # no shutdown
R2 (config-if) # exit

R2 (config) # interface s0/0/1 // For assigning IPv6 address to s0/0/1


R2 (config-if) # ipv6 enable
R2 (config-if) # ipv6 address 2001:5::4/64
R2 (config-if) # ipv6 address FE80::1 link-local
R2 (config-if) # no shutdown
R2 (config-if) # exit

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore


BK

For assigning static routes at Router0:

Use the following commands at CLI of Router0

R0 (config) # ipv6 route 2001:2: :/64 s0/0/0 //For assigning static routes
R0 (config) # ipv6 route 2001:3: :/64 s0/0/0

For assigning static routes at Router1:

Use the following commands at CLI of Router1

R1 (config) # ipv6 route 2001:1: :/64 s0/0/0 //For assigning static routes
R1 (config) # ipv6 route 2001:3: :/64 s0/0/1

For assigning static routes at Router2:

Use the following commands at CLI of Router2

R2 (config) # ipv6 route: :/0 s0/0/1 //For assigning static routes

Verify end to end connectivity using PING or Real time/Simulation mode in Packet Tracer.

CISCO CENTRE OF EXCELLENCE, DEPT. OF ECE, NHCE Bangalore

You might also like