Sie sind auf Seite 1von 8

Router to Switch and Switch to computer Sub-netting

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

128 129 190 191

192 193 254 255

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

Router DHCP Configuration


(config)# IP DHCP pool name ( router ) (DHCP-config) # network 192.168.1.0 (DHCP-config) # default-router 192.168.1.1 Exit (config)# IP DHCP pool excluded 192.168.1.1 192.168.1.12 (config)# do wr startup For check ping to enter to DHCP Mode to set the network ID

to look the IPs to save the current setup to

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

Session between switches


(config)# Session (config)# 192.168.1.2 (config)# ctrl + shift + 6 X (config)# 192.168.1.66 (config)# ctrl + shift + 6 X (config)# 192.168.1.130 (config)# ctrl + shift + 6 X (config)# 192.168.1.194 (config)# ctrl + shift + 6 X (config)# show session (config)# IP host S-0 192.168.1.2 (config)# IP host S-0 192.168.1.66 (config)# IP host S-0 192.168.1.130 (config)# IP host S-0 192.168.1.194 (config)# exit to enter to session switch IP address to shift form one switch to other switch switch IP address to shift form one switch to other switch switch IP address to shift form one switch to other switch switch IP address to shift form one switch to other switch to see the session to translate Name to IP to translate Name to IP to translate Name to IP to translate Name to IP to exit

Router Wan Configuration


>En #conf t (config)# hostname router1 (config)# interface FastEthernet 0/0 (config-if)#IP address 10.0.0.32 255.255.255.224 (config-if) # no shutdown (config-if) #exit (config)# interface fastEthernet 0/2 to set router name to enter to interface fast Ethernet to set IP to interface to turn on the stat of interface to exit to go to interface

(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

sum of common beanery

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

(config-if)# IP summary-address EIGRP 10 172.16.64.0 255.255.255.0 summary Route (config)# do wr configuration

Dis Contiguous Networks


>en to go to enable mode #con to go to Global Mode (config)# router EIGRP 10 to set the EIGRP (config-router#) no auto-summary to set off auto summarization for dis contiguous network (config-router#) exit to exit (config #) exit to exit #reload to reload the Router # show IP route to see the routed IP Note: We have to do the same configuration to all routers in the network

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

Standard Access List


(config)# show Access list to see the Access list (config)# show IP Interface Fast Ethernet 0/0 to see the Access list (config)# accesslist 10 deny IP 0.0.0.0 to set IP for denying (config)# accesslist 10 deny host ..IP to set IP for denying (config)# accesslist 10 permit any to set other IPs to be allow (config)# accesslist 10 permit 0.0.0.0 255.255.255.255 to set other IPs to be allow (config)# interface Fast Ethernet 0/0 to enter to interface (config-if)# IP access-group 10 out to set inbound or outbound (config)# exit to exit (config)# wr to save current configuration (config)# no IP access-group 10 out to delete the access-list

Extended Access List


>en #conf T (config)# accesslist 114 permit TCP host 172.16.0.2 host 172.16.8.3 equal 80 (config)# accesslist 114 permit TCP 172.16.0.2 0.0.0.0 172.16.8.3 0.0.0.0 equal 80 S IP. ...WC .. D IP.. WC.. PORT (config)# accesslist 114 deny IP any any to deny all other IPs (config)# interface fastEthernet 0/0 to enter to interface (config-if)# access-group 114 in to apply accesslist on interface (config-if)# exit (config)# exit # WR #show access list 114

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

Das könnte Ihnen auch gefallen