Professional Documents
Culture Documents
wireshark
Switches generate multiple collision domains and one broadcast domain. 24 ports, 24
collision domains. S5700. core switches, edge switch. ARP manages Mac learning of
connected devices. packet switching.
Router - gateway between networks, generate broadcast domains. AR2200. Few Lan
ports.
VRP
-routinng, switching
Connection properties:
-baud rate 9600, data bits, parity, stop bits, flow control
Gateway separates broadcast domains. Gateway isolates broadcast storms. Does not
allow storms from one network to another.
A router physical interface can be divided into several virtual sub interfaces.
sysname Nairobi
undo sysname
display current
ctrl+z/quit
save
display this
loopback interface
static routing
ip route-static ?
HOMEWORK:
VLAN?
IP subnetting?
DAY 2: NOTES
Logical grouping of hosts not limited to physical location. VLAN broadcast groups
separated by routers. A switch can produce several logical broadcast domains instead of
one.
Establishes extra logical broadcast domains on a switch. i.e. logical isolation of traffic at
the data link layer.
A VLAN tag is inserted into a frame to help distinguish frames from each VLAN. Has a
VLAN Id. Default VLAN 1.
Trunk - transmission of VLAN traffic between switches. Passes more than one VLAN.
Access - connect to user devices. Has only one untagged VLAN. Computers connected to
the same VLAN on a switch don't have to tag their frames to communicate.
Port VLAN ID(PVID)- The default VLAN for each interface. Set default VLAN 1 for all
ports.
With 2 switches configured say VLAN 10, A comp sending a frame via VLAN 20 , has
its frame tagged in order to pass via this trunk link.
Hybrid ports defined as either tagged or untagged. Thus VLAN communication can be
defined on a port by port basis.
e.g. VoIP phones ( given priority). from switch access port to phone from phone to comp.
Phone VLAN 10, Comp VLAN 20. The phone frames are tagged but those from the
comp are untagged.
-Port based (default - most common), Mac address based, Ip subnet based, Protocol
based, Policy based (combination).
step 1 for switch 1
while in the system view log into vlan 10 interface in order to give the description:
description VOIP_vlan
while in the system view log into vlan 5 interface in order to give the description:
description data_vlan
configure it to allow vlan 5 and vlan 10: port trunk allow-pass vlan 5 10
while in the system view log into vlan 5 interface in order to give the description:
description both data_vlan and VOIP_vlan pass through
Click on each PC then enter the ip address and subnet mask for each.
Now Ping the computers in the same and different VLAN and notice the difference. The
VLAN 10 comps can reach each other but different VLANs are unreachable to one
another.
An huawei hybrid port can allow more than one untagged VLAN frame.
voice vlan
distinguishes, isolates and prioritizes voice traffic over service traffic for quality of
service assurance.
CONFIGURE HYBRID==
Hub: receives and broadcasts packets while a switch is intelligent, it broadcasts on a first
time basis, then learns the mac addresses of devices afterwards. Has a mac address table.
This minimises the bandwidth and resources consumed in the network.
Without a router, no matter the number of switches, there is only one broadcast domain.
With routing loops, it is possible to create redundancy and ensure that packets find an
alternative route when a network link is broken.
VLAN ROUTING
Router-on-a-stick: A physical interface of a router split into several sub interfaces. i.e. 2
IPs for the same interface to allow different VLANs.
Router
interface GigabitEthernet0/0/0.1
dot1q termination vid 5
ip address 192.168.2.254 255.255.255.0
interface GigabitEthernet0/0/0.2
dot1q termination vid 10 -> defining a trunk port
ip address 192.168.3.254 255.255.255.0
switch
interface GigabitEthernet0/0/3
port link-type access
port default vlan 10
interface GigabitEthernet0/0/2
port link-type access
port default vlan 5
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 5 10
pc
pc2:
Then ping PC1 from PC2.
Layer 2
DAY 3 NOTES:
STP
Redundancy in a switching network minimizes connection failure but there are potential
loops.
Such loops cause broadcast storms and duplicated frames to be received by end stations.
Also causes intability of mac address tables.
To solve this the redundant links are blocked logically.
Has 5 states.
Election of a root bridge:
The start point is the bridge ID (16 bit bridge priority and 48 bit mac address).
This BID can be changed to force a switch with a higher mac address to be appointed as
the root bridge. spans from 0 - 32768. The switch with the lowest BID is elected as the
root bridge.
configuration BPDU for convergence to elect the root bridge. TCN BPDU
Path cost and RPC.
Port roles: root, designated, alternate, backup, disabled
PORT ID: Final means of realising port roles after BID and RPC has been tested.
TIMERs.
Port role establishment process: BID and RPC are used.
Root failure.
Direct
Switch 1 configuration: Primary switch (both interfaces forwarding)
sysname S1
stp mode stp
stp root primary
View the above configurations set: di cu
display stp brief
RSTP
Has 3 states: discarding, learning and forwarding. Has a faster convergence speed.
undo stp mode
undo stp root
stp mode rstp
di cu
dis stp bri
This is the non root bridge, if i shut down the forwarding interface i.e. interface g0/0/1,
the interface g0/0/2 immediately begins forwarding. After bringing the interface g0/0/1
online again, it picks up the role of root port and begins forwarding once more.
IP Routing
outgoing interface
next hop
Protocol - route
RIP cant run IPv6. Distance vector hop based (15 hops). For small network.
Routing protocols: Used for large networks. RIP, RIPv2, OSPF, BGP, EIGRP, ISIS.
Routers forward packets based on routing tables and Forwarding information base (FIB).
Routing tables: Aid in selection of routes
Most routers know their outgoing interface but not the next hop. Some select few routers
can ping their gateway/next hop and discover its address.
Routing decisions:
·1 Preference:
With multiple routing info sources, the route with the highest preference (smallest
value) is selected as the optimal route.
·2 Cost Metric: Length of a path to a destination network. Each segment provides its
cost value. The cost can also be determined by the bandwidth.
Practical: Ip routing
AR1:
sysname Nairobi
interface loopback 0
ip address 192.168.1.1 24
int g0/0/0
ip address 10.10.0.1 24
AR2:
sysname Mombasa
int g0/0/0
ip address 10.10.0.2 24
int g0/0/1
ip address 192.168.2.1 24
Our aim in this exercise it to successfully ping the loopback interface 0 of AR1
(192.168.1.1). A ping will only be possible if a packet can be sent from the PC to the
loopback and back to the PC successfully.
As seen in the caption below, the gateway has already been configured,
therefore a ping test done thereafter succeeds.
After establishing this route, a ping test to the loopback interface will not be successful
because there is no route back to the the PC. The unsuccessful ping of the loopback
interface is shown below:
To solve this particular problem, we shall have to configure another static route from the
loopback interface where we have reached so far to its next hop address 10.10.0.2 (int
g0/0/0 of AR2). This is inside the Nairobi router, AR1 Command Line Interface.
OSPF
Router 1/AR1/R1
[Huawei]sysname R1
[R1]interface loopback 0
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 10.0.13.1 24
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip address 10.0.12.1 24
Router 2/AR2/R2
[Huawei]sysname R2
[R2]interface loopback 0
[R2-LoopBack0]ip address 10.0.2.2 24
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip address 10.0.12.2 24
Router 3/AR3/R3
sysname R3
[Huawei]interface loopback 0
[Huawei-LoopBack0]ip address 10.0.3.3 24
[Huawei]interface loopback 2
[Huawei-LoopBack2]ip address 172.16.0.1 24
[Huawei-LoopBack2]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.0.13.3 24
Configure OSPF
OSPF areas can be a min of 1. Several overlapping areas are used in
order to update their link status databases. In a case like ours where
one area is used, the networks to be covered by the OSPF are defined.
Router 1
[R1]ospf 1 router-id 10.0.1.1
[R1-ospf-1]area 0
Router 2
[R2]ospf 1 router-id 10.0.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 10.0.2.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 10.0.12.0 0.0.0.255
Router 3
[R3]ospf 1 router-id 10.0.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 10.0.3.0 0.0.0.255
ospf 1: For generating and synchronizing a single Link state database. By use of different
OSPF process IDs for each router, multiple LSDBs are created.
network 10.0.1.0 0.0.0.255 : This advertises the network segment into area 0.
To confirm that the routers are now automatically and dynamically learning the ip
addresses of indirect interfaces, we display the ip routing-table using the below
command:
When i ran the command display ospf peer in router 1, there is an adjacency between R2
& R1.
Even on trying the same command in R1, there is no neighbour relationship. There is
only a relationship with R3:
When i ran the command Display ospf peer brief gives this:
Run the Display ospf peer brief command on the other routers.
Checking the OSPF hello interval and dead interval:
From router 1 run: display ospf interface g0/0/0
From router 1 run: ospf timer hello 15 or ospf timer dead 60. If these times are not equal
for all routers in an area, the router with a different time intervals will not have its routes
seen by the others.
For us to reach this interface, the OSPF is configured to advertise default routes on
Router 3. This is done with the command below:
[R3]ip route-static 0.0.0.0 0.0.0.0 loopback 2
Then we log into OSPF process 1, in order to advertise the default route in it to the OSPF
area.
[R3]ospf 1
[R3-ospf-1]default-route-advertise
DAY 4 NOTES:
HDLC
It is a serial tech utilised for WAN but is being replaced for the more reliable ethernet
technology.
Serial can operate in synchronous (clocked) and asychronous (data bytes or frames are
controlled by start and stop bits) modes.
HDLC configuration
Router 1
sysname R1
Router 2
sysname R1
Router 3
sysname R1
FRAME RELAY
Router 1
sysname S1
int s0/0/0
link-protocol fr
ip address
undo fr inarp
interface loopback 0
ip address 10.0.1.1 24