Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[STRM/JSA] Ethernet interfaces were swapped (2012.2R4 and later)

0

0

Article ID: KB30346 KB Last Updated: 05 Jun 2017Version: 2.0
Summary:

This article explains how to swap interfaces back to their expected configurations.

Note: This issue affects STRM 5000 II and NEBS appliances as well as the JSA 1500 and 3500.

 

Symptoms:

Ethernet interfaces were swapped. For versions 2012.2R3 and earlier, please see the following Knowledge Base article instead: KB17314 - [STRM/JSA] Interfaces are swapped

Cause:

After the device reboots, you will most likely see something like this scroll past:

igb: Intel(R) Gigabit Ethernet Network Driver - version 3.2.10-k
igb: Copyright (c) 2007-2011 Intel Corporation.
igb 0000:09:00.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
igb 0000:09:00.0: Intel(R) Gigabit Ethernet Network Connection
igb 0000:09:00.0: eth2: (PCIe:2.5Gb/s:Width x4) 00:e0:81:c1:12:b8 <——— We want this to be eth0
igb 0000:09:00.0: eth2: PBA No: FFFFFF-0FF
igb 0000:09:00.0: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
igb 0000:09:00.1: PCI INT B -> GSI 40 (level, low) -> IRQ 40
igb 0000:09:00.1: Intel(R) Gigabit Ethernet Network Connection
igb 0000:09:00.1: eth3: (PCIe:2.5Gb/s:Width x4) 00:e0:81:c1:12:b9 <——— We want this to be eth1
igb 0000:09:00.1: eth3: PBA No: FFFFFF-0FFls
igb 0000:09:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
udev: renamed network interface eth2 to rename4
udev: renamed network interface eth3 to rename5


e1000e 0000:03:00.0: eth0: (PCI Express:2.5GT/s:Width x1) 00:e0:81:c1:12:91 <——— We want this to be eth2
e1000e 0000:03:00.0: eth0: Intel(R) PRO/1000 Network Connection
e1000e 0000:03:00.0: eth0: MAC: 3, PHY: 8, PBA No: FFFFFF-0FF
e1000e 0000:02:00.0: Disabling ASPM L0s
e1000e 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
e1000e 0000:02:00.0: eth1: (PCI Express:2.5GT/s:Width x1) 00:e0:81:c1:12:90 <——— We want this to be eth3
e1000e 0000:02:00.0: eth1: Intel(R) PRO/1000 Network Connection
e1000e 0000:02:00.0: eth1: MAC: 3, PHY: 8, PBA No: FFFFFF-0FF
Solution:

1. Edit /etc/udev/rules.d/70-persistent-net.rules and correct as shown in the following configuration.

2. Replace the MAC addresses with the corresponding values from the output above.

root@STRMhost~]# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x10c9 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR =="00:e0:81:c1:12:b9", ATTR =="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x10d3 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR =="00:e0:81:c1:12:91", ATTR =="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x8086:0x10c9 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR =="00:e0:81:c1:12:b8", ATTR =="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x10d3 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR =="00:e0:81:c1:12:90", ATTR =="1", KERNEL=="eth*", NAME=“eth3"

3. Reboot the device.

4. Check network connectivity.
Modification History:
2017-05-26: Added a note in the summary section about specific versions this issue affects.

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search