Commands Module 2
Commands Module 2
Router Commands :
1. The ipv6 enable interface command is used to automatically create an IPv6 link-local
address whether or not an IPv6 global unicast address has been assigned
• Router(config-if)# exit.
3. show ip interface brief - Displays a summary for all interfaces including the IPv4 address of the
interface and current operational statu
4. show ip route - Displays the contents of the IPv4 routing table stored in RAM
5. show ip interface brief command. The output reveals that the LAN interfaces and the WAN
6. show interfaces - Displays interface information and packet flow count for all interfaces on the device.
7. show ip interface - Displays the IPv4 related information for all interfaces on a router
8. show ipv6 interface brief command displays a summary for each of the interfaces.
2. Along with ping and traceroute, useful commands to verify static routes include:
• Along with ping and traceroute, useful commands to verify static routes include:
MUZAMMIL ALI
[email protected]
www.facebook.com/muzammilalifuuastian
RIPv2 Routing Protocol Commands:
1. Router Rip -enable rip protocol version 1 . if we want to enable rip version 2 so we enter the version
command.
3. Network 192.168.1.0 -enter the all network address which want to add in rip.
4. show ip protocols - command displays the IPv4 routing protocol settings currently configured on
the router.
5. show ip route - command displays the RIP routes installed in the routing table.
6. no auto-summary
2. Show boot.
• line vty 0 15
• login local
• exit
4. ip ssh version 2.
5. show ip ssh.
MUZAMMIL ALI
[email protected]
www.facebook.com/muzammilalifuuastian
Secure Unused Port:
Disable Unused Ports
2. Shutdown.
Vlan Commands:
1. Vlan 2. -vlan number
3. EXIT.
4. Show vlan brief - command displays the VLAN assignment and membership type
for all switch ports.
5. no vlan 20.
6. delete flash:vlan.dat .
7. show vlan.
9. show vlan summary -command displays the count of all configured VLANs.
MUZAMMIL ALI
[email protected]
www.facebook.com/muzammilalifuuastian
Ports Add In Vlan:
1. Interface fa 0/0
4. end.
5. show access-lists .
• The parameter in restricts incoming connections between the addresses in the access list
and the Cisco device, while the parameter out restricts outgoing connections between a
particular Cisco device and the addresses in the access list..
• Line vty 0 4
• Login local
• Access-class 21 in
• Exit
7. show access-lists.
MUZAMMIL ALI
[email protected]
www.facebook.com/muzammilalifuuastian
8. The clear access-list counters command resets the output to only show new
matches.
DHCP Commands:
1. show ip dhcp binding command. This command displays a list of all IPv4
address to MAC address bindings that have been provided by the DHCPv4
service.
2. show ip dhcp server statistics, is used to verify that messages are being
received or sent by the router.
• Default-router 192.168.10.1
• Domain0-name example.com
• end
5. debug ip dhcp server events command. This command reports server events,
like address assignments and database updates.
6. ipv6 nd other-config-flag .
7. ipv6 nd managed-config-flag
9. show ipv6 dhcp pool command verifies the name of the DHCPv6 pool and its
parameters.
12. debug ipv6 dhcp detail command is useful to verify the receipt and
transmission of DHCPv6 messages.
• Dns-server (dns-server-address)
• Domain-name example.com
• Interface fa0/0
• Ipv6 nd other-config-flag
2. Interface fa0/0
• Ip nat inside.
3. Interface fa0/1
• Ip nat ouside.
5. show ip nat statistics command displays information about the total number
of active translations.
4. Interface fa0/0
• Ip nat inside
5. Interace fa0/1
• Ip nat outside
MUZAMMIL ALI
[email protected]
www.facebook.com/muzammilalifuuastian
8. verbose keyword displays additional information about each translation,
including how long ago the entry was created and used
4. Interface fa0/0
• Ip nat inside
5. Interface fa0/1
• Ip nat outside
8. debug ip net
CDP Commands:
1. show cdp
2. cdp run
3. interface fa0/0
• no cdp enable
• end
LLDP Commands:
1. lldp run
2. no lldp run
3. show lldp
MUZAMMIL ALI
[email protected]
www.facebook.com/muzammilalifuuastian
NTP Commands
1. ntp server
2. logging console
3. logging buffered
4. show logging
5. logging trap
Backup Configu copy run usbflash0:/ rations with a USB Flash Drive
boot system :
1. show license udi
2. license install
3. show license
6. show flash0:
MUZAMMIL ALI
[email protected]
www.facebook.com/muzammilalifuuastian