Command Reference Protocol-independent Configuration Commands
6.32 set ip tos
Use this command to set the tos of the IP head of the packet matching the rule in the route map
configuration mode. Use the no form of this command to remove the configured tos setting.
set ip tos {<0-15> | max-reliability | max-throughput | min-delay | min-monetary-cost | normal }
Indicates the TOS value of an IP header with a number, ranging from 0
to 15.
2: max-reliability
4: max-throughput
8: min-delay
1: min-monetary-cost
0: normal
max-reliability |
max-throughput |
min-delay |
min-monetary-cost |
normal
Priority of an IP header.
Route map configuration mode
With different TOS values for the IP packet head configured, the IP packets matching the PBR routing
are transmitted with different service qualities.
The TOS value will be specified for the head of the IP packet matched the PBR.
The following example sets the TOS value of the packet with the source IP address 192.168.217.68
received at the interface FastEthernet 0/0 as 4:
Ruijie(config)#access-list 1 permit 192.168.217.68 0.0.0.0
Ruijie(config)#route-map name
Ruijie(config-route-map)#match ip address 1
Ruijie(config-route-map)#set ip tos 4
Ruijie(config)#interface FastEthernet 0/0
Ruijie(config-if)#ip policy route-map name
Match the next-hop interface.
Match the IP address in the ACL.