In my JunOS configure mode, I show the interfaces:

[edit]
root@Olive# show interfaces
em0 {
    unit 0 {
        family inet {
            address 192.168.47.2/24
        }
    }
}
em1 {
    vlan-tagging;
}
em2 {
    vlan-tagging;
}
em3 {
    vlan-tagging;
}

What's the meaning of unit 0 and family inet?

up vote 3 down vote accepted

A physical interface can consists of multiple logical interfaces, each called a unit. Each unit has a number as a unique identifier. The 0 just refers to the first logical interface.

It's good practice (but not required) to keep the unit number in sync with the VLAN id. In that case unit 0 often refers to the untagged interface.

family inet refers to the IPv4 address family. An interface can have configuration for multiple address families, each with their own specific configuration and purpose.

  • Teun, you might want to swap physical and logical in the first sentence... ;-) – Zac67 Jul 27 at 12:16
  • eh, why exactly? I don't see anything wrong in how I described this. Units are logical interfaces. – Teun Vink Jul 27 at 12:35
  • I think you mean "a logical interface can consist of multiple physical interfaces". The other way around you've got to show me. ;-D – Zac67 Jul 27 at 15:56

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.