Beruflich Dokumente
Kultur Dokumente
4 network 2n=network 0000 0000.0000 0000.0000 0000.0000 0000 0 128 0 64 0 32 0 16 1100 0000.0000 0000.0000 0000.0000 0000 0 8 0 4 0 2 0 1
n 2 = network 22=4 network Block Size is the last on bit which is 64 here Network 0 64 First valid IP 1 65 Last valid IP 62 126 Broadcast 63 127 h Host = 2 -2 6 2 -2=64-2=62 hosts on each network CIDR the number of on bits in an IP Address CIDR= 24+2=26 Subnet Mask specifies the network and host portion Subnet 255.255.255.192 because 128+64=192
Network IDs 192.168.1.0 /26 192.168.1.64 /26 192.168.1.128 /26 192.168.1.192 /26 Router configuration user>enable enable# conf t (config)# Hostname ISP Interface fast Ethernet 0/0 Interface Ethernet 0/0/0 IP Address 192.168.1.1.255.255.255.192 Description S-1 No shutdown Int f and do all the same Do wr config
to set the name of router to enter to FastEthernet interface to enter to Ethernet interface to enter IP Address to set description for interface to turn the interface stat up to jump from one port to other port to copy running config to startup
SWITCH
Functionality 1. Address leering 2. Forward filter and detect 3. Loop Avoidance Configuration User > en Enable > conf t Global > Show MAC address table to see MAC table Operations 1. Packet Switching 2. Packet Filtering 3. Internetwork Communication 4. Beast Pat Selection Configuration User >en Enable > conf t Global > hostname switch1 (config)# Username tariq password ***** (config)# live vty 0_4 (config-line) # login local (config-line) # exit (config)# line console 0 (config-line) # login local (config-line) # exit (config)# interface vlan1 (config-if) # IP Address 192.168.1.2 255.255.255.192 (config-if) # no shutdown (config-if) # Exit (config) # wr Ping and them telnet
Authentication
(config) # user name suliman Password *****
Telnet authentication
(config)# line console 0 (config)# login local (config)# exit (config)# line vty 0_4 (config)# login local (config)# enable secret ****** (config)# exit Telnetting telnet 192.168.1.20 Local Authentication to ask for username on login
Remote Authentication to ask for username on login to set password for enable mode
(config-if) # IP address 10.0.0.33255.255.255.224 to set IP address (config-if) # no shutdown to up the stat (config)# clock Rate 64000 to set clock rate (config)# do wr to save the current configuration (config)# IP DHCP POOL 1 to set the name of DHCP POOL (dhcp-config) # Network 10.0.0.32 to set network for DHCP (dhcp-config) # default-route 10.0.0.33 to set gate way (dhcp-config) # Exit to exit (config)# IPDHCP excluded-address 10.0.0.33 10.0.038 to lock the IP address (config)# do wr to save the current configuration (config)# exit to exit
Summarization
1. Managing and controlling 2. Establishing and stability 3. Bandwidth 4. No Complexity 5. Process (CPU,RAM ) 6. No Rout Flapping Requirements 1- OSPF, EIGRP, IS-IS, BGP 2- Common bit in IP Address
Configuration Router A >enable to go to enable mode # conf T to go to global (config)# hostname A to set the host name (config)# interface serial 0/0/0 to enter to interface mode (config-if)# no shutdown to set the stat of interface up (config-if)# IP address 172.16.0.9 255.255.255.252 to set IP address for interface serial (config-if)# int f0/0 to go to other interface (config-if)# no shutdown to set the stat of interface up (config-if)# IP address 172.16.65.1 255.255.255.252 to set IP address for interface Note: do to all FastEthernet the same way but deferent interface and IPs (config)# exit to exit (config)# router EIGRP 10 to set the EIGRP (config-router#) network 172.16.0.0 to set the EIGRP network (config-router#) exit to exit (config)# do wr to copy running config to startup config (config)# exit to exit # show IP route to see the routed IPs
Router D >en to go to enable mode #conf t to go to global (config)# hostname D to set the host name (config)# interface serial 0/3/0 to enter to interface mode (config-if)# IP address 172.16.0.9 255.255.255.252 to set IP address for interface serial (config-if)# no shutdown to set the stat of interface up (config-if)# int f0/0 to go to other interface (config-if)# IP address 172.16.76.1 255.255.255.0 to set IP address for interface (config-if)# no shutdown to set the stat of interface up Note: do to all FastEthernet the same way but deferent interface and IPs (config)# exit to exit (config)# router EIGRP 10 to set the EIGRP (config-router#) network 172.16.0.0 to set the EIGRP network (config-router#) exit to exit (config)# do wr to copy running config to startup config (config)# exit to exit # show IP route to see the routed IPs Router A (config)# interface serial 0/0/0 to enter to interface mode to configure the to save the
Static Routing
>en # conf t (config)# IP rout 10.0.0.0 255.255.255.0 serial 0/0/0 .network ID subnet. Interface to enter static rout Note: 1. we have to enter all networks which are directly connected with our current router. 2. If we have two connection from one router to other router so we use first link ad primary and the second as backup and by just changing the AS no we can apply this. Ex: primary = IP rout 10.1.6.0 255.255.255.0 serial 0/0/0 Backup = IP rout 10.1.7.0 255.255.255.0 serial 0/0/0 150 (config)# exit # wr 3 show IP rout Note: we have to configure all our routers with using the same configuration Dynamic routing 1. Distance Victor (RIP 1,2 IGRP) 2. Link stat (OSPF and EIGRP)
OSPF Configuration
>en #conf T (config)#route OSPF 2 entering to OSPF protocol 2 is process no (config-router)# network 10.0.0.8 0.0.0.255 area 0 to set the network, its wildcard and area Note: wnter all networks like above configuration (config-router)# exit (config)# exit # WR # show IP rout Note : have to configure all Routers as this Router
RIP Configuration
>en #conf t (config)# router RIP (config)# version 2 (config)# network 10.0.0.0 (config)# exit # WR # show IP rout Note: we have to enter every direct connected route and so the same configuration on every Router
Password Recovery
Ctrl + Break Rommon> confreg 0x2142 Rommon> reset (config)# copy startup config running config setup (config)# config register 0x2102 (config)# enable password en (config)# line console 0 (config)# passeord ***** (config)# login local (config)# wr (config)# reload to enter to ROM of Router to enter to router without enter password to reset the password to save before configuration to current to set the original register no to set password to enable mode to enter to console port to set password to console port to ask for password to save current configuration to reload the router
Telnet Restriction
(config)# accesslist permit ....IP.. widecard to set IP and wide card (the bits witch should consider while routing ) (config)# line vty 04 to specify the line of telnet (config)# access class IN/OUT to specify the packet arrival