Configure Hostname :
Hostname R1
Basic Configuration :
No ip domain-lookup
Line vty 0 4
History size 15
Exec-timeout 10 30
Logging synchronous
Exit
Enable password cisco
Enable secret class
Service password-encryption
Line con 0
Password cisco
Login
Exit
Line vty 0 15
Password cisco
Login
Exit
Banner motd #Authorize user only can access#
Configuring Interfaces
Int g0/0
Ip add and subnet mask
No shut
Setting clock rate for an interface
Int s0/0/0
Clock rate 128000
Configuring Single area OSPFv2 :
router ospf (put the process id)
router-id (put in router id)
Network address for each interface with wildcard mask, Area (put the area as per the question)
Passive-interface ( put the interface)
Configure router ID
Router ospf (process id)
Router-id 1.1.1.1
Configure networks for OSPF routing :
Network (192.168.10.0 0.0.0.255 area ( put in the area as per question)
Configure OSPF routing on router interface :
Interface (put the interface)
Ip ospf (put process id) area (put area)
Verify OSPF Configuration :
Sh ip protocol
Configure passive interface :
Router ospf ( put process id)
Passive-interface (put the interface)
Configure with ospf priority :
Int g0/1
Ip ospf priority 255
End
Propagate default static route in OSPFv2 :
ip route 0.0.0.0 0.0.0.0 loopback 0
router ospf 1
default-information originate
end
Command to view information about the other routers in the OSPF area :
Show ip ospf neighbor
Verify that OSPF has been configured and Router is the DR.
show ip ospf interface
or show ip ospf interface brief
If Passive interface is configured and you want to disable it :
Router ospf (put process id)
No passive-int (put interface)
Configure R2 as DHCPv4 Server
Ip dhcp excluded-address (Put R1 LAN starting with .1)
Example : ip dhcp excluded-address 192.168.1.1 192.168.1.10
Using pool name (Example : R1G0 for G0/0 LAN and R1G1 for G0/1 LAN)
Ip dhcp pool R1G0
Network 192.168.2.0 255.255.255.0
IP dhcp pool R1G1
Network 192.168.1.0 255.255.255.0
Verify that the client router is assigned a GUA
Show ipv6 interface brief
verifies the name of the DHCPv6 pool and its parameters. The command also identifies the
number of active clients
show ipv6 dhcp pool
Use DNS Server and domain name
( Example ) :
DNS server: 192.168.1.7
Domain-Name: cisco.com
COMMAND : dns-server 192.168.1.7
Domain-name cisco.com
Configure router as DHCP Relay agent
Int (Put interface)
Ip helper-add (put ip address)
Assign the dual-ipv4-and-ipv6 template as the default SDM template in S1 and reload.
Sdm prefer dual-ipv4-and-ipv6 default
Reload
Use the IPv6 address autoconfig command on VLAN1 to obtain IPv6 address through SLACC
Int vlan 1
Ipv6 address autoconfig
Configure HSRP
- Specify HSRP protocol version number : (Example : Version 2)
COMMAND : standby version 2
- Configure the IP address (Example : the virtual default gateway.) The group number for
this configuration is 5
COMMAND : standby 5 (enter ip add of virtual default gateway)
Designate the active router R1 for the HSRP group with priority value 150
Command : standby 5 priority 150
Configure active router R1 to preempt the service of the standby router
Command : standby 5 preempt
Display the DHCPv4 commands configured on the router.
Show running-config | section dhcp
Display a list of all IPv4 address to MAC address bindings provided by the DHCPv4 service
Show ip dhcp binding
Displays count information regarding the number of DHCPv4 messages that have been sent and
received
Show ip dhcp server statistics
Disable DHCPv4 service
No service dhcp
To re-enable DHCPv4 server process
Service dhcp
Enabling stateless DHCPv6 using :
ipv6 nd other-config-flag interface configuration command setting the O flag to 1.
Note: You can use the no ipv6 nd other-config-flag to reset the interface to the default SLAAC only
option (O flag = 0).
Enabling stateful DHCPv6 using :
ipv6 nd managed-config-flag interface configuration command setting the M flag to 1.
five steps to configure and verify a router as a stateless DHCPv6 server:
1. Enable IPv6 routing using the ipv6 unicast-routing command.
2. Define a DHCPv6 pool name using the ipv6 dhcp pool POOL-NAME global config command.
3. Configure the DHCPv6 pool with options. Common options include dns-server X:X:X:X:X:X:X:X and
domain-name name.
4. Bind the interface to the pool using the ipv6 dhcp server POOL-NAME interface config command. -
- Manually change the O flag from 0 to 1 using the ipv6 nd other-config-flag interface command. RA
messages sent on this interface indicate that additional information is available from a stateless
DHCPv6 server. The A flag is 1 by default, telling clients to use SLAAC to create their own GUA.
5. Verify that the hosts have received IPv6 addressing information using the ipconfig /all command.