Wednesday 31 October 2012

[JTips] Disable ''Auto-negotiation'' on JUNOS

If ''Auto-negotiation" configured on GE interfaces can cause packet loss on both sides, and the FIFO error statistics are increasing, as shown 

lab@router> show interfaces extensive ge-0/0/0 
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Interface index: 128, SNMP ifIndex: 79, Generation: 11
Description: coloc uplink
Link-level type: Ethernet, MTU: 1518, Speed: 100mbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled
<...>
  MAC statistics:                      Receive         Transmit
    Total octets                       5473299         96564932
    Total packets                       112044              398
    Unicast packets                     888990           696389
    Broadcast packets                   158996           401151
    Multicast packets                    64059             4121
    CRC/Align errors                         0                0
  
FIFO errors                              0            43518
    MAC control frames                       0                0
    MAC pause frames                         0                0
    Oversized frames                         0
    Jabber frames                            0
    Fragment frames                          0
    VLAN tagged frames                       0
    Code violations                          0

At the same time, the GE auto-negotiation status is "Incomplete" or "No-autonegotiation":

Autonegotiation information:
      Negotiation status: No-autonegotiation, Link partner status: Ok, Link partner: Unknown, Flow control: None

Disable auto-negotiation for GE interfaces:

[edit interfaces ge-0/0/0]
root@LAB# show
gigether-options {
    no-auto-negotiation;
}
unit 0 {
    family inet {
        address 192.168.1.1/24;
    }
}

No comments:

Post a Comment