Configure IP Address in Juniper
# set interfaces ge-0/0/1 unit 0 family inet address 192.168.100.1/30
Looking at the levels of the command more closely:
- ge-0/0/1 is the name of the Gigabit Ethernet physical interface.
- unit 0 is a logical unit conﬁgured within the physical interface. Each physical interface must have at least one conﬁgured logical interface, with the ﬁrst one numbered 0 (not 1) before it can carry trafﬁc.
- family inet identiﬁes the protocol used by the logical interface. You almost always want to conﬁgure at least one family on each logical interface. In this booklet, all of our conﬁgurations use inet which is how JUNOS refers to IPv4. If you use IPv6 then you should use inet6.
- address 192.168.100.1/30 is the address of the logical interface. Each logical interface can support multiple addresses. So conﬁguring additional addresses does not override existing addresses.