[j-nsp] MX5 rewrite-rules

Mihai mihaigabriel at gmail.com
Sun Dec 9 15:09:34 EST 2012


Problem solved, the tos values used for testing were wrong.

Sorry for the noise!

On 12/08/2012 12:38 PM, Mihai wrote:
> Hello,
>
> I have a very basic setup involving 1 x C7600 and 1 X MX5T and I want to
> rewrite all the dscp/inetprec marking received on MX5 from C7600 to
> dscp/inetprec 0.
> The topology is this: C7600 vlan887 gi9/44 - ge-1/0/0.887 MX5
> virtual-router C - ge-1/0/3.200 -> ge-1/1/3.200 R1 logical-system.
>
> mx5t# show routing-instances customer1
> instance-type virtual-router;
> interface ge-1/0/0.887;
> interface ge-1/0/3.200;
>
> mx5t# top show interfaces ge-1/0/0.887
> vlan-id 887;
> family inet {
> filter {
> input test;
> }
> address 192.168.200.102/30;
> }
>
> top show interfaces ge-1/0/3.200
> vlan-id 200;
> family inet {
> address 172.27.0.30/30;
> }
>
>
> top show logical-systems r1 interfaces ge-1/1/3.200
> description r1-c;
> vlan-id 200;
> family inet {
> address 172.27.0.29/30;
> }
>
> mx5t# top show logical-systems r1 interfaces lo0
> unit 1 {
> family inet {
> address 172.27.255.1/32;
> }
> }
>
>
> show class-of-service interfaces ge-1/0/3
> unit 200 {
> rewrite-rules {
> ieee-802.1 default;
> inet-precedence default;
> }
> }
>
> mx5t# top show firewall family inet filter test
> term 1 {
> then {
> loss-priority low;
> forwarding-class best-effort;
> }
> }
>
>
> An icmp packet with tos2 sent from Cisco to R1 lo0.1 arrives with the
> same value on interface ge-1/1/3.200 and I can't understand why:
>
> 12:36:15.147992 In IP (tos 0x2,ECT(0), ttl 254, id 13900, offset 0,
> flags [none], proto: ICMP (1), length: 100) 192.168.200.101 >
> 172.27.255.1: ICMP echo request, id 44441, seq 0, length 80
>
>
> Any advice?



More information about the juniper-nsp mailing list