1

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

With the above question, I learned the meaning of unit 0 and inet.

So what does ethernet-switching mean?

root@test> show configuration
...
...
interfaces {
    ge-0/0/0 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members 1500;
                }
            }
        }
    }
}
...
...
4

It helps to look at a different kind of Junos interface configuration and compare.

The reason for unit <n> is to allow multiple, logical subinterfaces (IFLs) to exist within a given physical interface (IFD.) (The definition of physical interface has blurred over time.)

The reason for family <f> is to separate configuration statements related to IPv4, IPv6, layer-2 switching/bridging, etc.

interfaces {
    ge-0/0/1 {
        flexible-vlan-tagging;
        unit 10 {
            vlan-id 10;
            family inet {
                address 192.0.2.1/24;
            }
            family inet6 {
                address 2001:db8::1/112;
            }
        }
        unit 11 {
            vlan-id 11;
            ....
        }
    }
}
1
  • Just to add a quick comment - It helps to remember that IFD = "Interface Device", that can be a logical or physical. In actuality, it simply comes down to hierarchy. – Jordan Head Nov 18 '20 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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