In this section, we are going to discuss and look at the configuration of marking packets. When we set the TOS (Type of Service) byte with an IP Precedence value or DSCP value this is marking. In case if you don’t know what is Classification, IP precedence, or DSCPcolor code value click here. I'm assuming you understand Classification.
What is Quality of Service (QOS)?
What is Modular Quality of service CLI (MQC)?
What is Classification and marking? What are IP Precedence and DSCP Values? What is AF and EF?
Let see the configuration:-
Topology:-
Goal:-
- configure the topology as per the diagram.
- configure IP addresses as per the topology.
- configure EIGRP AS 65100 and advertise all the directly connected interfaces.
- configure marking on router 1 to mark the packets coming from FastEthernet 0/0 and fwd to router 3 with IP precedence 2 value.
- configure IP precedence of 3 to ICMP packets on router 2.
R1(config)#interface serial 4/0
R1(config-if)#ip address 12.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#no keepalive
R1(config-if)#exit
R1(config)#interface loopback 0
R1(config-if)#ip address 1.1.0.1 255.255.255.0
R1(config-if)#interface loopback 1
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#interface loopback 2
R1(config-if)#ip address 1.1.2.1 255.255.255.0
R1(config-if)#interface loopback 3
R1(config-if)#ip address 1.1.3.1 255.255.255.0
R1(config-if)#exit
R2(config)#interface serial 4/0
R2(config-if)#ip address 12.1.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 4/1
R2(config-if)#ip address 23.1.1.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.20.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#no keepalive
R2(config-if)#exit
R2(config)#interface loopback 0
R2(config-if)#ip address 2.2.0.2 255.255.255.0
R2(config-if)#interface loopback 1
R2(config-if)#ip address 2.2.1.2 255.255.255.0
R2(config-if)#interface loopback 2
R2(config-if)#ip address 2.2.2.2 255.255.255.0
R2(config-if)#interface loopback 3
R2(config-if)#ip address 2.2.3.2 255.255.255.0
R2(config-if)#exit
R3(config)#interface serial 4/1
R3(config-if)#ip address 23.1.1.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 192.168.30.1 255.255.255.0
R3(config-if)#no keepalive
R3(config-if)#exit
R3(config)#interface loopback 0
R3(config-if)#ip address 3.3.0.3 255.255.255.0
R3(config-if)#interface loopback 1
R3(config-if)#ip address 3.3.1.3 255.255.255.0
R3(config-if)#interface loopback 2
R3(config-if)#ip address 3.3.2.3 255.255.255.0
R3(config-if)#interface loopback 3
R3(config-if)#ip address 3.3.3.3 255.255.255.0
R3(config-if)#exit
R1(config)#router eigrp 65100
R1(config-router)#network 12.1.1.1 0.0.0.0
R1(config-router)#network 1.1.0.1 0.0.0.0
R1(config-router)#network 1.1.1.1 0.0.0.0
R1(config-router)#network 1.1.2.1 0.0.0.0
R1(config-router)#network 1.1.3.1 0.0.0.0
R1(config-router)#network 192.168.10.1 0.0.0.0
R1(config-router)#end
R2(config)#router eigrp 65100
R2(config-router)#network 12.1.1.2 0.0.0.0
R2(config-router)#network 2.2.0.2 0.0.0.0
R2(config-router)#network 2.2.1.2 0.0.0.0
R2(config-router)#network 2.2.2.2 0.0.0.0
R2(config-router)#network 2.2.3.2 0.0.0.0
R2(config-router)#network 192.168.20.1 0.0.0.0
R2(config-router)#network 23.1.1.1 0.0.0.0
R2(config-router)#exit